Package org.castor.cpa.query
Interface SelectQuery
- All Superinterfaces:
QueryObject
- All Known Implementing Classes:
SelectQueryImpl
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
Modifier and TypeMethodDescriptionvoid
addProjection
(Field field) Adds the projection.void
Adds the schema.newBoolean
(boolean value) New boolean.New enum.newNumeric
(double value) New numeric.newNumeric
(long value) New numeric.newNumeric
(BigDecimal value) New numeric.New order.newOrder
(Field field, OrderDirection direction) New order.newParameter
(int position) Factory method to create new Parameter.newParameter
(String name) New parameter.Factory method to create new Schema.Factory method to create new Schema.New string.newTemporal
(TemporalType temporalType) New temporal.newTemporal
(TemporalType temporalType, Calendar value) New temporal.newTemporal
(TemporalType temporalType, 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
Sets the limit.void
Sets the limit.void
Sets the order.void
Sets the where.Methods inherited from interface org.castor.cpa.query.QueryObject
toString
-
Method Details
-
newSchema
Factory method to create new Schema.- Parameters:
schema
- the schemaidentifier
- the identifier- Returns:
- the schema
-
newSchema
Factory method to create new Schema.- Parameters:
schema
- the schemaidentifier
- the identifier- Returns:
- the schema
-
newParameter
Factory method to create new Parameter.- Parameters:
position
- the int- Returns:
- the parameter
-
newParameter
New parameter.- Parameters:
name
- the name- Returns:
- the parameter
-
newBoolean
New boolean.- Parameters:
value
- the value- Returns:
- the literal
-
newNumeric
New numeric.- Parameters:
value
- the value- Returns:
- the literal
-
newNumeric
New numeric.- Parameters:
value
- the value- Returns:
- the literal
-
newNumeric
New numeric.- Parameters:
value
- the value- Returns:
- the literal
-
newString
New string.- Parameters:
value
- the value- Returns:
- the literal
-
newEnum
New enum.- Parameters:
identifier
- the identifier- Returns:
- the literal
-
newOrder
New order.- Parameters:
field
- the field- Returns:
- the order
-
newOrder
New order.- Parameters:
field
- the fielddirection
- the direction- Returns:
- the order
-
newTemporal
New temporal.- Parameters:
temporalType
- the temporal type- Returns:
- the expression
-
newTemporal
New temporal.- Parameters:
temporalType
- the temporal typevalue
- the value- Returns:
- the expression
-
newTemporal
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
Adds the projection.- Parameters:
field
- the field
-
addSchema
Adds the schema.- Parameters:
schema
- the schema
-
setWhere
Sets the where.- Parameters:
condition
- the new where
-
setOrder
Sets the order.- Parameters:
order
- the new order
-
setLimit
void setLimit(int limit) Sets the limit.- Parameters:
limit
- the new limit
-
setLimit
Sets the limit.- Parameters:
limit
- the new limit
-
setLimit
void setLimit(int limit, int offset) Sets the limit.- Parameters:
limit
- the limitoffset
- the offset
-
setLimit
Sets the limit.- Parameters:
limit
- the limitoffset
- the offset
-