Class LogbookSearchCriteria
java.lang.Object
org.deltava.beans.flight.LogbookSearchCriteria
- All Implemented Interfaces:
RoutePair
-
Nested Class Summary
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 arrival Airport.Returns the departure Airport.Returns the database to search.Returns the Equipment type to search for.booleanReturns whether Flight Report comments should be loaded.Returns the SQL sorting clause.voidSets the Arrival Airport object for this search.voidSets the Departure Airport object for this search.voidsetEquipmentType(String eqType) Sets an equipment type for this search.voidsetLoadComments(boolean loadComments) Updates whether Flight Report comments should be loaded.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, 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
-
LogbookSearchCriteria
-
-
Method Details
-
getLoadComments
public boolean getLoadComments()Returns whether Flight Report comments should be loaded. This may have a performance impact on large logbooks.- Returns:
- TRUE if comments should be loaded, otherwise FALSE
-
getDBName
-
getSortBy
-
getEquipmentType
Returns the Equipment type to search for.- Returns:
- the equipment code
-
getAirportA
Description copied from interface:RoutePairReturns the arrival Airport.- Specified by:
getAirportAin interfaceRoutePair- Returns:
- the arrival Airport
-
getAirportD
Description copied from interface:RoutePairReturns the departure Airport.- Specified by:
getAirportDin interfaceRoutePair- Returns:
- the departure Airport
-
setLoadComments
public void setLoadComments(boolean loadComments) Updates whether Flight Report comments should be loaded. This may have a performance impact on large logbooks.- Parameters:
loadComments- TRUE if comments should be loaded, otherwise FALSE
-
setEquipmentType
Sets an equipment type for this search.- Parameters:
eqType- the equipment type
-
setAirportA
Sets the Arrival Airport object for this search.- Parameters:
a- the Arrival Airport object
-
setAirportD
Sets the Departure Airport object for this search.- Parameters:
a- the Departure Airport object
-