Uses of Interface
org.apache.cayenne.tx.Transaction
Packages that use Transaction
-
Uses of Transaction in org.apache.cayenne.tx
Classes in org.apache.cayenne.tx that implement TransactionModifier and TypeClassDescriptionclassA Cayenne transaction.classRepresents a Cayenne-managed local Transaction.classRepresents a container-managed transaction.Methods in org.apache.cayenne.tx that return TransactionModifier and TypeMethodDescriptionDefaultTransactionFactory.createTransaction()DefaultTransactionFactory.createTransaction(TransactionDescriptor descriptor) TransactionFactory.createTransaction()TransactionFactory.createTransaction(TransactionDescriptor descriptor) static TransactionBaseTransaction.getThreadTransaction()Returns a Transaction associated with the current thread, or null if there is no such Transaction.Methods in org.apache.cayenne.tx with parameters of type TransactionModifier and TypeMethodDescriptionstatic voidBaseTransaction.bindThreadTransaction(Transaction transaction) Binds a Transaction to the current thread.default ConnectionTransactionListener.decorateConnection(Transaction tx, Connection connection) This method could be used to decorate or substitute new connection initiated inside a Cayenne transaction.protected <T> TDefaultTransactionManager.BaseTransactionHandler.performInTransaction(Transaction tx, TransactionalOperation<T> op, TransactionListener callback) voidTransactionListener.willAddConnection(Transaction tx, String connectionName, Connection connection) voidTransactionListener.willCommit(Transaction tx) voidTransactionListener.willRollback(Transaction tx)