@Entity @Status(stage=PRODUCTION, unitTests=COMPLETE) @Review(by="Kees Schotanus", at="2010-07-17", reason="Initial review") public class CarDetail extends AbstractEntityIdentifiedByObjectId
Car
.Constructor and Description |
---|
CarDetail()
Default constructor as required by the JPA specs for unenhanced classes.
|
CarDetail(Car car,
CColor color)
Constructs this CarDetail from all the mandatory fields.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
getAirco()
Determines whether the corresponding car has air-conditioning (true) or
not (false).
|
Car |
getCar()
Gets the Car of this CarDetail.
|
CColor |
getColor()
Gets the color of the corresponding Car.
|
Integer |
getSeats()
Gets the number of seats of the corresponding Car.
|
void |
setAirco(Boolean airco)
Sets the air-conditioning for the corresponding Car.
|
void |
setCar(Car car)
Sets the Car for this CarDetail.
|
void |
setColor(CColor color)
Sets the color for the corresponding Car.
|
void |
setSeats(Integer seats)
Sets the number of seats for the corresponding Car.
|
String |
toString()
Creates a String representation of this CarDetail.
|
getObjectId, getPrimaryKey, setObjectId
equals, getVersion, hashCode, setVersion
public CarDetail()
public Car getCar()
public void setCar(Car car)
car
- The Car for this CarDetail.public CColor getColor()
public void setColor(CColor color)
color
- The color of the corresponding Car.public Boolean getAirco()
public void setAirco(Boolean airco)
airco
- True when the corresponding Car has air-conditioning, false
or null when it has not.public Integer getSeats()
public void setSeats(Integer seats)
seats
- The number of seats for the corresponding Car.public String toString()
toString
in class AbstractEntityIdentifiedByObjectId
Copyright © 2008–2018. All rights reserved.