goldengate.common.database.data
Class AbstractDbDataWithCommit
java.lang.Object
goldengate.common.database.data.AbstractDbData
goldengate.common.database.data.AbstractDbDataWithCommit
public abstract class AbstractDbDataWithCommit
- extends AbstractDbData
Abstract database table implementation with explicit COMMIT.
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.
- Author:
- Frederic Bregier
Method Summary |
void |
delete()
Delete object from table |
void |
insert()
Insert object into table |
void |
update()
Update object to table |
Methods inherited from class goldengate.common.database.data.AbstractDbData |
changeUpdatedInfo, exist, get, getInsertAllValues, getSelectAllFields, getTable, getTrueValue, getUpdateAllFields, getValue, getValues, getWherePrimaryKey, initObject, select, setFromArray, setPrimaryKey, setToArray, setTrueValue, setValue, setValues |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDbDataWithCommit
public AbstractDbDataWithCommit(DbSession dbSession)
- Abstract constructor to set the DbSession to use
- Parameters:
dbSession
-
insert
public void insert()
throws GoldenGateDatabaseException
- Insert object into table
- Overrides:
insert
in class AbstractDbData
- Throws:
GoldenGateDatabaseException
update
public void update()
throws GoldenGateDatabaseException
- Update object to table
- Overrides:
update
in class AbstractDbData
- Throws:
GoldenGateDatabaseException
delete
public void delete()
throws GoldenGateDatabaseException
- Delete object from table
- Overrides:
delete
in class AbstractDbData
- Throws:
GoldenGateDatabaseException
Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.