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 RoutePair
RoutePair.RoutePairImplModifier and TypeInterfaceDescriptionstatic classHelper class when all you need is a naked RoutePair. -
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 DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateIDModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.intbooleangetHexID()Returns the hexadecimal database ID of this object.intgetID()Returns the database ID of this object.inthashCode()voidsetID(int id) Update the database row ID of this bean.static voidvalidateID(int oldID, int newID) Validates a database ID.static voidvalidateID(int oldID, int newID, boolean allowZero) Validates a database ID.Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RoutePair
createKey, getAirports, getDistance, getFlightType, includes, isPopulated, matches, midPointModifier and TypeMethodDescriptiondefault StringReturns a key that describes the route pair.Returns the airports in this Route Pair.default intReturns the distance between the Airports.default FlightTypeReturns the flight type for customs/gate purposes.default booleanReturns whether this RoutePair includes a particular IATA or ICAO code.default booleanReturns whether both airports are populated.default booleanReturns whether this RoutePair matches a particular Route Pair.default GeoLocationmidPoint()Returns the midpoint between the two Airports on a Great Circle route.
-
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
-