Class 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 = ?
     
    • Constructor Detail

      • LocateBulkRequest

        public LocateBulkRequest​(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​(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)