|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Representation of a statement to fetch a particular object.
Method Summary | |
void |
andCondition(java.lang.String condition)
Method to add an extra condition to the WHERE clause. |
java.lang.String |
referenceDatastoreField(DatastoreField col)
Method to specify a column to be referenced. |
int |
select(DatastoreField col)
Add a column to the SELECT clause. |
int |
select(java.lang.String expr)
Adds an expression to the SELECT clause. |
int[] |
selectOuterJoin(JavaTypeMapping refMapping,
JavaTypeMapping selectMapping,
JavaTypeMapping refTypeMapping)
Add column(s) to the SELECT clause using a LEFT OUTER JOIN to join to another table. |
int[] |
selectOuterJoin(JavaTypeMapping refMapping,
JavaTypeMapping selectMapping,
JavaTypeMapping refDiscrimMapping,
java.lang.Object[] discrimValues)
Add column(s) to the SELECT clause using a LEFT OUTER JOIN to join to another table. |
java.lang.String |
toString()
Method to return the statement assuming no locking of rows. |
java.lang.String |
toString(boolean lock)
Method to return the statement. |
Method Detail |
public int[] selectOuterJoin(JavaTypeMapping refMapping, JavaTypeMapping selectMapping, JavaTypeMapping refDiscrimMapping, java.lang.Object[] discrimValues)
refMapping
- Mapping in the other table to join to.selectMapping
- Mapping of the field in the other table to selectrefDiscrimMapping
- Mapping for discriminator in the related table (optional)discrimValues
- Valid values for the discriminator in the related table (optional)
public int[] selectOuterJoin(JavaTypeMapping refMapping, JavaTypeMapping selectMapping, JavaTypeMapping refTypeMapping)
refMapping
- Mapping in the other table to join to.selectMapping
- Mapping of the field in the other table to selectrefTypeMapping
- Mapping for subclass table for the related table (optional)
public int select(DatastoreField col)
col
- The column to add
public int select(java.lang.String expr)
expr
- the expr to add to the select clause
public java.lang.String referenceDatastoreField(DatastoreField col)
col
- The column
public void andCondition(java.lang.String condition)
condition
- The conditionpublic java.lang.String toString()
public java.lang.String toString(boolean lock)
lock
- Whether to lock the rows found by this SELECT
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |