|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SelectQuery
Interface for Select Query of query objects.
Method Summary | |
---|---|
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(java.math.BigDecimal value)
New numeric. |
Literal |
newNumeric(double value)
New numeric. |
Literal |
newNumeric(long 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 |
---|
Schema newSchema(java.lang.String schema, java.lang.String identifier)
schema
- the schemaidentifier
- the identifier
Schema newSchema(java.lang.Class<?> schema, java.lang.String identifier)
schema
- the schemaidentifier
- the identifier
Parameter newParameter(int position)
position
- the int
Parameter newParameter(java.lang.String name)
name
- the name
Literal newBoolean(boolean value)
value
- the value
Literal newNumeric(long value)
value
- the value
Literal newNumeric(double value)
value
- the value
Literal newNumeric(java.math.BigDecimal value)
value
- the value
Literal newString(java.lang.String value)
value
- the value
Literal newEnum(java.lang.Enum<?> identifier)
identifier
- the identifier
Order newOrder(Field field)
field
- the field
Order newOrder(Field field, OrderDirection direction)
field
- the fielddirection
- the direction
Expression newTemporal(TemporalType temporalType)
temporalType
- the temporal type
Expression newTemporal(TemporalType temporalType, java.util.Date value)
temporalType
- the temporal typevalue
- the value
Expression newTemporal(TemporalType temporalType, java.util.Calendar value)
temporalType
- the temporal typevalue
- the value
void setDistinct(boolean distinct)
distinct
- the new distinctvoid addProjection(Field field)
field
- the fieldvoid addSchema(Schema schema)
schema
- the schemavoid setWhere(Condition condition)
condition
- the new wherevoid setOrder(Order order)
order
- the new ordervoid setLimit(int limit)
limit
- the new limitvoid setLimit(Parameter limit)
limit
- the new limitvoid setLimit(int limit, int offset)
limit
- the limitoffset
- the offsetvoid setLimit(Parameter limit, Parameter offset)
limit
- the limitoffset
- the offset
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |