|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.persist.db.maxdb.MaxDBDataUtils
public final class MaxDBDataUtils
This class collects code fragments which are reusable for managing data objects in MaxDB. Since MaxDB is rebranded SAP DB database, at this time it can reuse majority of the SAP DB functionality.
| Method Summary | |
|---|---|
static void |
insertAndFetchGeneratedValues(java.sql.CallableStatement insertStatement,
int iIndex,
BasicDataObject data)
Insert the data, fetch from the database id and generated creation and modification timestamps for the newly created data object. |
static void |
updateAndFetchGeneratedValues(java.sql.CallableStatement updateStatement,
int iIndex,
ModifiableDataObject data)
Update the data, fetch from the database id and generated modification timestamps for the newly created data object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void insertAndFetchGeneratedValues(java.sql.CallableStatement insertStatement,
int iIndex,
BasicDataObject data)
throws java.sql.SQLException,
OSSException
insertStatement - - statement used to insert the dataiIndex - - index of the ID OUT parameter of the stored proceduredata - - data object to insert
java.sql.SQLException - - an error has occured
OSSException - - an error has occured
public static void updateAndFetchGeneratedValues(java.sql.CallableStatement updateStatement,
int iIndex,
ModifiableDataObject data)
throws java.sql.SQLException,
OSSException
updateStatement - - statement used to update the dataiIndex - - index of the MODIFIED_TIMESTAMP OUT parameter of the
stored proceduredata - - data object to update
java.sql.SQLException - - an error has occured
OSSException - - an error has occured
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||