|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.store.rdbms.request.Request
org.jpox.store.rdbms.request.UpdateRequest
public class UpdateRequest
Class to provide a means of update of records in a data store. Extends basic request class implementing the execute method to do a JDBC update operation.
| Field Summary |
|---|
| Fields inherited from class org.jpox.store.rdbms.request.Request |
|---|
key, LOCALISER, table |
| Constructor Summary | |
|---|---|
UpdateRequest(DatastoreClass table,
AbstractPropertyMetaData[] reqFieldMetaData,
java.lang.Class cls,
ClassLoaderResolver clr)
Constructor, taking the table. |
|
| Method Summary | |
|---|---|
void |
execute(StateManager sm)
Method performing the update of the record in 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 |
|---|
public UpdateRequest(DatastoreClass table,
AbstractPropertyMetaData[] reqFieldMetaData,
java.lang.Class cls,
ClassLoaderResolver clr)
UPDATE table-name SET param1=?,param2=? WHERE param3=? AND param4=?
table - The Class Table representing the datastore table to updatereqFieldMetaData - MetaData of the fields to updatecls - Class of objects being updatedclr - ClassLoader resolver| Method Detail |
|---|
public void execute(StateManager sm)
execute in class Requestsm - The state manager for the record to be updated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||