goldengate.common.database.data
Class AbstractDbDataWithCommit

java.lang.Object
  extended by goldengate.common.database.data.AbstractDbData
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class goldengate.common.database.data.AbstractDbData
AbstractDbData.UpdatedInfo
 
Field Summary
 
Fields inherited from class goldengate.common.database.data.AbstractDbData
allFields, dbSession, isSaved, otherFields, primaryKey
 
Constructor Summary
AbstractDbDataWithCommit(DbSession dbSession)
          Abstract constructor to set the DbSession to use
 
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
 

Constructor Detail

AbstractDbDataWithCommit

public AbstractDbDataWithCommit(DbSession dbSession)
Abstract constructor to set the DbSession to use

Parameters:
dbSession -
Method Detail

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.