@Override public final void clear() { checkClosed(); // TODO Do we need a client and persistenceDelegator close here? if (!PersistenceUnitTransactionType.JTA.equals(this.transactionType)) { getPersistenceDelegator().clear(); } }
private void onLookUp(PersistenceUnitTransactionType transactionType) if (transactionType != null && transactionType.equals(PersistenceUnitTransactionType.JTA))
@Override public final EntityManagerFactory getInstance() { final EntityManagerFactory returnValue; if (RESOURCE_LOCAL.equals(persistenceUnitInfo.getTransactionType())) { returnValue = getOrCreateEntityManagerFactory(emfs, null, this.name); } else { returnValue = getOrCreateEntityManagerFactory(emfs, this.persistenceUnitInfo, this.name); } return returnValue; }
protected void postInit() { //register in Sync if needed if ( PersistenceUnitTransactionType.JTA.equals( transactionType ) ) joinTransaction( true ); Object flushMode = properties.get( "org.hibernate.flushMode" ); if (flushMode != null) { getSession().setFlushMode( ConfigurationHelper.getFlushMode( flushMode ) ); } this.properties = null; }
private final boolean isResourceLocal() { return RESOURCE_LOCAL.equals(this.persistenceUnitInfo.getTransactionType()); }
protected void postInit() { //register in Sync if needed if ( PersistenceUnitTransactionType.JTA.equals( transactionType ) ) { joinTransaction( false ); } setDefaultProperties(); applyProperties(); }
protected void postInit() { //register in Sync if needed if ( PersistenceUnitTransactionType.JTA.equals( transactionType ) ) joinTransaction( true ); Object flushMode = properties.get( "org.hibernate.flushMode" ); if (flushMode != null) { getSession().setFlushMode( ConfigurationHelper.getFlushMode( flushMode ) ); } this.properties = null; }