Interface SelectQuery

  • All Superinterfaces:
    QueryObject
    All Known Implementing Classes:
    SelectQueryImpl

    public interface SelectQuery
    extends QueryObject
    Interface for Select Query of query objects.
    Since:
    1.3
    Version:
    $Revision: 7121 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
    Author:
    Udai Gupta, Ralf Joachim
    • Method Detail

      • newSchema

        Schema newSchema​(java.lang.String schema,
                         java.lang.String identifier)
        Factory method to create new Schema.
        Parameters:
        schema - the schema
        identifier - the identifier
        Returns:
        the schema
      • newSchema

        Schema newSchema​(java.lang.Class<?> schema,
                         java.lang.String identifier)
        Factory method to create new Schema.
        Parameters:
        schema - the schema
        identifier - the identifier
        Returns:
        the schema
      • newParameter

        Parameter newParameter​(int position)
        Factory method to create new Parameter.
        Parameters:
        position - the int
        Returns:
        the parameter
      • newParameter

        Parameter newParameter​(java.lang.String name)
        New parameter.
        Parameters:
        name - the name
        Returns:
        the parameter
      • newBoolean

        Literal newBoolean​(boolean value)
        New boolean.
        Parameters:
        value - the value
        Returns:
        the literal
      • newNumeric

        Literal newNumeric​(long value)
        New numeric.
        Parameters:
        value - the value
        Returns:
        the literal
      • newNumeric

        Literal newNumeric​(double value)
        New numeric.
        Parameters:
        value - the value
        Returns:
        the literal
      • newNumeric

        Literal newNumeric​(java.math.BigDecimal value)
        New numeric.
        Parameters:
        value - the value
        Returns:
        the literal
      • newString

        Literal newString​(java.lang.String value)
        New string.
        Parameters:
        value - the value
        Returns:
        the literal
      • newEnum

        Literal newEnum​(java.lang.Enum<?> identifier)
        New enum.
        Parameters:
        identifier - the identifier
        Returns:
        the literal
      • newOrder

        Order newOrder​(Field field)
        New order.
        Parameters:
        field - the field
        Returns:
        the order
      • newOrder

        Order newOrder​(Field field,
                       OrderDirection direction)
        New order.
        Parameters:
        field - the field
        direction - the direction
        Returns:
        the order
      • newTemporal

        Expression newTemporal​(TemporalType temporalType)
        New temporal.
        Parameters:
        temporalType - the temporal type
        Returns:
        the expression
      • newTemporal

        Expression newTemporal​(TemporalType temporalType,
                               java.util.Date value)
        New temporal.
        Parameters:
        temporalType - the temporal type
        value - the value
        Returns:
        the expression
      • newTemporal

        Expression newTemporal​(TemporalType temporalType,
                               java.util.Calendar value)
        New temporal.
        Parameters:
        temporalType - the temporal type
        value - the value
        Returns:
        the expression
      • setDistinct

        void setDistinct​(boolean distinct)
        Sets the distinct.
        Parameters:
        distinct - the new distinct
      • addProjection

        void addProjection​(Field field)
        Adds the projection.
        Parameters:
        field - the field
      • addSchema

        void addSchema​(Schema schema)
        Adds the schema.
        Parameters:
        schema - the schema
      • setWhere

        void setWhere​(Condition condition)
        Sets the where.
        Parameters:
        condition - the new where
      • setOrder

        void setOrder​(Order order)
        Sets the order.
        Parameters:
        order - the new order
      • setLimit

        void setLimit​(int limit)
        Sets the limit.
        Parameters:
        limit - the new limit
      • setLimit

        void setLimit​(Parameter limit)
        Sets the limit.
        Parameters:
        limit - the new limit
      • setLimit

        void setLimit​(int limit,
                      int offset)
        Sets the limit.
        Parameters:
        limit - the limit
        offset - the offset
      • setLimit

        void setLimit​(Parameter limit,
                      Parameter offset)
        Sets the limit.
        Parameters:
        limit - the limit
        offset - the offset