org.datanucleus.store.rdbms.request
Class FetchRequest
java.lang.Object
org.datanucleus.store.rdbms.request.Request
org.datanucleus.store.rdbms.request.FetchRequest
Deprecated. Use FetchRequest2 wherever possible
public class FetchRequest
- extends Request
Class to retrieve a series of fields for an object of a class from the datastore.
All fields are retrieved in a single SELECT, selecting a candidate table (the most derived table
for which a field is required), and INNER JOINs to all superclass tables that are also required.
Any surrogate version stored in this table will be fetched *if* the object being updated doesnt
already have a value for it. If the caller wants the surrogate version to be updated then
they should nullify the "transactional" version before calling.
|
Constructor Summary |
FetchRequest(org.datanucleus.store.mapped.DatastoreClass classTable,
org.datanucleus.metadata.AbstractMemberMetaData[] fieldMetaData,
java.lang.Class cls,
org.datanucleus.ClassLoaderResolver clr)
Deprecated. Constructor, taking the table. |
|
Method Summary |
void |
execute(org.datanucleus.StateManager sm)
Deprecated. Method performing the retrieval of the record from the datastore. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FetchRequest
public FetchRequest(org.datanucleus.store.mapped.DatastoreClass classTable,
org.datanucleus.metadata.AbstractMemberMetaData[] fieldMetaData,
java.lang.Class cls,
org.datanucleus.ClassLoaderResolver clr)
- Deprecated.
- Constructor, taking the table. Uses the structure of the datastore table to build a basic query.
- Parameters:
classTable - The Class Table representing the datastore table to retrievefieldMetaData - MetaData of the fields to retrievecls - Class of objects being fetchedclr - ClassLoader resolver
execute
public void execute(org.datanucleus.StateManager sm)
- Deprecated.
- Method performing the retrieval of the record from the datastore.
Takes the constructed retrieval query and populates with the specific record information.
- Specified by:
execute in class Request
- Parameters:
sm - The state manager for the record to be retrieved
Copyright © 2009. All Rights Reserved.