Uses of Interface
io.ebeaninternal.api.SpiTransaction
Packages that use SpiTransaction
Package
Description
Core implementation objects
Bean description
Persistence Implementation
Transaction implementation
-
Uses of SpiTransaction in io.ebeaninternal.api
Classes in io.ebeaninternal.api that implement SpiTransactionModifier and TypeClassDescriptionfinal classManage scoped (typically thread local) transactions.classProxy for an underlying SpiTransaction (most of the API).Fields in io.ebeaninternal.api declared as SpiTransactionMethods in io.ebeaninternal.api that return SpiTransactionModifier and TypeMethodDescriptionSpiTransactionManager.active()Return the currently active transaction (can be null).SpiEbeanServer.beginServerTransaction()Begin a managed transaction (Uses scope manager / ThreadLocal).SpiEbeanServer.createReadOnlyTransaction(Object tenantId, boolean useMaster) Create a ServerTransaction for query purposes.ScopedTransaction.current()Return the current transaction.SpiEbeanServer.currentServerTransaction()Return the current transaction or null if there is no current transaction.SpiQuery.transaction()Return the transaction explicitly assigned or null.SpiSqlBinding.transaction()Return the transaction explicitly associated to the query.Methods in io.ebeaninternal.api with parameters of type SpiTransactionModifier and TypeMethodDescriptionvoidSpiEbeanServer.addBatch(SpiSqlUpdate defaultSqlUpdate, SpiTransaction transaction) Add to JDBC batch for later execution.int[]SpiEbeanServer.executeBatch(SpiSqlUpdate defaultSqlUpdate, SpiTransaction transaction) Execute the batched statement.SpiTransactionManager.externalBeginTransaction(SpiTransaction transaction, TxScope txScope) Push an externally managed transaction into scope (e.g.voidSpiTransactionManager.notifyOfCommit(SpiTransaction transaction) Notify of a transaction commit.voidSpiTransactionManager.notifyOfQueryOnly(SpiTransaction transaction) Notify of a query only transaction commit.voidSpiTransactionManager.notifyOfRollback(SpiTransaction transaction, Throwable cause) Notify of a transaction rollback.voidSpiTransactionScopeManager.replace(SpiTransaction t) Constructors in io.ebeaninternal.api with parameters of type SpiTransactionModifierConstructorDescriptionScopeTrans(boolean rollbackOnChecked, boolean created, SpiTransaction transaction, TxScope txScope) -
Uses of SpiTransaction in io.ebeaninternal.server.core
Fields in io.ebeaninternal.server.core declared as SpiTransactionModifier and TypeFieldDescriptionprotected SpiTransactionAbstractSqlQueryRequest.transactionprotected SpiTransactionBeanRequest.transactionMethods in io.ebeaninternal.server.core that return SpiTransactionModifier and TypeMethodDescriptionDefaultServer.beginServerTransaction()DefaultServer.createReadOnlyTransaction(Object tenantId, boolean useMaster) DefaultServer.currentServerTransaction()BeanRequest.transaction()Return the Transaction associated with this request.Methods in io.ebeaninternal.server.core with parameters of type SpiTransactionModifier and TypeMethodDescriptionvoidDefaultServer.addBatch(SpiSqlUpdate sqlUpdate, SpiTransaction transaction) voidPersister.addBatch(SpiSqlUpdate sqlUpdate, SpiTransaction transaction) Add the statement to JDBC batch for later execution via executeBatch.voidPersister.addToFlushQueue(SpiSqlUpdate update, SpiTransaction t, int pos) Queue the SqlUpdate for execution with position 0, 1 or 2 defining when it executes relative to the flush of beans .voidPersistDeferredRelationship.execute(SpiTransaction transaction) Build and execute a SqlUpdate to set the importId value (as it will be available now).int[]DefaultServer.executeBatch(SpiSqlUpdate sqlUpdate, SpiTransaction transaction) int[]Persister.executeBatch(SpiSqlUpdate sqlUpdate, SpiTransaction transaction) Execute the associated batched statement.voidPersister.executeOrQueue(SpiSqlUpdate update, SpiTransaction t, boolean queue, int queuePosition) Execute or queue the update.intPersister.merge(BeanDescriptor<?> desc, EntityBean entityBean, MergeOptions options, SpiTransaction transaction) Merge the bean.voidPersistRequestBean.setTrans(SpiTransaction transaction) Set the transaction from prior persist request.voidBeanRequest.transaction(SpiTransaction transaction) Set the transaction to use for this request.Constructors in io.ebeaninternal.server.core with parameters of type SpiTransactionModifierConstructorDescriptionBeanRequest(SpiEbeanServer server, SpiTransaction transaction) OrmQueryRequest(SpiEbeanServer server, OrmQueryEngine queryEngine, SpiQuery<T> query, SpiTransaction t) PersistRequestBean(SpiEbeanServer server, T bean, Object parentBean, BeanManager<T> mgr, SpiTransaction t, PersistExecute persistExecute, PersistRequest.Type type, int flags) PersistRequestCallableSql(SpiEbeanServer server, CallableSql cs, SpiTransaction t, PersistExecute persistExecute) Create.PersistRequestOrmUpdate(SpiEbeanServer server, BeanManager<?> mgr, SpiUpdate<?> ormUpdate, SpiTransaction t, PersistExecute persistExecute) PersistRequestUpdateSql(SpiEbeanServer server, SpiSqlUpdate sqlUpdate, SpiTransaction t, PersistExecute persistExecute) PersistRequestUpdateSql(SpiEbeanServer server, SpiSqlUpdate sqlUpdate, SpiTransaction t, PersistExecute persistExecute, boolean forceNoBatch) -
Uses of SpiTransaction in io.ebeaninternal.server.deploy
Methods in io.ebeaninternal.server.deploy with parameters of type SpiTransactionModifier and TypeMethodDescriptionvoidBeanDescriptor.cacheUpdateQuery(boolean update, SpiTransaction transaction) Check if bulk update or delete query has a cache impact. -
Uses of SpiTransaction in io.ebeaninternal.server.persist
Methods in io.ebeaninternal.server.persist with parameters of type SpiTransactionModifier and TypeMethodDescriptionvoidDefaultPersister.addBatch(SpiSqlUpdate sqlUpdate, SpiTransaction transaction) voidDefaultPersister.addToFlushQueue(SpiSqlUpdate update, SpiTransaction t, int pos) Add to the flush queue in position 0, 1 or 2.PersistExecute.createBatchControl(SpiTransaction t) Create a BatchControl for the current transaction.int[]DefaultPersister.executeBatch(SpiSqlUpdate sqlUpdate, SpiTransaction transaction) voidDefaultPersister.executeOrQueue(SpiSqlUpdate update, SpiTransaction t, boolean queue, int queuePosition) intDefaultPersister.merge(BeanDescriptor<?> desc, EntityBean bean, MergeOptions options, SpiTransaction transaction) Constructors in io.ebeaninternal.server.persist with parameters of type SpiTransactionModifierConstructorDescriptionBatchControl(SpiTransaction t, int batchSize, boolean getGenKeys) Create for a given transaction, PersistExecute, default size and getGeneratedKeys.BatchedPstmt(PreparedStatement pstmt, boolean isGenKeys, String sql, SpiTransaction transaction) Create with a given statement. -
Uses of SpiTransaction in io.ebeaninternal.server.query
Methods in io.ebeaninternal.server.query that return SpiTransaction -
Uses of SpiTransaction in io.ebeaninternal.server.querydefn
Methods in io.ebeaninternal.server.querydefn that return SpiTransactionModifier and TypeMethodDescriptionDefaultDtoQuery.transaction()DefaultOrmQuery.transaction()DefaultRelationalQuery.transaction() -
Uses of SpiTransaction in io.ebeaninternal.server.transaction
Classes in io.ebeaninternal.server.transaction that implement SpiTransactionModifier and TypeClassDescriptionclassTransaction based on a java.sql.Connection supplied by an external transaction manager such as Spring.final classJta based transaction.Methods in io.ebeaninternal.server.transaction that return SpiTransactionModifier and TypeMethodDescriptionDefaultTransactionScopeManager.active()ExternalTransactionScopeManager.active()final SpiTransactionTransactionManager.active()Return the current active transaction.abstract SpiTransactionTransactionScopeManager.active()Return the current Transaction potentially looking in external scope (like Spring).final SpiTransactionTransactionManager.beginServerTransaction()Begin an implicit transaction.TransactionManager.createReadOnlyTransaction(Object tenantId, boolean useMaster) Create a new Transaction for query only purposes (can use read only datasource).TransactionManager.createTransaction(boolean explicit, int isolationLevel) Create a new Transaction.final SpiTransactionDefaultTransactionScopeManager.inScope()final SpiTransactionTransactionManager.inScope()Return the current transaction from thread local scope.abstract SpiTransactionTransactionScopeManager.inScope()Return the current Transaction from internal Ebean scope.TransactionManager.wrapExternalConnection(Connection c) Wrap the externally supplied Connection.Methods in io.ebeaninternal.server.transaction with parameters of type SpiTransactionModifier and TypeMethodDescriptionfinal ScopedTransactionTransactionManager.externalBeginTransaction(SpiTransaction transaction, TxScope txScope) Push an externally created transaction into scope.final voidTransactionManager.flushTransparent(SpiPersistenceContext persistenceContext, SpiTransaction transaction) Experimental - find dirty beans in the persistence context and persist them.final voidTransactionManager.notifyOfCommit(SpiTransaction transaction) Process a local committed transaction.final voidTransactionManager.notifyOfQueryOnly(SpiTransaction transaction) Query only transaction in read committed isolation.final voidTransactionManager.notifyOfRollback(SpiTransaction transaction, Throwable cause) Process a local rolled back transaction.final voidDefaultTransactionScopeManager.replace(SpiTransaction trans) abstract voidTransactionScopeManager.replace(SpiTransaction trans) Replace the current transaction with this one.final voidDefaultTransactionScopeManager.set(SpiTransaction trans) final voidTransactionManager.set(SpiTransaction txn) Set the transaction onto the scope.abstract voidTransactionScopeManager.set(SpiTransaction trans) Set a new Transaction for this serverName and Thread.Constructors in io.ebeaninternal.server.transaction with parameters of type SpiTransactionModifierConstructorDescriptionTChangeLogHolder(SpiTransaction owner, int batchSize) Construct with the owning transaction and batch size to use.