Package fr.dyade.aaa.util
Class DerbyDBTransaction
- java.lang.Object
-
- fr.dyade.aaa.util.BaseTransaction
-
- fr.dyade.aaa.util.AbstractTransaction
-
- fr.dyade.aaa.util.DBTransaction
-
- fr.dyade.aaa.util.DerbyDBTransaction
-
- All Implemented Interfaces:
DBTransactionMBean,Transaction,TransactionMBean
@Deprecated public final class DerbyDBTransaction extends DBTransaction
Deprecated.The DerbyDBTransaction class implements an atomic storage through a Derby embedded database. This class is now deprecated and should be replaced by JDBCTransaction that implements a generic Transaction component on top of JDBC.- See Also:
Transaction
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class fr.dyade.aaa.util.AbstractTransaction
AbstractTransaction.Context
-
-
Field Summary
Fields Modifier and Type Field Description private StringconnurlDeprecated.private StringdriverDeprecated.-
Fields inherited from class fr.dyade.aaa.util.DBTransaction
badinserts, badupdates, conn, connectRetryCount, connectRetryMaxPeriod, connectRetryMinDelay, DB_TRANSACTION_PREFIX, dbclose, dbdelete, dbinsert, dbload, dbtable, dbupdate, DFLT_TABLE_PREFIX, JDBC_CONNECT_RETRY_COUNT_DFLT, JDBC_CONNECT_RETRY_MAX_PERIOD_DFLT, JDBC_CONNECT_RETRY_MIN_DELAY_DFLT, logThresholdOperation, nbdeletes, nbinserts, nbnoop, nbupdates, TABLE_NAME_PROP
-
Fields inherited from class fr.dyade.aaa.util.AbstractTransaction
average, dir, logmon, MONITOR, OOS_STREAM_HEADER, PERIODS, perThreadContext, phase, startTime
-
Fields inherited from class fr.dyade.aaa.util.BaseTransaction
DEBUG
-
-
Constructor Summary
Constructors Constructor Description DerbyDBTransaction()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidconnectDB()Deprecated.This method try to reconnect to the database, it is used in case of failure during commit.protected voidinitDB()Deprecated.Instantiates the database driver and creates the table if necessary-
Methods inherited from class fr.dyade.aaa.util.DBTransaction
backup, close, commit, delete, dumpProperties, dumpProperties, fname, getBadInserts, getBadUpdates, getCommitBytes, getCommitCount, getDBCloseStatement, getDBDeleteStatement, getDBInsertStatement, getDBLoadStatement, getDBTableName, getDBUpdateStatement, getFromLog, getList, getLogThresholdOperation, getNbDeletes, getNbInserts, getNbUpdates, getPersistenceDir, initRepository, loadAll, loadByteArray, saveInLog, setPhase, stop, useLoadAll
-
Methods inherited from class fr.dyade.aaa.util.AbstractTransaction
begin, containsOperations, create, create, createByteArray, createByteArray, delete, getAverageCommitTime, getOperationCount, getPhase, getPhaseInfo, getStartTime, init, isPersistent, load, load, loadByteArray, loadFromByteArray, release, save, save, save, saveByteArray, saveByteArray, saveByteArray
-
Methods inherited from class fr.dyade.aaa.util.BaseTransaction
dumpObjectList, freeze, getBoolean, getInteger, getInteger, getObject, getObjectList, getProperty, getProperty, loadProperties, saveProperties
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface fr.dyade.aaa.util.DBTransactionMBean
getAverageCommitTime, getPhase, getPhaseInfo
-
Methods inherited from interface fr.dyade.aaa.util.TransactionMBean
dumpObjectList, getObject, getObjectList, getStartTime, isPersistent
-
-
-
-
Method Detail
-
initDB
protected void initDB() throws IOExceptionDeprecated.Description copied from class:DBTransactionInstantiates the database driver and creates the table if necessary- Specified by:
initDBin classDBTransaction- Throws:
IOException- an error occurs.
-
connectDB
protected void connectDB() throws IOExceptionDeprecated.Description copied from class:DBTransactionThis method try to reconnect to the database, it is used in case of failure during commit. Be careful, unless a connection pool is used, we need to recreate the prepared statement.- Specified by:
connectDBin classDBTransaction- Throws:
IOException- The reconnection has failed.
-
-