Holger's
Java API

Uses of Interface
com.antelmann.db.DBTransaction

Packages that use DBTransaction
com.antelmann.db This package contains generally useful classes for generic database management. 
com.antelmann.image This package contains classes for more easily dealing with images. 
com.antelmann.io This package contains classes that are concerned with input/output operations. 
com.antelmann.sql This package contains classes to ease JDBC development and also provides useful SQL-based implementations for com.antelmann.db classes 
 

Uses of DBTransaction in com.antelmann.db
 

Classes in com.antelmann.db that implement DBTransaction
 class AbstractDBTransaction
          a simple base implementation for a DBTransaction.
 

Methods in com.antelmann.db that return DBTransaction
 DBTransaction TransactionCounter.getTransaction()
           
 DBTransaction TransactionalNumberGenerator.getTransaction()
           
 DBTransaction Database.getTransaction()
          provides access to the DBTransaction, which coordinates all access to the Resources via DBClassStore.
 

Methods in com.antelmann.db with parameters of type DBTransaction
static boolean DBUtils.abort(DBTransaction t)
          aborts an ongoing transaction if it is active, or simply returns false.
static
<T> T
DBUtils.commitCall(Callable<T> call, DBTransaction tx)
          commits the given task synchronized to the transaction and aborts the transaction in case of an exception
static void DBUtils.commitTask(Task<?> task, DBTransaction tx)
          commits the given task synchronized to the transaction and aborts the transaction in case of an exception
static void DBUtils.ensureActive(DBTransaction tx)
          ensures that the current thread holds a lock on the given transaction and that this transaction is also active
 void TransactionListener.finishTransaction(DBTransaction transaction)
          called before the transaction commits (and before TransactionListener.prepareToCommit(DBTransaction)), so that the commit at the database level can be prevented by throwing a DatabaseException here.
 void TransactionListener.Adapter.finishTransaction(DBTransaction transaction)
           
 void LoggerTransactionListener.finishTransaction(DBTransaction transaction)
           
 void DBTransactionStoreAdapter.finishTransaction(DBTransaction transaction)
           
 void DBClassStoreCache.finishTransaction(DBTransaction transaction)
           
static TransactionCounter TransactionCounter.getTransactionCounter(DBTransaction ta)
          returns a TransactionCounter associated and listening to the given DBTransaction.
 void TransactionListener.prepareToCommit(DBTransaction transaction)
          called right before the transaction actually commits and after TransactionListener.finishTransaction(DBTransaction).
 void TransactionListener.Adapter.prepareToCommit(DBTransaction transaction)
           
 void LoggerTransactionListener.prepareToCommit(DBTransaction transaction)
           
 void DBTransactionStoreAdapter.prepareToCommit(DBTransaction transaction)
           
 void DBClassStoreCache.prepareToCommit(DBTransaction transaction)
           
static
<T> T
DBUtils.runInTransaction(Callable<T> call, DBTransaction t, boolean useCommitNotAbort)
          the given task is guaranteed to run in an active transaction, where this method only begins a transaction, if the given transaction is not active, yet.
static void DBUtils.runInTransaction(Task<? extends Exception> task, DBTransaction t, boolean useCommitNotAbort)
          the given task is guaranteed to run in an active transaction, where this method only begins a transaction, if the given transaction is not active, yet.
 void UserTransactionListener.transactionAborted(DBTransaction transaction)
           
 void TransactionListener.transactionAborted(DBTransaction transaction)
          called after a database transaction was aborted; the transaction is already inactive.
 void TransactionListener.Adapter.transactionAborted(DBTransaction transaction)
           
 void LoggerTransactionListener.transactionAborted(DBTransaction transaction)
           
 void DBTransactionStoreAdapter.transactionAborted(DBTransaction transaction)
           
 void DBClassStoreCache.transactionAborted(DBTransaction transaction)
           
 void UserTransactionListener.transactionBegin(DBTransaction transaction)
           
 void TransactionListener.transactionBegin(DBTransaction transaction)
          called upon beginning a transaction (the transaction is already active)
 void TransactionListener.Adapter.transactionBegin(DBTransaction transaction)
           
 void TransactionCounter.transactionBegin(DBTransaction transaction)
          increments the counter by one if the given transaction is the same as the embedded one
 void LoggerTransactionListener.transactionBegin(DBTransaction transaction)
           
 void DBTransactionStoreAdapter.transactionBegin(DBTransaction transaction)
           
 void DBClassStoreCache.transactionBegin(DBTransaction transaction)
           
 void UserTransactionListener.transactionCommitted(DBTransaction transaction)
           
 void TransactionListener.transactionCommitted(DBTransaction transaction)
          called after a successful database commit; the transaction is already inactive.
 void TransactionListener.Adapter.transactionCommitted(DBTransaction transaction)
           
 void LoggerTransactionListener.transactionCommitted(DBTransaction transaction)
           
 void DBTransactionStoreAdapter.transactionCommitted(DBTransaction transaction)
           
 void DBClassStoreCache.transactionCommitted(DBTransaction transaction)
           
static
<T> T
DBUtils.wrapTransactional(DBTransaction tx, T instance, Class<T> transactionalInterface)
          wraps a given instance into a proxy that calls all methods of the provided interface in a proper transactional context.
static
<T> Callable<T>
DBUtils.wrapWithUser(Callable<T> call, DBTransaction t, User user)
          allows to wrap the given call so that it runs in the context of the given user as the current user for the database
static
<E extends Exception>
Task<E>
DBUtils.wrapWithUser(Task<E> task, DBTransaction t, User user)
          allows to wrap the given task so that it runs in the context of the given user as the current user for the database
 

Constructors in com.antelmann.db with parameters of type DBTransaction
TransactionalNumberGenerator(ValueRetriever<Long> numberGenerator, DBTransaction tx)
           
TransactionCounter(DBTransaction ta)
          After calling the constructor, this instance must still be added as a listener to the given transaction before the counter works.
 

Uses of DBTransaction in com.antelmann.image
 

Methods in com.antelmann.image with parameters of type DBTransaction
static ValueRetriever<Image> ImageHolder.createRetriever(ValueRetriever<Connection> conRetriever, String table, String keyColumn, Object keyValue, String dataColumn, DBTransaction tx)
           
 

Uses of DBTransaction in com.antelmann.io
 

Methods in com.antelmann.io with parameters of type DBTransaction
static ValueRetriever<InputStream> BinaryData.createRetriever(ValueRetriever<Connection> conRetriever, String table, String keyColumn, Object keyValue, String dataColumn, DBTransaction tx)
          allows to easily retrieve binary data from a specific database entry
 

Constructors in com.antelmann.io with parameters of type DBTransaction
BinaryData(Connection con, String table, String keyColumn, Object keyValue, String dataColumn, DBTransaction tx)
           
BinaryData(ValueRetriever<Connection> conRetriever, String table, String keyColumn, Object keyValue, String dataColumn, DBTransaction tx)
           
 

Uses of DBTransaction in com.antelmann.sql
 

Classes in com.antelmann.sql that implement DBTransaction
 class SQLTransaction
          implements a DBTransaction based on JDBC access.
 

Methods in com.antelmann.sql that return DBTransaction
protected  DBTransaction SQLDatabase.createTransaction()
          called by the constructor
 DBTransaction SQLDatabase.getTransaction()
           
 

Methods in com.antelmann.sql with parameters of type DBTransaction
 TransactionalNumberGenerator SQLNumberGenerator.createTransactionalNumberGenerator(String item, String interval, DBTransaction tx)
           
 



(c) Holger Antelmann since 2001- all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads