Class LogbookSearchCriteria

java.lang.Object
org.deltava.beans.flight.LogbookSearchCriteria
All Implemented Interfaces:
RoutePair

public class LogbookSearchCriteria extends Object implements RoutePair
A bean to store Pilot logbook search criteria.
Since:
10.1
Version:
10.1
Author:
Luke
  • Constructor Details

    • LogbookSearchCriteria

      public LogbookSearchCriteria(String sortBy, String dbName)
      Creates the bean.
      Parameters:
      sortBy - the SQL sorting clause
      dbName - the database name
  • 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

      public String getDBName()
      Returns the database to search.
      Returns:
      the database name
    • getSortBy

      public String getSortBy()
      Returns the SQL sorting clause.
      Returns:
      the sorting SQL
    • getEquipmentType

      public String getEquipmentType()
      Returns the Equipment type to search for.
      Returns:
      the equipment code
    • getAirportA

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

      public Airport getAirportD()
      Description copied from interface: RoutePair
      Returns the departure Airport.
      Specified by:
      getAirportD in interface RoutePair
      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

      public void setEquipmentType(String eqType)
      Sets an equipment type for this search.
      Parameters:
      eqType - the equipment type
    • setAirportA

      public void setAirportA(Airport a)
      Sets the Arrival Airport object for this search.
      Parameters:
      a - the Arrival Airport object
    • setAirportD

      public void setAirportD(Airport a)
      Sets the Departure Airport object for this search.
      Parameters:
      a - the Departure Airport object