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 enumCharter 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.intReturns the Author of this bean.Returns the request comments.Returns the request creation date.intReturns 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.voidUpdates the requested Airline.voidUpdates the arrival Airport.voidUpdates the departure Airport.voidsetAuthorID(int id) Updates the author of this bean.voidsetComments(String comments) Updates the request comments.voidsetCreatedOn(Instant dt) Updates the request creation date.voidsetDisposalID(int id) Updates the request disposal ID.voidsetDisposedOn(Instant dt) Updates the request disposal date.voidsetEquipmentType(String eqType) Updates the requested equipment type.voidUpdates the request status.Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateIDMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.deltava.beans.schedule.RoutePair
createKey, getAirports, getDistance, getFlightType, includes, isPopulated, matches, midPoint
-
Constructor Details
-
CharterRequest
public CharterRequest()
-
-
Method Details
-
getAuthorID
public int getAuthorID()Description copied from interface:AuthoredBeanReturns the Author of this bean.- Specified by:
getAuthorIDin 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:RoutePairReturns the departure Airport.- Specified by:
getAirportDin interfaceRoutePair- Returns:
- the departure Airport
-
getAirportA
Description copied from interface:RoutePairReturns the arrival Airport.- Specified by:
getAirportAin interfaceRoutePair- Returns:
- the arrival Airport
-
getAirline
-
getEquipmentType
-
setAuthorID
public void setAuthorID(int id) Description copied from interface:AuthoredBeanUpdates the author of this bean.- Specified by:
setAuthorIDin 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:ViewEntryReturns the CSS class for this object if rendered in a view table.- Specified by:
getRowClassNamein interfaceViewEntry- Returns:
- the CSS class name, or NULL if none
-