Class Signup

java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.event.Signup
All Implemented Interfaces:
Serializable, Comparable<Object>, IDBean, Cacheable

public class Signup extends DatabaseBean
A class to hold Online Event pilot signups.
Since:
1.0
Version:
8.0
Author:
Luke
See Also:
  • Constructor Details

    • Signup

      public Signup(int eventID, int pilotID)
      Creates a new Event Signup for a Pilot.
      Parameters:
      eventID - the Event database ID
      pilotID - the Pilot's database ID
      Throws:
      IllegalArgumentException - if eventID or pilotID are zero or negative
      See Also:
  • Method Details

    • getRouteID

      public int getRouteID()
      Returns the Route for this Signup.
      Returns:
      the Route database ID
      See Also:
    • getEquipmentType

      public String getEquipmentType()
      Returns the requested equipment type.
      Returns:
      the equipment type
      See Also:
    • getAirportA

      public Airport getAirportA()
      Returns the destination Airport for this signed-up route.
      Returns:
      the Airport bean
      See Also:
    • getAirportD

      public Airport getAirportD()
      Returns the origin Airport for this signed-up route.
      Returns:
      the Airport bean
      See Also:
    • getPilotID

      public int getPilotID()
      Returns the database ID of the signed-up pilot.
      Returns:
      the Pilot's database ID
      See Also:
    • getRemarks

      public String getRemarks()
      Returns any Pilot remarks about this Signup.
      Returns:
      the remarks
      See Also:
    • setRouteID

      public void setRouteID(int id)
      Updates the Route ID for this Signup.
      Parameters:
      id - the Route database ID
      Throws:
      IllegalArgumentException - if id is zero or negative
      See Also:
    • setPilotID

      public void setPilotID(int id)
      Updates the Pilot ID for this Signup.
      Parameters:
      id - the Pilot database ID
      Throws:
      IllegalArgumentException - if id is zero or negative
      See Also:
    • setAirportA

      public void setAirportA(Airport a)
      Updates the destination Airport.
      Parameters:
      a - the Airport bean
      See Also:
    • setAirportD

      public void setAirportD(Airport a)
      Updates the origin Airport
      Parameters:
      a - the Airport bean
      See Also:
    • setEquipmentType

      public void setEquipmentType(String eqType)
      Updates the requested equipment type
      Parameters:
      eqType - the aircraft type
      See Also:
    • setRemarks

      public void setRemarks(String remarks)
      Updates the Pilot's remarks.
      Parameters:
      remarks - the remarks
      See Also:
    • compareTo

      public int compareTo(Object o)
      Compares two signups by comparing their event, route and pilot IDs.
      Specified by:
      compareTo in interface Comparable<Object>
      Overrides:
      compareTo in class DatabaseBean