Class Signup
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.event.Signup
- All Implemented Interfaces:
Serializable
,Comparable<Object>
,IDBean
,Cacheable
A class to hold Online Event pilot signups.
- Since:
- 1.0
- Version:
- 8.0
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Compares two signups by comparing their event, route and pilot IDs.Returns the destination Airport for this signed-up route.Returns the origin Airport for this signed-up route.Returns the requested equipment type.int
Returns the database ID of the signed-up pilot.Returns any Pilot remarks about this Signup.int
Returns the Route for this Signup.void
Updates the destination Airport.void
Updates the origin Airportvoid
setEquipmentType
(String eqType) Updates the requested equipment typevoid
setPilotID
(int id) Updates the Pilot ID for this Signup.void
setRemarks
(String remarks) Updates the Pilot's remarks.void
setRouteID
(int id) Updates the Route ID for this Signup.Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, equals, getHexID, getID, hashCode, setID, validateID, validateID
-
Constructor Details
-
Signup
public Signup(int eventID, int pilotID) Creates a new Event Signup for a Pilot.- Parameters:
eventID
- the Event database IDpilotID
- 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
Returns the requested equipment type.- Returns:
- the equipment type
- See Also:
-
getAirportA
Returns the destination Airport for this signed-up route.- Returns:
- the Airport bean
- See Also:
-
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
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
Updates the destination Airport.- Parameters:
a
- the Airport bean- See Also:
-
setAirportD
Updates the origin Airport- Parameters:
a
- the Airport bean- See Also:
-
setEquipmentType
Updates the requested equipment type- Parameters:
eqType
- the aircraft type- See Also:
-
setRemarks
Updates the Pilot's remarks.- Parameters:
remarks
- the remarks- See Also:
-
compareTo
Compares two signups by comparing their event, route and pilot IDs.- Specified by:
compareTo
in interfaceComparable<Object>
- Overrides:
compareTo
in classDatabaseBean
-