|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.persist.db.postgresql.PostgreSQLDataUtils
public final class PostgreSQLDataUtils
This class collects code fragments which are reusable for managing data objects in Postgre SQL.
| Method Summary | |
|---|---|
static void |
insertAndFetchGeneratedValues(java.sql.PreparedStatement insertStatement,
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.PreparedStatement updateStatement,
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.PreparedStatement insertStatement,
BasicDataObject data)
throws java.sql.SQLException,
OSSException
insertStatement - - statement used to insert the datadata - - data object to insert
java.sql.SQLException - - an error has occured
OSSException - - an error has occured
public static void updateAndFetchGeneratedValues(java.sql.PreparedStatement updateStatement,
ModifiableDataObject data)
throws java.sql.SQLException,
OSSException
updateStatement - - statement used to update the datadata - - 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 | ||||||||