org.datanucleus.store.rdbms.request
Class Request

java.lang.Object
  extended by org.datanucleus.store.rdbms.request.Request
Direct Known Subclasses:
DeleteRequest, FetchRequest, FetchRequest2, InsertRequest, LocateRequest, LocateRequest2, 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.


Field Summary
protected  PrimaryKey key
           
protected static org.datanucleus.util.Localiser LOCALISER
          Localisation of messages.
protected  org.datanucleus.store.mapped.DatastoreClass table
           
 
Constructor Summary
Request(org.datanucleus.store.mapped.DatastoreClass table)
          Constructor, taking the table to use for the request.
 
Method Summary
abstract  void execute(org.datanucleus.StateManager 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
 

Field Detail

LOCALISER

protected static final org.datanucleus.util.Localiser LOCALISER
Localisation of messages.


table

protected org.datanucleus.store.mapped.DatastoreClass table

key

protected PrimaryKey key
Constructor Detail

Request

public Request(org.datanucleus.store.mapped.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.StateManager sm)
Method to execute the request - to be implemented by deriving classes.

Parameters:
sm - The StateManager for the object in question.


Copyright © 2009. All Rights Reserved.