Class Request

  • Direct Known Subclasses:
    DeleteRequest, FetchRequest, InsertRequest, LocateRequest, UpdateRequest

    public abstract class Request
    extends java.lang.Object
    Base class representing a request to perform an action on the datastore. All requests have 2 methods - constructor and execute. They build an SQL statement, and execute it.
    • Constructor Summary

      Constructors 
      Constructor Description
      Request​(DatastoreClass table)
      Constructor, taking the table to use for the request.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract void execute​(org.datanucleus.state.DNStateManager sm)
      Method to execute the request - to be implemented by deriving classes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Request

        public Request​(DatastoreClass table)
        Constructor, taking the table to use for the request.
        Parameters:
        table - The Table to use for the request.
    • Method Detail

      • execute

        public abstract void execute​(org.datanucleus.state.DNStateManager sm)
        Method to execute the request - to be implemented by deriving classes.
        Parameters:
        sm - StateManager for the object in question.