org.datanucleus.store.rdbms.request
Class LocateBulkRequest

java.lang.Object
  extended by org.datanucleus.store.rdbms.request.BulkRequest
      extended by 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 like

 SELECT 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, LOCALISER, table
 
Constructor Summary
LocateBulkRequest(org.datanucleus.store.mapped.DatastoreClass table)
          Constructor, taking the table.
 
Method Summary
 void execute(org.datanucleus.store.ObjectProvider[] ops)
          Method performing the location of the records in the datastore.
protected  String getStatement(org.datanucleus.store.mapped.DatastoreClass table, org.datanucleus.store.ObjectProvider[] ops, boolean lock)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocateBulkRequest

public LocateBulkRequest(org.datanucleus.store.mapped.DatastoreClass table)
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 retrieve
Method Detail

getStatement

protected String getStatement(org.datanucleus.store.mapped.DatastoreClass table,
                              org.datanucleus.store.ObjectProvider[] ops,
                              boolean lock)

execute

public void execute(org.datanucleus.store.ObjectProvider[] ops)
Method performing the location of the records in the datastore.

Specified by:
execute in class BulkRequest
Parameters:
ops - ObjectProviders to be located
Throws:
org.datanucleus.exceptions.NucleusObjectNotFoundException - with nested exceptions for each of missing objects (if any)


Copyright © 2012. All Rights Reserved.