
public abstract class AbstractDbDataWithCommit extends AbstractDbData
If the connection is in autocommit, this abstract should not be used.
If the connection is not in autocommit, one could use this implementation to
implicitly commit when needed
automatically as should do an autocommit connection.
AbstractDbData.UpdatedInfoallFields, dbSession, isSaved, JSON_MODEL, otherFields, primaryKey| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDbDataWithCommit(DbSession dbSession)
Abstract constructor to set the DbSession to use
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete object from table
|
void |
insert()
Insert object into table
|
void |
update()
Update object to table
|
asJson, changeUpdatedInfo, exist, get, getAllFields, getInsertAllValues, getJson, getSelectAllFields, getTable, getTrueValue, getUpdateAllFields, getValue, getValues, getWherePrimaryKey, initObject, select, setFromArray, setFromJson, setPrimaryKey, setToArray, setTrueValue, setValue, setValuesprotected AbstractDbDataWithCommit(DbSession dbSession)
dbSession - public void insert()
throws WaarpDatabaseException
insert in class AbstractDbDataWaarpDatabaseExceptionpublic void update()
throws WaarpDatabaseException
update in class AbstractDbDataWaarpDatabaseExceptionpublic void delete()
throws WaarpDatabaseException
delete in class AbstractDbDataWaarpDatabaseExceptionCopyright © 2009–2020 Waarp. All rights reserved.