blob: 53165e992cb9847b229e3a2c33266a4d1e603096 [file] [log] [blame]
/*
* Copyright (c) 1998, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
*/
// Contributors:
// Oracle - initial API and implementation from Oracle TopLink
package org.eclipse.persistence.testing.models.inheritance;
public class ImaginaryCar extends Car {
/**
* This method was created in VisualAge.
*/
public ImaginaryCar() {
super();
}
public static Car example1()
{
ImaginaryCar example = new ImaginaryCar();
example.setPassengerCapacity(2);
example.setFuelCapacity(30);
example.setDescription("PONTIAC");
example.setFuelType("Petrol");
example.addPartNumber("021776RM-b");
example.addPartNumber("122500JC-s");
example.addPartNumber("101101BI-n");
return example;
}
public static Car example2()
{
ImaginaryCar example = new ImaginaryCar();
example.setPassengerCapacity(4);
example.setFuelCapacity(50);
example.setDescription("TOYOTA");
example.setFuelType("Petrol");
example.addPartNumber("021776TT-a");
example.addPartNumber("122500RF-g");
example.addPartNumber("101101ML-m");
return example;
}
public static Car example3()
{
ImaginaryCar example = new ImaginaryCar();
example.setPassengerCapacity(5);
example.setFuelCapacity(60);
example.setDescription("BMW");
example.setFuelType("Disel");
example.addPartNumber("021776KM-k");
example.addPartNumber("122500MP-k");
example.addPartNumber("101101MP-d");
return example;
}
public static Car example4()
{
Car example = new Car();
example.setPassengerCapacity(8);
example.setFuelCapacity(100);
example.setDescription("Mazda");
example.setFuelType("Coca-Cola");
example.addPartNumber("021776KM-k");
example.addPartNumber("122500MP-k");
example.addPartNumber("101101MP-d");
return example;
}
}