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.UpdatedInfo
allFields, 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, setValues
protected AbstractDbDataWithCommit(DbSession dbSession)
dbSession
- public void insert() throws WaarpDatabaseException
insert
in class AbstractDbData
WaarpDatabaseException
public void update() throws WaarpDatabaseException
update
in class AbstractDbData
WaarpDatabaseException
public void delete() throws WaarpDatabaseException
delete
in class AbstractDbData
WaarpDatabaseException
Copyright © 2009–2020 Waarp. All rights reserved.