| java.lang.Object com.sleepycat.persist.EntityJoin
EntityJoin | public class EntityJoin (Code) | | |
Constructor Summary | |
public | EntityJoin(PrimaryIndex<PK, E> index) Creates a join object for a given primary index. |
EntityJoin | public EntityJoin(PrimaryIndex<PK, E> index)(Code) | | Creates a join object for a given primary index.
Parameters: index - the primary index on which the join will operate. |
addCondition | public void addCondition(SecondaryIndex<SK, PK, E> index, SK key)(Code) | | Adds a secondary key condition to the equality join. Only entities
having the given key value in the given secondary index will be returned
by the join operation.
Parameters: index - the secondary index containing the given key value. Parameters: key - the key value to match during the join. |
entities | public ForwardCursor<E> entities() throws DatabaseException(Code) | | Opens a cursor that returns the entities qualifying for the join. The
join operation is performed as the returned cursor is accessed.
The operations performed with the cursor will not be transaction
protected, and
CursorConfig.DEFAULT is used implicitly.
the cursor. throws: IllegalStateException - if less than two conditions were added. |
entities | public ForwardCursor<E> entities(Transaction txn, CursorConfig config) throws DatabaseException(Code) | | Opens a cursor that returns the entities qualifying for the join. The
join operation is performed as the returned cursor is accessed.
Parameters: txn - the transaction used to protect all operations performed withthe cursor, or null if the operations should not be transactionprotected. Parameters: config - the cursor configuration that determines the default lockmode used for all cursor operations, or null to implicitly use CursorConfig.DEFAULT. the cursor. throws: IllegalStateException - if less than two conditions were added. |
keys | public ForwardCursor<PK> keys() throws DatabaseException(Code) | | Opens a cursor that returns the primary keys of entities qualifying for
the join. The join operation is performed as the returned cursor is
accessed.
The operations performed with the cursor will not be transaction
protected, and
CursorConfig.DEFAULT is used implicitly.
the cursor. throws: IllegalStateException - if less than two conditions were added. |
keys | public ForwardCursor<PK> keys(Transaction txn, CursorConfig config) throws DatabaseException(Code) | | Opens a cursor that returns the primary keys of entities qualifying for
the join. The join operation is performed as the returned cursor is
accessed.
Parameters: txn - the transaction used to protect all operations performed withthe cursor, or null if the operations should not be transactionprotected. Parameters: config - the cursor configuration that determines the default lockmode used for all cursor operations, or null to implicitly use CursorConfig.DEFAULT. the cursor. throws: IllegalStateException - if less than two conditions were added. |
|
|