/******************************************************************************* * Copyright (c) 1998, 2015 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 v1.0 and Eclipse Distribution License v. 1.0 * which accompanies this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html * and the Eclipse Distribution License is available at * http://www.eclipse.org/org/documents/edl-v10.php. * * Contributors: * Oracle - initial API and implementation from Oracle TopLink ******************************************************************************/ package org.eclipse.persistence.testing.models.insurance; /** * <p><b>Purpose</b>: Represents an insurance vehicle claim on a policy. * <p><b>Description</b>: Held in a private 1:M relationship from Policy * @see Policy * @since TOPLink/Java 1.0 */ public class VehicleClaim extends Claim { private String partDescription; private String part; /** * Return an example claim instance. */ public static VehicleClaim example1() { VehicleClaim vehicleClaim = new VehicleClaim(); vehicleClaim.setId(301); vehicleClaim.setPart("dash board"); vehicleClaim.setPartDescription("the thing above the dash"); vehicleClaim.setAmount(20000); return vehicleClaim; } /** * Return an example claim instance. */ public static VehicleClaim example2() { VehicleClaim vehicleClaim = new VehicleClaim(); vehicleClaim.setId(302); vehicleClaim.setPart("wheel"); vehicleClaim.setPartDescription("a round steering type of thing"); vehicleClaim.setAmount(10000); return vehicleClaim; } /** * Return an example claim instance. */ public static VehicleClaim example3() { VehicleClaim vehicleClaim = new VehicleClaim(); vehicleClaim.setId(303); vehicleClaim.setPart("wheel"); vehicleClaim.setPartDescription("a round steering type of thing"); vehicleClaim.setAmount(10000); return vehicleClaim; } /** * Return an example claim instance. */ public static VehicleClaim example4() { VehicleClaim vehicleClaim = new VehicleClaim(); vehicleClaim.setId(304); vehicleClaim.setPart("front wheel"); vehicleClaim.setPartDescription("bike front wheel"); vehicleClaim.setAmount(100); return vehicleClaim; } /** * Return an example claim instance. */ public static VehicleClaim example5() { VehicleClaim vehicleClaim = new VehicleClaim(); vehicleClaim.setId(305); vehicleClaim.setPart("rear wheel"); vehicleClaim.setPartDescription("bike rear wheel"); vehicleClaim.setAmount(200); return vehicleClaim; } public String getPart() { return part; } public String getPartDescription() { return partDescription; } public void setPart(String part) { this.part = part; } public void setPartDescription(String partDescription) { this.partDescription = partDescription; } }