Uses of Interface
io.ebean.Transaction
Packages that use Transaction
Package
Description
Database platform specific support
Persist and Query Event Controllers and Listeners
-
Uses of Transaction in io.ebean
Methods in io.ebean that return TransactionModifier and TypeMethodDescriptionDatabase.beginTransaction()
Start a transaction with 'REQUIRED' semantics.Database.beginTransaction
(io.ebean.annotation.TxIsolation isolation) Start a transaction additionally specifying the isolation level.Database.beginTransaction
(TxScope scope) Start a transaction typically specifying REQUIRES_NEW or REQUIRED semantics.static Transaction
DB.beginTransaction()
Start a transaction with 'REQUIRED' semantics.static Transaction
DB.beginTransaction
(io.ebean.annotation.TxIsolation isolation) Start a transaction additionally specifying the isolation level.static Transaction
DB.beginTransaction
(TxScope scope) Start a transaction typically specifying REQUIRES_NEW or REQUIRED semantics.Database.createTransaction()
Create a new transaction that is not held in TransactionThreadLocal.Database.createTransaction
(io.ebean.annotation.TxIsolation isolation) Create a new transaction additionally specifying the isolation level.static Transaction
DB.createTransaction()
Create a new transaction that is not held in TransactionThreadLocal.static Transaction
Transaction.current()
Return the current transaction (of the default database) or null if there is no current transaction in scope.BeanFinder.currentTransaction()
Return the current transaction.Database.currentTransaction()
Returns the current transaction or null if there is no current transaction in scope.static Transaction
DB.currentTransaction()
Returns the current transaction or null if there is no current transaction in scope.Finder.currentTransaction()
Return the current transaction.Methods in io.ebean with parameters of type TransactionModifier and TypeMethodDescriptionDatabase.checkUniqueness
(Object bean, Transaction transaction) Same asDatabase.checkUniqueness(Object)
.DB.checkUniqueness
(Object bean, Transaction transaction) Same asDB.checkUniqueness(Object)
but with given transaction.int
Database.delete
(Class<?> beanType, Object id, Transaction transaction) Delete the bean given its type and id with an explicit transaction.boolean
Database.delete
(Object bean, Transaction transaction) Delete the bean with an explicit transaction.int
ExpressionList.delete
(Transaction transaction) Deprecated, for removal: This API element is subject to removal in a future version.boolean
Model.delete
(Transaction transaction) Delete this entity with an explicit transaction.int
Query.delete
(Transaction transaction) Deprecated, for removal: This API element is subject to removal in a future version.migrate toQueryBuilder.usingTransaction(Transaction)
then delete().int
Database.deleteAll
(Class<?> beanType, Collection<?> ids, Transaction transaction) Delete several beans given their type and id values with an explicit transaction.int
Database.deleteAll
(Collection<?> beans, Transaction transaction) Delete all the beans in the collection using an explicit transaction.int
Database.deleteAllPermanent
(Class<?> beanType, Collection<?> ids, Transaction transaction) Delete permanent for several beans given their type and id values with an explicit transaction.int
Database.deleteAllPermanent
(Collection<?> beans, Transaction transaction) Delete all the beans in the collection permanently without soft delete using an explicit transaction.int
Database.deletePermanent
(Class<?> beanType, Object id, Transaction transaction) Delete permanent given the bean type and id with an explicit transaction.boolean
Database.deletePermanent
(Object bean, Transaction transaction) Delete a bean permanently without soft delete using an explicit transaction.boolean
Model.deletePermanent
(Transaction transaction) Delete a bean permanently without soft delete using an explicit transaction.int
Database.execute
(CallableSql callableSql, Transaction transaction) Execute explicitly passing a transaction.int
Database.execute
(SqlUpdate updSql, Transaction transaction) Execute explicitly passing a transaction.int
Database.execute
(Update<?> update, Transaction transaction) Execute a ORM insert update or delete statement with an explicit transaction.<T> T
Database.find
(Class<T> beanType, Object id, Transaction transaction) Find a entity bean with an explicit transaction.void
Database.insert
(Object bean, InsertOptions insertOptions, Transaction transaction) Insert the beans with options (ON CONFLICT DO UPDATE | DO NOTHING) and transaction.void
Database.insert
(Object bean, Transaction transaction) Insert the bean with a transaction.void
Model.insert
(Transaction transaction) Insert with an explicit transaction.void
Database.insertAll
(Collection<?> beans, InsertOptions options, Transaction transaction) Insert the beans with options (ON CONFLICT DO UPDATE | DO NOTHING) and transaction.void
Database.insertAll
(Collection<?> beans, Transaction transaction) Insert a collection of beans with an explicit transaction.void
Database.merge
(Object bean, MergeOptions options, Transaction transaction) Merge the bean using the given merge options and a transaction.void
Database.save
(Object bean, Transaction transaction) Insert or update a bean with an explicit transaction.void
Model.save
(Transaction transaction) Save this entity with an explicit transaction.int
Database.saveAll
(Collection<?> beans, Transaction transaction) Save all the beans in the collection with an explicit transaction.void
Database.update
(Object bean, Transaction transaction) Update a bean additionally specifying a transaction.int
ExpressionList.update
(Transaction transaction) Deprecated, for removal: This API element is subject to removal in a future version.migrate toExpressionList.usingTransaction(Transaction)
then update().void
Model.update
(Transaction transaction) Update this entity with an explicit transaction.int
Query.update
(Transaction transaction) Deprecated, for removal: This API element is subject to removal in a future version.migrate toQueryBuilder.usingTransaction(Transaction)
then update().void
Database.updateAll
(Collection<?> beans, Transaction transaction) Update a collection of beans with an explicit transaction.DtoQuery.usingTransaction
(Transaction transaction) Use the explicit transaction to execute the query.ExpressionList.usingTransaction
(Transaction transaction) Execute the query using the given transaction.QueryBuilder.usingTransaction
(Transaction transaction) Execute the query using the given transaction.SqlQuery.TypeQuery.usingTransaction
(Transaction transaction) Execute the query using the given transaction.SqlQuery.usingTransaction
(Transaction transaction) Execute the query using the given transaction. -
Uses of Transaction in io.ebean.config.dbplatform
Methods in io.ebean.config.dbplatform with parameters of type TransactionModifier and TypeMethodDescriptionPlatformIdGenerator.nextId
(Transaction transaction) return the next unique identity value.SequenceIdGenerator.nextId
(Transaction t) Return the next Id.SimpleSequenceIdGenerator.nextId
(Transaction t) -
Uses of Transaction in io.ebean.event
Methods in io.ebean.event that return TransactionModifier and TypeMethodDescriptionBeanDeleteIdRequest.transaction()
Return the Transaction associated with this request.BeanPersistRequest.transaction()
Return the Transaction associated with this request.BeanQueryRequest.transaction()
Return the Transaction associated with this request.
ExpressionList.usingTransaction(Transaction)
then delete().