|
||||||||||
| 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(Enum<?> identifier)
New enum. |
Literal |
newNumeric(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(String name)
New parameter. |
Schema |
newSchema(Class<?> schema,
String identifier)
Factory method to create new Schema. |
Schema |
newSchema(String schema,
String identifier)
Factory method to create new Schema. |
Literal |
newString(String value)
New string. |
Expression |
newTemporal(TemporalType temporalType)
New temporal. |
Expression |
newTemporal(TemporalType temporalType,
Calendar value)
New temporal. |
Expression |
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 |
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(String schema,
String identifier)
schema - the schemaidentifier - the identifier
Schema newSchema(Class<?> schema,
String identifier)
schema - the schemaidentifier - the identifier
Parameter newParameter(int position)
position - the int
Parameter newParameter(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(BigDecimal value)
value - the value
Literal newString(String value)
value - the value
Literal newEnum(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,
Date value)
temporalType - the temporal typevalue - the value
Expression newTemporal(TemporalType temporalType,
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 limit
void setLimit(int limit,
int offset)
limit - the limitoffset - the offset
void 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 | |||||||||