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 like
 SELECT ID [,FIELD1,FIELD2] FROM CANDIDATE_TABLE WHERE ID = ? OR ID = ? OR ID = ?
 
  • Field Details

    • cmd

      org.datanucleus.metadata.AbstractClassMetaData cmd
    • clr

      org.datanucleus.ClassLoaderResolver clr
    • mappingDefinitions

      private StatementClassMapping[] mappingDefinitions
      Definition of input mappings in the SQL statement.
    • resultMapping

      private StatementClassMapping resultMapping
      Result mapping for the SQL statement.
  • Constructor Details

    • 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 retrieve
      cmd - Metadata for the class whose objects we are locating
      clr - ClassLoader resolver
  • Method Details

    • 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 class BulkRequest
      Parameters:
      sms - StateManagers to be located
      Throws:
      org.datanucleus.exceptions.NucleusObjectNotFoundException - with nested exceptions for each of missing objects (if any)
    • processResults

      private org.datanucleus.state.DNStateManager[] processResults(ResultSet rs, org.datanucleus.state.DNStateManager[] sms) throws SQLException
      Throws:
      SQLException