Methods Summary |
---|
public boolean | areCallbacksLocalToHibernateTransactions()
return false;
|
public void | configure(java.util.Properties props)
|
public org.hibernate.Transaction | createTransaction(org.hibernate.jdbc.JDBCContext jdbcContext, Context context)
return new DummyTransactionAdapter();
|
public org.hibernate.ConnectionReleaseMode | getDefaultReleaseMode()
return ConnectionReleaseMode.AFTER_STATEMENT;
|
public boolean | isTransactionInProgress(org.hibernate.jdbc.JDBCContext jdbcContext, Context transactionContext, org.hibernate.Transaction transaction)
try {
return JTAHelper.isTransactionInProgress( DummyTransactionManager.INSTANCE.getCurrent() )
&& ! JTAHelper.isMarkedForRollback( DummyTransactionManager.INSTANCE.getCurrent() );
}
catch( SystemException e ) {
throw new HibernateException( e );
}
|
public boolean | isTransactionManagerRequired()
return true;
|
public static void | setup(org.hibernate.cfg.Configuration cfg)
cfg.setProperty( Environment.CONNECTION_PROVIDER, DummyConnectionProvider.class.getName() );
cfg.setProperty( Environment.TRANSACTION_MANAGER_STRATEGY, DummyTransactionManagerLookup.class.getName() );
cfg.setProperty( Environment.TRANSACTION_STRATEGY, DummyJTAStyleTransationFactory.class.getName() );
cfg.setProperty( Environment.FLUSH_BEFORE_COMPLETION, "true" );
|