Class ApprovalStatus
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.flight.ApprovalStatus
- All Implemented Interfaces:
Serializable, Comparable<Object>, IDBean, Cacheable
A bean to track post-approval operations for a Flight Report.
- Since:
- 12.1
- Version:
- 12.1
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ApprovalOperation op) Adds an incomplete post-approval operation for this Flight.booleanChecks if a post-approval operation is pending for this Flight.voidRemoves a complete post-approval operation from this Flight.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.
-
Constructor Details
-
ApprovalStatus
public ApprovalStatus(int id) Creates the bean.- Parameters:
id- the Flight Report database ID
-
-
Method Details
-
add
Adds an incomplete post-approval operation for this Flight.- Parameters:
op- the ApprovalOperation
-
isPending
Checks if a post-approval operation is pending for this Flight.- Parameters:
op- the ApprovalOperation- Returns:
- TRUE if the Operation is incomplete, otherwise FALSE
-
remove
Removes a complete post-approval operation from this Flight.- Parameters:
op- the ApprovalOperation
-