Interface BidQuery

All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, OsidRelationshipQuery, OsidTemporalQuery, Suppliable

public interface BidQuery extends OsidRelationshipQuery

This is the query for searching bids. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR .

  • Method Details

    • matchAuctionId

      void matchAuctionId(Id auctionId, boolean match)
      Sets the auction Id for this query.
      Parameters:
      auctionId - the auction Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - auctionId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearAuctionIdTerms

      void clearAuctionIdTerms()
      Clears the auction Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsAuctionQuery

      boolean supportsAuctionQuery()
      Tests if an AuctionQuery is available.
      Returns:
      true if an auction query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getAuctionQuery

      AuctionQuery getAuctionQuery()
      Gets the query for an auction. Multiple retrievals produce a nested OR term.
      Returns:
      the auction query
      Throws:
      UnimplementedException - supportsAuctionQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsAuctionQuery()} is {@code true} .
    • clearAuctionTerms

      void clearAuctionTerms()
      Clears the auction query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchBidderId

      void matchBidderId(Id resourceId, boolean match)
      Sets the resource Id for this query.
      Parameters:
      resourceId - the resource Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - resourceId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearBidderIdTerms

      void clearBidderIdTerms()
      Clears the resource Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsBidderQuery

      boolean supportsBidderQuery()
      Tests if a ResourceQuery is available.
      Returns:
      true if a resource query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getBidderQuery

      ResourceQuery getBidderQuery()
      Gets the query for a resource. Multiple retrievals produce a nested OR term.
      Returns:
      the resource query
      Throws:
      UnimplementedException - supportsBidderQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsBidderQuery()} is {@code true} .
    • clearBidderTerms

      void clearBidderTerms()
      Clears the resource query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchBiddingAgentId

      void matchBiddingAgentId(Id agentId, boolean match)
      Sets the agent Id for this query.
      Parameters:
      agentId - the agent Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - agentId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearBiddingAgentIdTerms

      void clearBiddingAgentIdTerms()
      Clears the agent Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsBiddingAgentQuery

      boolean supportsBiddingAgentQuery()
      Tests if an AgentQuery is available.
      Returns:
      true if an agent query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getBiddingAgentQuery

      AgentQuery getBiddingAgentQuery()
      Gets the query for an agent. Multiple retrievals produce a nested OR term.
      Returns:
      the agent query
      Throws:
      UnimplementedException - supportsBiddingAgentQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsBiddingAgentQuery()} is {@code true} .
    • clearBiddingAgentTerms

      void clearBiddingAgentTerms()
      Clears the agent query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchQuantity

      void matchQuantity(long start, long end, boolean match)
      Matches bids with quantities between the given range inclusive.
      Parameters:
      start - start range
      end - end range
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - start is greater than end
      Compliance:
      mandatory - This method must be implemented.
    • clearQuantityTerms

      void clearQuantityTerms()
      Clears the quantity query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchCurrentBid

      void matchCurrentBid(Currency start, Currency end, boolean match)
      Matches bids with a current bidsbetween the given range inclusive.
      Parameters:
      start - start range
      end - end range
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - start is greater than end or start.getCurencyType() != end.getCurrencyType()
      NullArgumentException - currency is null
      Compliance:
      mandatory - This method must be implemented.
    • clearCurrentBidTerms

      void clearCurrentBidTerms()
      Clears the current bid query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchMaximumBid

      void matchMaximumBid(Currency start, Currency end, boolean match)
      Matches bids with a max bid between the given range inclusive.
      Parameters:
      start - start range
      end - end range
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - start is greater than end or start.getCurencyType() != end.getCurrencyType()
      NullArgumentException - currency is null
      Compliance:
      mandatory - This method must be implemented.
    • clearMaximumBidTerms

      void clearMaximumBidTerms()
      Clears the max bid query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchWinner

      void matchWinner(boolean match)
      Matches winning bids.
      Parameters:
      match - true for a positive match, false for a negative match
      Compliance:
      mandatory - This method must be implemented.
    • clearWinnerTerms

      void clearWinnerTerms()
      Clears the winner query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchSettlementAmount

      void matchSettlementAmount(Currency start, Currency end, boolean match)
      Matches bids with a settlement amount between the given range inclusive.
      Parameters:
      start - start range
      end - end range
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - start is greater than end or start.getCurencyType() != end.getCurrencyType()
      NullArgumentException - currency is null
      Compliance:
      mandatory - This method must be implemented.
    • clearSettlementAmountTerms

      void clearSettlementAmountTerms()
      Clears the settlement amount query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchAuctionHouseId

      void matchAuctionHouseId(Id auctionHouseId, boolean match)
      Sets the auction house Id for this query to match bids assigned to auction houses.
      Parameters:
      auctionHouseId - the auction house Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - auctionHouseId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearAuctionHouseIdTerms

      void clearAuctionHouseIdTerms()
      Clears the auction house Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsAuctionHouseQuery

      boolean supportsAuctionHouseQuery()
      Tests if an AuctionHouseQuery is available.
      Returns:
      true if an auction house query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getAuctionHouseQuery

      AuctionHouseQuery getAuctionHouseQuery()
      Gets the query for an auction house. Multiple retrievals produce a nested OR term.
      Returns:
      the auction house query
      Throws:
      UnimplementedException - supportsAuctionHouseQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsAuctionHouseQuery()} is {@code true} .
    • clearAuctionHouseTerms

      void clearAuctionHouseTerms()
      Clears the auction house query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getBidQueryRecord

      BidQueryRecord getBidQueryRecord(Type bidRecordType) throws OperationFailedException
      Gets the bid query record corresponding to the given Bid record Type .Multiple record retrievals produce a nested OR term.
      Parameters:
      bidRecordType - a bid record type
      Returns:
      the bid query record
      Throws:
      NullArgumentException - bidRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(bidRecordType) is false
      Compliance:
      mandatory - This method must be implemented.