Class CharterRequest
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.assign.CharterRequest
- All Implemented Interfaces:
Serializable
,Comparable<Object>
,AuthoredBean
,IDBean
,RoutePair
,ViewEntry
,Cacheable
A bean to store Charter flight requests.
- Since:
- 10.0
- Version:
- 11.0
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Charter Request status enumeration.Nested classes/interfaces inherited from interface org.deltava.beans.schedule.RoutePair
RoutePair.RoutePairImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the requested Airline.Returns the arrival Airport.Returns the departure Airport.int
Returns the Author of this bean.Returns the request comments.Returns the request creation date.int
Returns the database ID of the user who disposed of this request.Returns the request disposal date.Returns the requested equipment type.Returns the CSS class for this object if rendered in a view table.Returns the request status.void
Updates the requested Airline.void
Updates the arrival Airport.void
Updates the departure Airport.void
setAuthorID
(int id) Updates the author of this bean.void
setComments
(String comments) Updates the request comments.void
setCreatedOn
(Instant dt) Updates the request creation date.void
setDisposalID
(int id) Updates the request disposal ID.void
setDisposedOn
(Instant dt) Updates the request disposal date.void
setEquipmentType
(String eqType) Updates the requested equipment type.void
Updates the request status.Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateID
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.deltava.beans.schedule.RoutePair
createKey, getAirports, getDistance, getFlightType, includes, isPopulated, matches
-
Constructor Details
-
CharterRequest
public CharterRequest()
-
-
Method Details
-
getAuthorID
public int getAuthorID()Description copied from interface:AuthoredBean
Returns the Author of this bean.- Specified by:
getAuthorID
in interfaceAuthoredBean
- Returns:
- the author's database ID
- See Also:
-
getCreatedOn
-
getDisposedOn
Returns the request disposal date.- Returns:
- the disposal date/time, or null
-
getDisposalID
public int getDisposalID()Returns the database ID of the user who disposed of this request.- Returns:
- the database ID, or zero if not set or auto-disposed
-
getComments
-
getStatus
Returns the request status.- Returns:
- a RequestStatus
-
getAirportD
Description copied from interface:RoutePair
Returns the departure Airport.- Specified by:
getAirportD
in interfaceRoutePair
- Returns:
- the departure Airport
-
getAirportA
Description copied from interface:RoutePair
Returns the arrival Airport.- Specified by:
getAirportA
in interfaceRoutePair
- Returns:
- the arrival Airport
-
getAirline
-
getEquipmentType
-
setAuthorID
public void setAuthorID(int id) Description copied from interface:AuthoredBean
Updates the author of this bean.- Specified by:
setAuthorID
in interfaceAuthoredBean
- Parameters:
id
- the author's database ID.- See Also:
-
setDisposalID
public void setDisposalID(int id) Updates the request disposal ID.- Parameters:
id
- the database ID of the user disposing the request, or zero
-
setCreatedOn
Updates the request creation date.- Parameters:
dt
- the creation date/time
-
setDisposedOn
Updates the request disposal date.- Parameters:
dt
- the disposal date/time- Throws:
IllegalArgumentException
- if the date is before the creation date
-
setAirportD
-
setAirportA
-
setAirline
-
setComments
Updates the request comments.- Parameters:
comments
- the comments
-
setStatus
Updates the request status.- Parameters:
status
- a RequestStatus
-
setEquipmentType
Updates the requested equipment type.- Parameters:
eqType
- the equipment type
-
getRowClassName
Description copied from interface:ViewEntry
Returns the CSS class for this object if rendered in a view table.- Specified by:
getRowClassName
in interfaceViewEntry
- Returns:
- the CSS class name, or NULL if none
-