Class AbstractTemporalOsidObjectQuery

All Implemented Interfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, OsidTemporalQuery, Suppliable
Direct Known Subclasses:
AbstractActivityQuery, AbstractBuildingQuery, AbstractCustomerQuery, AbstractEventQuery, AbstractFloorQuery, AbstractOrganizationQuery, AbstractOsidRelationshipQuery, AbstractPayerQuery, AbstractPositionQuery, AbstractProjectQuery, AbstractRenovationQuery, AbstractResultQuery, AbstractRoomQuery, AbstractTodoQuery

public abstract class AbstractTemporalOsidObjectQuery extends AbstractOsidObjectQuery implements OsidTemporalQuery, OsidObjectQuery
Defines a Temporal OsidObjectQuery.
  • Constructor Details

    • AbstractTemporalOsidObjectQuery

      public AbstractTemporalOsidObjectQuery()
      Constructs a new AbstractTemporalOsidObjectQuery.
  • Method Details

    • matchEffective

      @OSID public void matchEffective(boolean match)
      Match effective objects where the current date falls within the start and end dates inclusive.
      Specified by:
      matchEffective in interface OsidTemporalQuery
      Parameters:
      match - true to match any effective, false to match ineffective
    • clearEffectiveTerms

      @OSID public void clearEffectiveTerms()
      Clears the effective query terms.
      Specified by:
      clearEffectiveTerms in interface OsidTemporalQuery
    • matchStartDate

      @OSID public void matchStartDate(DateTime start, DateTime end, boolean match)
      Matches temporals whose start date falls in between the given dates inclusive.
      Specified by:
      matchStartDate in interface OsidTemporalQuery
      Parameters:
      start - start of date range
      end - end of date range
      match - true if a positive match, false for a negative match
      Throws:
      InvalidArgumentException - start is less than end
      NullArgumentException - start or end is null
    • matchAnyStartDate

      @OSID public void matchAnyStartDate(boolean match)
      Matches temporals with any start date set.
      Specified by:
      matchAnyStartDate in interface OsidTemporalQuery
      Parameters:
      match - true to match any start date, false to match no start date
    • clearStartDateTerms

      @OSID public void clearStartDateTerms()
      Clears the start date query terms.
      Specified by:
      clearStartDateTerms in interface OsidTemporalQuery
    • matchEndDate

      @OSID public void matchEndDate(DateTime start, DateTime end, boolean match)
      Matches temporals whose effective end date falls in between the given dates inclusive.
      Specified by:
      matchEndDate in interface OsidTemporalQuery
      Parameters:
      start - start of date range
      end - end of date range
      match - true if a positive match, false for negative match
      Throws:
      InvalidArgumentException - start is less than end
      NullArgumentException - start or end is null
    • matchAnyEndDate

      @OSID public void matchAnyEndDate(boolean match)
      Matches temporals with any end date set.
      Specified by:
      matchAnyEndDate in interface OsidTemporalQuery
      Parameters:
      match - true to match any end date, false to match no start date
    • clearEndDateTerms

      @OSID public void clearEndDateTerms()
      Clears the end date query terms.
      Specified by:
      clearEndDateTerms in interface OsidTemporalQuery
    • matchDate

      @OSID public void matchDate(DateTime from, DateTime to, boolean match)
      Matches temporals where the given date is included within the start and end dates inclusive.
      Specified by:
      matchDate in interface OsidTemporalQuery
      Parameters:
      from - start date
      to - end date
      match - true if a positive match, false for a negative match
      Throws:
      InvalidArgumentException - from is less than to
      NullArgumentException - from or to is null
    • clearDateTerms

      @OSID public void clearDateTerms()
      Clears the date query terms.
      Specified by:
      clearDateTerms in interface OsidTemporalQuery