public interface JdbcTransaction
extends com.holonplatform.core.datastore.transaction.Transaction
Transaction.com.holonplatform.core.datastore.transaction.TransactionStatus.IllegalTransactionStatusException, com.holonplatform.core.datastore.transaction.TransactionStatus.TransactionException, com.holonplatform.core.datastore.transaction.TransactionStatus.TransactionNotSupportedException| Modifier and Type | Method and Description |
|---|---|
static JdbcTransaction |
create(Connection connection,
com.holonplatform.core.datastore.transaction.TransactionConfiguration configuration)
Create a new
JdbcTransaction. |
static JdbcTransaction |
delegate(JdbcTransaction delegated)
Create a
JdbcTransaction which delegates its operations and status to the given delegated transaction. |
void |
end()
Finalize the transaction.
|
com.holonplatform.core.datastore.transaction.TransactionConfiguration |
getConfiguration()
Get the transaction configuration.
|
Connection |
getConnection()
Get the JDBC connection bound to this transaction.
|
void |
start()
Start the transaction.
|
void start()
throws com.holonplatform.core.datastore.transaction.TransactionStatus.TransactionException
Connection is obtained and configured according to the transaction
configuration.TransactionException - If an error occurredcom.holonplatform.core.datastore.transaction.TransactionStatus.TransactionExceptionvoid end() throws com.holonplatform.core.datastore.transaction.TransactionStatus.TransactionException
Connection bound to the transaction, if present, is released.TransactionException - If an error occurredcom.holonplatform.core.datastore.transaction.TransactionStatus.TransactionExceptionConnection getConnection()
com.holonplatform.core.datastore.transaction.TransactionConfiguration getConfiguration()
static JdbcTransaction create(Connection connection, com.holonplatform.core.datastore.transaction.TransactionConfiguration configuration)
JdbcTransaction.connection - Transaction Connection (not null)configuration - Transaction configuration (not null)JdbcTransaction implementationstatic JdbcTransaction delegate(JdbcTransaction delegated)
JdbcTransaction which delegates its operations and status to the given delegated transaction.
The delegated transaction returns false from the TransactionStatus.isNew() method.
delegated - Delegated transaction (not null)JdbcTransaction implementationCopyright © 2019 The Holon Platform. All rights reserved.