Class LocateRequest
- java.lang.Object
-
- org.datanucleus.store.rdbms.request.Request
-
- org.datanucleus.store.rdbms.request.LocateRequest
-
public class LocateRequest extends Request
Request to locate a record in the data store. Performs an SQL statement likeSELECT 1 FROM CANDIDATE_TABLE WHERE ID = ?
and checks if the ResultSet is empty
-
-
Constructor Summary
Constructors Constructor Description LocateRequest(DatastoreClass table, org.datanucleus.metadata.AbstractClassMetaData cmd, org.datanucleus.ClassLoaderResolver clr)
Constructor, taking the table.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(org.datanucleus.state.DNStateManager sm)
Method performing the retrieval of the record from the datastore.
-
-
-
Constructor Detail
-
LocateRequest
public LocateRequest(DatastoreClass table, org.datanucleus.metadata.AbstractClassMetaData cmd, org.datanucleus.ClassLoaderResolver clr)
Constructor, taking the table. Uses the structure of the datastore table to build a basic query.- Parameters:
table
- The Class Table representing the datastore table to retrievecmd
- Metadata for the class we are locating an instance ofclr
- ClassLoader resolver
-
-