Package org.castor.cpa.query
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addProjection(Field field)
Adds the projection.void
addSchema(Schema schema)
Adds the schema.Literal
newBoolean(boolean value)
New boolean.Literal
newEnum(java.lang.Enum<?> identifier)
New enum.Literal
newNumeric(double value)
New numeric.Literal
newNumeric(long value)
New numeric.Literal
newNumeric(java.math.BigDecimal value)
New numeric.Order
newOrder(Field field)
New order.Order
newOrder(Field field, OrderDirection direction)
New order.Parameter
newParameter(int position)
Factory method to create new Parameter.Parameter
newParameter(java.lang.String name)
New parameter.Schema
newSchema(java.lang.Class<?> schema, java.lang.String identifier)
Factory method to create new Schema.Schema
newSchema(java.lang.String schema, java.lang.String identifier)
Factory method to create new Schema.Literal
newString(java.lang.String value)
New string.Expression
newTemporal(TemporalType temporalType)
New temporal.Expression
newTemporal(TemporalType temporalType, java.util.Calendar value)
New temporal.Expression
newTemporal(TemporalType temporalType, java.util.Date value)
New temporal.void
setDistinct(boolean distinct)
Sets the distinct.void
setLimit(int limit)
Sets the limit.void
setLimit(int limit, int offset)
Sets the limit.void
setLimit(Parameter limit)
Sets the limit.void
setLimit(Parameter limit, Parameter offset)
Sets the limit.void
setOrder(Order order)
Sets the order.void
setWhere(Condition condition)
Sets the where.-
Methods inherited from interface org.castor.cpa.query.QueryObject
toString
-
-
-
-
Method Detail
-
newSchema
Schema newSchema(java.lang.String schema, java.lang.String identifier)
Factory method to create new Schema.- Parameters:
schema
- the schemaidentifier
- 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 schemaidentifier
- 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, OrderDirection direction)
New order.- Parameters:
field
- the fielddirection
- 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 typevalue
- the value- Returns:
- the expression
-
newTemporal
Expression newTemporal(TemporalType temporalType, java.util.Calendar value)
New temporal.- Parameters:
temporalType
- the temporal typevalue
- 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 limitoffset
- the offset
-
-