Class LocateBulkRequest
- java.lang.Object
-
- org.datanucleus.store.rdbms.request.BulkRequest
-
- org.datanucleus.store.rdbms.request.LocateBulkRequest
-
public class LocateBulkRequest extends BulkRequest
Request to locate a series of records in the data store (all present in the same table). Performs an SQL statement likeSELECT ID [,FIELD1,FIELD2] FROM CANDIDATE_TABLE WHERE ID = ? OR ID = ? OR ID = ?
-
-
Field Summary
-
Fields inherited from class org.datanucleus.store.rdbms.request.BulkRequest
key, table
-
-
Constructor Summary
Constructors Constructor Description LocateBulkRequest(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[] sms)
Method performing the location of the records in the datastore.protected String
getStatement(DatastoreClass table, org.datanucleus.state.DNStateManager[] sms, boolean lock)
-
-
-
Constructor Detail
-
LocateBulkRequest
public LocateBulkRequest(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 whose objects we are locatingclr
- ClassLoader resolver
-
-
Method Detail
-
getStatement
protected String getStatement(DatastoreClass table, org.datanucleus.state.DNStateManager[] sms, boolean lock)
-
execute
public void execute(org.datanucleus.state.DNStateManager[] sms)
Method performing the location of the records in the datastore.- Specified by:
execute
in classBulkRequest
- Parameters:
sms
- StateManagers to be located- Throws:
org.datanucleus.exceptions.NucleusObjectNotFoundException
- with nested exceptions for each of missing objects (if any)
-
-