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 TransactionDB.beginTransaction()Start a transaction with 'REQUIRED' semantics.static TransactionDB.beginTransaction(io.ebean.annotation.TxIsolation isolation) Start a transaction additionally specifying the isolation level.static TransactionDB.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 TransactionDB.createTransaction()Create a new transaction that is not held in TransactionThreadLocal.static TransactionTransaction.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 TransactionDB.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.intDatabase.delete(Class<?> beanType, Object id, Transaction transaction) Delete the bean given its type and id with an explicit transaction.booleanDatabase.delete(Object bean, Transaction transaction) Delete the bean with an explicit transaction.intExpressionList.delete(Transaction transaction) Deprecated, for removal: This API element is subject to removal in a future version.booleanModel.delete(Transaction transaction) Delete this entity with an explicit transaction.intQuery.delete(Transaction transaction) Deprecated, for removal: This API element is subject to removal in a future version.migrate toQueryBuilder.usingTransaction(Transaction)then delete().intDatabase.deleteAll(Class<?> beanType, Collection<?> ids, Transaction transaction) Delete several beans given their type and id values with an explicit transaction.intDatabase.deleteAll(Collection<?> beans, Transaction transaction) Delete all the beans in the collection using an explicit transaction.intDatabase.deleteAllPermanent(Class<?> beanType, Collection<?> ids, Transaction transaction) Delete permanent for several beans given their type and id values with an explicit transaction.intDatabase.deleteAllPermanent(Collection<?> beans, Transaction transaction) Delete all the beans in the collection permanently without soft delete using an explicit transaction.intDatabase.deletePermanent(Class<?> beanType, Object id, Transaction transaction) Delete permanent given the bean type and id with an explicit transaction.booleanDatabase.deletePermanent(Object bean, Transaction transaction) Delete a bean permanently without soft delete using an explicit transaction.booleanModel.deletePermanent(Transaction transaction) Delete a bean permanently without soft delete using an explicit transaction.intDatabase.execute(CallableSql callableSql, Transaction transaction) Execute explicitly passing a transaction.intDatabase.execute(SqlUpdate updSql, Transaction transaction) Execute explicitly passing a transaction.intDatabase.execute(Update<?> update, Transaction transaction) Execute a ORM insert update or delete statement with an explicit transaction.<T> TDatabase.find(Class<T> beanType, Object id, Transaction transaction) Find a entity bean with an explicit transaction.voidDatabase.insert(Object bean, InsertOptions insertOptions, Transaction transaction) Insert the beans with options (ON CONFLICT DO UPDATE | DO NOTHING) and transaction.voidDatabase.insert(Object bean, Transaction transaction) Insert the bean with a transaction.voidModel.insert(Transaction transaction) Insert with an explicit transaction.voidDatabase.insertAll(Collection<?> beans, InsertOptions options, Transaction transaction) Insert the beans with options (ON CONFLICT DO UPDATE | DO NOTHING) and transaction.voidDatabase.insertAll(Collection<?> beans, Transaction transaction) Insert a collection of beans with an explicit transaction.voidDatabase.merge(Object bean, MergeOptions options, Transaction transaction) Merge the bean using the given merge options and a transaction.voidDatabase.save(Object bean, Transaction transaction) Insert or update a bean with an explicit transaction.voidModel.save(Transaction transaction) Save this entity with an explicit transaction.intDatabase.saveAll(Collection<?> beans, Transaction transaction) Save all the beans in the collection with an explicit transaction.voidDatabase.update(Object bean, Transaction transaction) Update a bean additionally specifying a transaction.intExpressionList.update(Transaction transaction) Deprecated, for removal: This API element is subject to removal in a future version.migrate toExpressionList.usingTransaction(Transaction)then update().voidModel.update(Transaction transaction) Update this entity with an explicit transaction.intQuery.update(Transaction transaction) Deprecated, for removal: This API element is subject to removal in a future version.migrate toQueryBuilder.usingTransaction(Transaction)then update().voidDatabase.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().