Transaction instances.
The concrete implementation to be used is specified by the
org. configuration
setting.
Implementors must be threadsafe and should declare a public default constructor.
Transaction
| Modifier and Type | Class and Description |
|---|---|
| public static interface | TransactionFactory.Context
Callback mechanism; a context is always a |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if callbacks only ever originate from the HibernateTransaction; false otherwise.Are all transaction callbacks local to Hibernate Transactions? |
| public void | |
| public Transaction | Returns: TransactionThe jdbc context to which the transaction belongs jdbcContext, TransactionFactory.The contract regarding the context in which this transaction will operate. contextBegin a transaction and return the associated Transaction instance. |
| public ConnectionReleaseMode | Returns: The default release mode associated with this strategyGet the default connection release mode. |
| public boolean | Returns: true if an underlying transaction is know to be in effect.The JDBC context jdbcContext, TransactionFactory.The transaction context transactionContext,The Hibernate transaction transaction)Determine whether an underlying transaction is in progress. |
| public boolean | Returns: True if this strategy requires access to the JTA TransactionManager; false otherwise.Do we require access to the JTA TransactionManager for this strategy? |
| areCallbacksLocalToHibernateTransactions | back to summary |
|---|---|
| public boolean areCallbacksLocalToHibernateTransactions() Are all transaction callbacks local to Hibernate Transactions? Or can the callbacks originate from some other source (e.g. a JTA Synchronization).
| |
| configure | back to summary |
|---|---|
| public void configure(Properties props) throws HibernateException Configure from the given properties.
| |
| createTransaction | back to summary |
|---|---|
| public Transaction createTransaction(JDBCContext jdbcContext, TransactionFactory. Begin a transaction and return the associated Transaction instance.
| |
| getDefaultReleaseMode | back to summary |
|---|---|
| public ConnectionReleaseMode getDefaultReleaseMode() Get the default connection release mode.
| |
| isTransactionInProgress | back to summary |
|---|---|
| public boolean isTransactionInProgress(JDBCContext jdbcContext, TransactionFactory. Determine whether an underlying transaction is in progress. Mainly this is used in determining whether to register a synchronization as well as whether or not to circumvent auto flushing outside transactions.
| |
| isTransactionManagerRequired | back to summary |
|---|---|
| public boolean isTransactionManagerRequired() Do we require access to the JTA TransactionManager for this strategy?
| |
org.hibernate.Session
in the Hibernate usage.
| Modifier and Type | Method and Description |
|---|---|
| public SessionFactoryImplementor | |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | |
| public void | |
| public boolean |
| getFactory | back to summary |
|---|---|
| public SessionFactoryImplementor getFactory() | |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() | |
| isFlushBeforeCompletionEnabled | back to summary |
|---|---|
| public boolean isFlushBeforeCompletionEnabled() | |
| isFlushModeNever | back to summary |
|---|---|
| public boolean isFlushModeNever() | |
| managedClose | back to summary |
|---|---|
| public void managedClose() | |
| managedFlush | back to summary |
|---|---|
| public void managedFlush() | |
| shouldAutoClose | back to summary |
|---|---|
| public boolean shouldAutoClose() | |