| org.jpox.store.FetchStatement
FetchStatement | public interface FetchStatement (Code) | | Representation of a statement to fetch a particular object.
version: $Revision: 1.13 $ |
andCondition | abstract public void andCondition(String condition)(Code) | | Method to add an extra condition to the WHERE clause.
Parameters: condition - The condition |
referenceDatastoreField | abstract public String referenceDatastoreField(DatastoreField col)(Code) | | Method to specify a column to be referenced.
Parameters: col - The column The column statement text |
select | abstract public int select(DatastoreField col)(Code) | | Add a column to the SELECT clause.
Parameters: col - The column to add The parameter position of this column in the statement. |
select | abstract public int select(String expr)(Code) | | Adds an expression to the SELECT clause.
Parameters: expr - the expr to add to the select clause The parameter position of this expression in the statement. |
selectOuterJoin | abstract public int[] selectOuterJoin(JavaTypeMapping refMapping, JavaTypeMapping selectMapping, JavaTypeMapping refDiscrimMapping, Object[] discrimValues, boolean useExistingJoinIfPossible)(Code) | | Add column(s) to the SELECT clause using a LEFT OUTER JOIN
to join to another table. Joins using the refMapping in the other table,
and selects the columns of the selectMapping. A discriminator in the other table
can be provided where this should be part of the join constraint.
Parameters: refMapping - Mapping in the other table to join to. Parameters: selectMapping - Mapping of the field in the other table to select Parameters: refDiscrimMapping - Mapping for discriminator in the related table (optional) Parameters: discrimValues - Valid values for the discriminator in the related table (optional) Parameters: useExistingJoinIfPossible - Use an existing outer join if possible The parameter position(s) of the column(s) in the statement. |
selectOuterJoin | abstract public int[] selectOuterJoin(JavaTypeMapping refMapping, JavaTypeMapping selectMapping, JavaTypeMapping refTypeMapping)(Code) | | Add column(s) to the SELECT clause using a LEFT OUTER JOIN
to join to another table. Joins using the refMapping in the other table,
and selects the columns of the selectMapping. A reference type mapping can be provided
where we need the reference mapping joining to a subclass table to define the
correct type.
Parameters: refMapping - Mapping in the other table to join to. Parameters: selectMapping - Mapping of the field in the other table to select Parameters: refTypeMapping - Mapping for subclass table for the related table (optional) The parameter position(s) of the column(s) in the statement. |
toString | abstract public String toString()(Code) | | Method to return the statement assuming no locking of rows.
The statement |
toString | abstract public String toString(boolean lock)(Code) | | Method to return the statement.
Parameters: lock - Whether to lock the rows found by this SELECT The statement |
|
|