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

public class CharterRequest extends DatabaseBean implements AuthoredBean, RoutePair, ViewEntry
A bean to store Charter flight requests.
Since:
10.0
Version:
11.0
Author:
Luke
See Also:
  • 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 interface AuthoredBean
      Returns:
      the author's database ID
      See Also:
    • getCreatedOn

      public Instant getCreatedOn()
      Returns the request creation date.
      Returns:
      the creation date/time
    • getDisposedOn

      public Instant 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

      public String getComments()
      Returns the request comments.
      Returns:
      the comments
    • getStatus

      public CharterRequest.RequestStatus getStatus()
      Returns the request status.
      Returns:
      a RequestStatus
    • getAirportD

      public Airport getAirportD()
      Description copied from interface: RoutePair
      Returns the departure Airport.
      Specified by:
      getAirportD in interface RoutePair
      Returns:
      the departure Airport
    • getAirportA

      public Airport getAirportA()
      Description copied from interface: RoutePair
      Returns the arrival Airport.
      Specified by:
      getAirportA in interface RoutePair
      Returns:
      the arrival Airport
    • getAirline

      public Airline getAirline()
      Returns the requested Airline.
      Returns:
      the Airline
    • getEquipmentType

      public String getEquipmentType()
      Returns the requested equipment type.
      Returns:
      the equipment type
    • setAuthorID

      public void setAuthorID(int id)
      Description copied from interface: AuthoredBean
      Updates the author of this bean.
      Specified by:
      setAuthorID in interface AuthoredBean
      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

      public void setCreatedOn(Instant dt)
      Updates the request creation date.
      Parameters:
      dt - the creation date/time
    • setDisposedOn

      public void setDisposedOn(Instant dt)
      Updates the request disposal date.
      Parameters:
      dt - the disposal date/time
      Throws:
      IllegalArgumentException - if the date is before the creation date
    • setAirportD

      public void setAirportD(Airport a)
      Updates the departure Airport.
      Parameters:
      a - the Airport
    • setAirportA

      public void setAirportA(Airport a)
      Updates the arrival Airport.
      Parameters:
      a - the Airport
    • setAirline

      public void setAirline(Airline a)
      Updates the requested Airline.
      Parameters:
      a - the Airline
    • setComments

      public void setComments(String comments)
      Updates the request comments.
      Parameters:
      comments - the comments
    • setStatus

      public void setStatus(CharterRequest.RequestStatus status)
      Updates the request status.
      Parameters:
      status - a RequestStatus
    • setEquipmentType

      public void setEquipmentType(String eqType)
      Updates the requested equipment type.
      Parameters:
      eqType - the equipment type
    • getRowClassName

      public String getRowClassName()
      Description copied from interface: ViewEntry
      Returns the CSS class for this object if rendered in a view table.
      Specified by:
      getRowClassName in interface ViewEntry
      Returns:
      the CSS class name, or NULL if none