org.jpox.store.rdbms.request
Class FetchRequest

java.lang.Object
  extended byorg.jpox.store.rdbms.request.Request
      extended byorg.jpox.store.rdbms.request.FetchRequest

public class FetchRequest
extends Request

Class to provide a means of selection of records from a data store. Extends basic request class implementing the execute method to do a JDBC select operation.

Version:
$Revision: 1.45 $

Field Summary
 
Fields inherited from class org.jpox.store.rdbms.request.Request
key, LOCALISER, table
 
Constructor Summary
FetchRequest(DatastoreClass table, AbstractPropertyMetaData[] fieldMetaData, java.lang.Class cls, ClassLoaderResolver clr)
          Constructor, taking the table.
 
Method Summary
 void execute(StateManager sm)
          Method performing the retrieval of the record from the datastore.
 
Methods inherited from class org.jpox.store.rdbms.request.Request
executeQuery, executeUpdate, replaceParamPlaceholdersWithValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FetchRequest

public FetchRequest(DatastoreClass table,
                    AbstractPropertyMetaData[] fieldMetaData,
                    java.lang.Class cls,
                    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
fieldMetaData - MetaData of the fields to retrieve
cls - Class of objects being fetched
clr - ClassLoader resolver
Method Detail

execute

public void execute(StateManager sm)
Method performing the retrieval of the record from the datastore. Takes the constructed retrieval query and populates with the specific record information.

Specified by:
execute in class Request
Parameters:
sm - The state manager for the record to be retrieved


Copyright © -2007 . All Rights Reserved.