public interface StreamingTransactionCapable
Modifier and Type | Method and Description |
---|---|
int |
getPageSize()
The result set size per page of data when streaming.
|
int |
getRetryMax() |
org.springframework.transaction.PlatformTransactionManager |
getTransactionManager() |
void |
runOptionalEntityManagerInViewOperation(Runnable runnable)
Executes the Runnable operation in the scope of an Entity-Manager-In-View pattern, if there is not already an
EntityManager on the thread.
|
<G extends Throwable> |
runOptionalTransactionalOperation(StreamCapableTransactionalOperation operation,
Class<G> exceptionType,
boolean useTransaction)
Run an operation inside of a single transaction.
|
<G extends Throwable> |
runOptionalTransactionalOperation(StreamCapableTransactionalOperation operation,
Class<G> exceptionType,
boolean useTransaction,
int transactionBehavior,
int isolationLevel) |
<G extends Throwable> |
runOptionalTransactionalOperation(StreamCapableTransactionalOperation operation,
Class<G> exceptionType,
boolean useTransaction,
int transactionBehavior,
int isolationLevel,
boolean readOnly,
org.springframework.transaction.PlatformTransactionManager transactionManager) |
<G extends Throwable> |
runStreamingTransactionalOperation(StreamCapableTransactionalOperation streamOperation,
Class<G> exceptionType)
Run a streaming operation inside a transaction.
|
<G extends Throwable> |
runStreamingTransactionalOperation(StreamCapableTransactionalOperation streamOperation,
Class<G> exceptionType,
int transactionBehavior,
int isolationLevel) |
<G extends Throwable> |
runTransactionalOperation(StreamCapableTransactionalOperation operation,
Class<G> exceptionType)
Run an operation inside of a single transaction.
|
<G extends Throwable> |
runTransactionalOperation(StreamCapableTransactionalOperation operation,
Class<G> exceptionType,
int transactionBehavior,
int isolationLevel) |
<G extends Throwable> |
runTransactionalOperation(StreamCapableTransactionalOperation operation,
Class<G> exceptionType,
org.springframework.transaction.PlatformTransactionManager transactionManager) |
void |
setPageSize(int pageSize) |
void |
setRetryMax(int retryMax) |
void |
setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) |
int getPageSize()
runStreamingTransactionalOperation(StreamCapableTransactionalOperation, Class)
.void setPageSize(int pageSize)
int getRetryMax()
void setRetryMax(int retryMax)
<G extends Throwable> void runStreamingTransactionalOperation(StreamCapableTransactionalOperation streamOperation, Class<G> exceptionType) throws G extends Throwable
StreamCapableTransactionalOperation
API to determine
the page of data to work on within the transaction scope.G
- streamOperation
- exceptionType
- G
G extends Throwable
<G extends Throwable> void runTransactionalOperation(StreamCapableTransactionalOperation operation, Class<G> exceptionType, org.springframework.transaction.PlatformTransactionManager transactionManager) throws G extends Throwable
G extends Throwable
<G extends Throwable> void runStreamingTransactionalOperation(StreamCapableTransactionalOperation streamOperation, Class<G> exceptionType, int transactionBehavior, int isolationLevel) throws G extends Throwable
G extends Throwable
<G extends Throwable> void runTransactionalOperation(StreamCapableTransactionalOperation operation, Class<G> exceptionType) throws G extends Throwable
TransactionalOperation.execute()
.G
- operation
- exceptionType
- G
G extends Throwable
<G extends Throwable> void runTransactionalOperation(StreamCapableTransactionalOperation operation, Class<G> exceptionType, int transactionBehavior, int isolationLevel) throws G extends Throwable
G extends Throwable
<G extends Throwable> void runOptionalTransactionalOperation(StreamCapableTransactionalOperation operation, Class<G> exceptionType, boolean useTransaction) throws G extends Throwable
TransactionalOperation.execute()
. The useTransaction parameter
allows the inclusion of some logic to determine whether or not the creation of the transaction is required for the operation. This is
useful in situations where there may already be an active transaction that you want to use, if available.G
- operation
- exceptionType
- useTransaction
- G
G extends Throwable
<G extends Throwable> void runOptionalTransactionalOperation(StreamCapableTransactionalOperation operation, Class<G> exceptionType, boolean useTransaction, int transactionBehavior, int isolationLevel) throws G extends Throwable
G extends Throwable
<G extends Throwable> void runOptionalTransactionalOperation(StreamCapableTransactionalOperation operation, Class<G> exceptionType, boolean useTransaction, int transactionBehavior, int isolationLevel, boolean readOnly, org.springframework.transaction.PlatformTransactionManager transactionManager) throws G extends Throwable
G extends Throwable
org.springframework.transaction.PlatformTransactionManager getTransactionManager()
void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
void runOptionalEntityManagerInViewOperation(Runnable runnable)
runnable
- Copyright © 2022. All rights reserved.