From d479253768d296a40b4f699e1de9b03c7146a97a Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Tue, 3 Dec 2013 14:03:28 -0800 Subject: Adding javadocs and Carbonado User Guide --- apidocs/com/amazon/carbonado/qe/EmptyQuery.html | 1051 +++++++++++++++++++++++ 1 file changed, 1051 insertions(+) create mode 100644 apidocs/com/amazon/carbonado/qe/EmptyQuery.html (limited to 'apidocs/com/amazon/carbonado/qe/EmptyQuery.html') diff --git a/apidocs/com/amazon/carbonado/qe/EmptyQuery.html b/apidocs/com/amazon/carbonado/qe/EmptyQuery.html new file mode 100644 index 0000000..2a8af3d --- /dev/null +++ b/apidocs/com/amazon/carbonado/qe/EmptyQuery.html @@ -0,0 +1,1051 @@ + + + + + + +EmptyQuery (Carbonado 1.2.3 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.amazon.carbonado.qe
+

Class EmptyQuery<S extends Storable>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Query<S>, Appender
    +
    +
    +
    +
    public final class EmptyQuery<S extends Storable>
    +extends AbstractQuery<S>
    +
    Special query implementation that fetches nothing.
    +
    Author:
    +
    Brian S O'Neill
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        EmptyQuery

        +
        public EmptyQuery(QueryFactory<S> factory,
        +          OrderingList<S> ordering)
        +
        Parameters:
        factory - required query factory, used by 'or' and 'not' methods
        ordering - optional order-by properties
        +
      • +
      + + + +
        +
      • +

        EmptyQuery

        +
        public EmptyQuery(QueryFactory<S> factory,
        +          java.lang.String ordering)
        +
        Parameters:
        factory - required query factory, used by 'or' and 'not' methods
        ordering - optional order-by property
        +
      • +
      + + + +
        +
      • +

        EmptyQuery

        +
        public EmptyQuery(QueryFactory<S> factory,
        +          java.lang.String... orderings)
        +
        Parameters:
        factory - required query factory, used by 'or' and 'not' methods
        orderings - optional order-by properties
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getStorableType

        +
        public java.lang.Class<S> getStorableType()
        +
        Description copied from interface: Query
        +
        Returns the specific type of Storable managed by this object.
        +
      • +
      + + + + + + + +
        +
      • +

        getFilterValues

        +
        public FilterValues<S> getFilterValues()
        +
        Always returns null.
        +
      • +
      + + + +
        +
      • +

        getBlankParameterCount

        +
        public int getBlankParameterCount()
        +
        Always returns zero.
        +
      • +
      + + + +
        +
      • +

        with

        +
        public Query<S> with(int value)
        +
        Always throws an IllegalStateException.
        +
        Parameters:
        value - parameter value to fill in
        +
      • +
      + + + +
        +
      • +

        with

        +
        public Query<S> with(long value)
        +
        Always throws an IllegalStateException.
        +
        Parameters:
        value - parameter value to fill in
        +
      • +
      + + + +
        +
      • +

        with

        +
        public Query<S> with(float value)
        +
        Always throws an IllegalStateException.
        +
        Parameters:
        value - parameter value to fill in
        +
      • +
      + + + +
        +
      • +

        with

        +
        public Query<S> with(double value)
        +
        Always throws an IllegalStateException.
        +
        Parameters:
        value - parameter value to fill in
        +
      • +
      + + + +
        +
      • +

        with

        +
        public Query<S> with(boolean value)
        +
        Always throws an IllegalStateException.
        +
        Parameters:
        value - parameter value to fill in
        +
      • +
      + + + +
        +
      • +

        with

        +
        public Query<S> with(char value)
        +
        Always throws an IllegalStateException.
        +
        Parameters:
        value - parameter value to fill in
        +
      • +
      + + + +
        +
      • +

        with

        +
        public Query<S> with(byte value)
        +
        Always throws an IllegalStateException.
        +
        Parameters:
        value - parameter value to fill in
        +
      • +
      + + + +
        +
      • +

        with

        +
        public Query<S> with(short value)
        +
        Always throws an IllegalStateException.
        +
        Parameters:
        value - parameter value to fill in
        +
      • +
      + + + +
        +
      • +

        with

        +
        public Query<S> with(java.lang.Object value)
        +
        Always throws an IllegalStateException.
        +
        Parameters:
        value - parameter value to fill in
        +
      • +
      + + + +
        +
      • +

        withValues

        +
        public Query<S> withValues(java.lang.Object... values)
        +
        Throws an IllegalStateException unless no values passed in.
        +
        Parameters:
        values - parameter values to fill in; if null or empty, this + Query instance is returned
        +
      • +
      + + + +
        +
      • +

        and

        +
        public Query<S> and(Filter<S> filter)
        +
        Always throws an IllegalStateException.
        +
        Parameters:
        filter - query filter
        +
      • +
      + + + +
        +
      • +

        or

        +
        public Query<S> or(Filter<S> filter)
        +                             throws FetchException
        +
        Description copied from interface: Query
        +
        Returns a new query which has another filter logically "or"ed to this, potentially increasing the amount of + results.
        +
        Parameters:
        filter - query filter
        +
        Throws:
        +
        FetchException - if storage layer throws an exception
        +
      • +
      + + + +
        +
      • +

        not

        +
        public Query<S> not()
        +                              throws FetchException
        +
        Returns a query that fetches everything, possibly in a specified order.
        +
        Throws:
        +
        FetchException - if storage layer throws an exception
        +
      • +
      + + + +
        +
      • +

        orderBy

        +
        public Query<S> orderBy(java.lang.String property)
        +                                  throws FetchException
        +
        Description copied from interface: Query
        +
        Returns a copy of this query ordered by a specific property value. The + property name may be prefixed with '+' or '-' to indicate ascending or + descending order. If the prefix is omitted, ascending order is assumed. + +

        Note: Specification of ordering properties is not cumulative. Calling + this method will first remove any previous ordering properties.

        +
        Parameters:
        property - name of property to order by
        +
        Throws:
        +
        FetchException - if storage layer throws an exception
        +
      • +
      + + + +
        +
      • +

        orderBy

        +
        public Query<S> orderBy(java.lang.String... properties)
        +                                  throws FetchException
        +
        Description copied from interface: Query
        +
        Returns a copy of this query ordered by specific property values. The + property names may be prefixed with '+' or '-' to indicate ascending or + descending order. If the prefix is omitted, ascending order is assumed. + +

        Note: Specification of ordering properties is not cumulative. Calling + this method will first remove any previous ordering properties.

        +
        Parameters:
        properties - names of properties to order by
        +
        Throws:
        +
        FetchException - if storage layer throws an exception
        +
      • +
      + + + + + +
        +
      • +

        after

        +
        public <T extends SQuery<S> after(T start)
        +
        Description copied from interface: Query
        +
        Returns a query which fetches results for this query after a given + starting point, which is useful for re-opening a cursor. This is only + effective when query has been given an explicit ordering. If not a total ordering, then query may start at an earlier + position. + +

        Note: The returned query can be very expensive to fetch from + repeatedly, if the query needs to perform a sort operation. Ideally, the + query ordering should match the natural ordering of an index or key.

        +
        Parameters:
        start - storable to attempt to start after; if null, this query is + returned
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        fetchSlice

        +
        public Cursor<S> fetchSlice(long from,
        +                   java.lang.Long to)
        +
        Always returns an EmptyCursor.
        +
        Parameters:
        from - zero-based from record number, inclusive
        to - optional zero-based to record number, exclusive
        +
        Returns:
        fetch results
        +
      • +
      + + + +
        +
      • +

        fetchSlice

        +
        public Cursor<S> fetchSlice(long from,
        +                   java.lang.Long to,
        +                   Query.Controller controller)
        +
        Always returns an EmptyCursor.
        +
        Parameters:
        from - zero-based from record number, inclusive
        to - optional zero-based to record number, exclusive
        controller - optional controller which can abort query operation
        +
        Returns:
        fetch results
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        tryDeleteOne

        +
        public boolean tryDeleteOne()
        +
        Always returns false.
        +
        Returns:
        true if record existed and was deleted, or false if no match
        +
      • +
      + + + +
        +
      • +

        tryDeleteOne

        +
        public boolean tryDeleteOne(Query.Controller controller)
        +
        Always returns false.
        +
        Parameters:
        controller - optional controller which can abort query operation
        +
        Returns:
        true if record existed and was deleted, or false if no match
        +
      • +
      + + + +
        +
      • +

        deleteAll

        +
        public void deleteAll()
        +
        Does nothing.
        +
      • +
      + + + +
        +
      • +

        deleteAll

        +
        public void deleteAll(Query.Controller controller)
        +
        Does nothing.
        +
        Parameters:
        controller - optional controller which can abort query operation
        +
      • +
      + + + +
        +
      • +

        count

        +
        public long count()
        +
        Always returns zero.
        +
        Returns:
        count of matches
        +
      • +
      + + + +
        +
      • +

        count

        +
        public long count(Query.Controller controller)
        +
        Always returns zero.
        +
        Parameters:
        controller - optional controller which can abort query operation
        +
        Returns:
        count of matches
        +
      • +
      + + + +
        +
      • +

        exists

        +
        public boolean exists()
        +
        Always returns false.
        +
        Returns:
        true if any matches
        +
      • +
      + + + +
        +
      • +

        exists

        +
        public boolean exists(Query.Controller controller)
        +
        Always returns false.
        +
        Parameters:
        controller - optional controller which can abort query operation
        +
        Returns:
        true if any matches
        +
      • +
      + + + +
        +
      • +

        appendTo

        +
        public void appendTo(java.lang.Appendable app)
        +              throws java.io.IOException
        +
        Description copied from interface: Appender
        +
        Append the string representation of this object to the given Appendable.
        +
        Parameters:
        app - Appendable object to receive string representation
        +
        Throws:
        +
        java.io.IOException - if thrown from given Appendable
        +
      • +
      + + + +
        +
      • +

        printNative

        +
        public boolean printNative(java.lang.Appendable app,
        +                  int indentLevel)
        +
        Always returns false.
        +
        Parameters:
        app - append results here
        indentLevel - amount to indent text, zero for none
        +
        Returns:
        false if not implemented
        +
      • +
      + + + +
        +
      • +

        printPlan

        +
        public boolean printPlan(java.lang.Appendable app,
        +                int indentLevel)
        +
        Always returns false.
        +
        Parameters:
        app - append results here
        indentLevel - amount to indent text, zero for none
        +
        Returns:
        false if not implemented
        +
      • +
      + + + + + + + + +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.

+ + -- cgit v1.2.3