private void init() { unresolvedInsertions = new UnresolvedEntityInsertActions(); insertions = new ArrayList<AbstractEntityInsertAction>( INIT_QUEUE_LIST_SIZE ); deletions = new ArrayList<EntityDeleteAction>( INIT_QUEUE_LIST_SIZE ); updates = new ArrayList( INIT_QUEUE_LIST_SIZE ); collectionCreations = new ArrayList( INIT_QUEUE_LIST_SIZE ); collectionRemovals = new ArrayList( INIT_QUEUE_LIST_SIZE ); collectionUpdates = new ArrayList( INIT_QUEUE_LIST_SIZE ); afterTransactionProcesses = new AfterTransactionCompletionProcessQueue( session ); beforeTransactionProcesses = new BeforeTransactionCompletionProcessQueue( session ); }
if( e.getBeforeTransactionCompletionProcess() != null ) { if( beforeTransactionProcesses == null ) { beforeTransactionProcesses = new BeforeTransactionCompletionProcessQueue( session ); beforeTransactionProcesses.register( e.getBeforeTransactionCompletionProcess() );
private void registerCleanupActions(Executable executable) { if( executable.getBeforeTransactionCompletionProcess() != null ) { if( beforeTransactionProcesses == null ) { beforeTransactionProcesses = new BeforeTransactionCompletionProcessQueue( session ); } beforeTransactionProcesses.register( executable.getBeforeTransactionCompletionProcess() ); } if ( session.getFactory().getSessionFactoryOptions().isQueryCacheEnabled() ) { invalidateSpaces( convertTimestampSpaces( executable.getPropertySpaces() ) ); } if( executable.getAfterTransactionCompletionProcess() != null ) { if( afterTransactionProcesses == null ) { afterTransactionProcesses = new AfterTransactionCompletionProcessQueue( session ); } afterTransactionProcesses.register( executable.getAfterTransactionCompletionProcess() ); } }
public void registerProcess(BeforeTransactionCompletionProcess process) { beforeTransactionProcesses.register( process ); }
public void registerProcess(BeforeTransactionCompletionProcess process) { beforeTransactionProcesses.register( process ); }
@SuppressWarnings("SimplifiableConditionalExpression") public boolean hasBeforeTransactionActions() { return isTransactionCoordinatorShared ? false : beforeTransactionProcesses != null && beforeTransactionProcesses.hasActions(); }
/** * Execute any registered {@link org.hibernate.action.spi.BeforeTransactionCompletionProcess} */ public void beforeTransactionCompletion() { beforeTransactionProcesses.beforeTransactionCompletion(); }
private void registerCleanupActions(Executable executable) { beforeTransactionProcesses.register( executable.getBeforeTransactionCompletionProcess() ); if ( session.getFactory().getSettings().isQueryCacheEnabled() ) { final String[] spaces = (String[]) executable.getPropertySpaces(); if ( spaces != null && spaces.length > 0 ) { //HHH-6286 afterTransactionProcesses.addSpacesToInvalidate( spaces ); session.getFactory().getUpdateTimestampsCache().preinvalidate( spaces ); } } afterTransactionProcesses.register( executable.getAfterTransactionCompletionProcess() ); }
/** * Execute any registered {@link org.hibernate.action.spi.BeforeTransactionCompletionProcess} */ public void beforeTransactionCompletion() { beforeTransactionProcesses.beforeTransactionCompletion(); }
private void registerCleanupActions(Executable executable) { beforeTransactionProcesses.register( executable.getBeforeTransactionCompletionProcess() ); if ( session.getFactory().getSettings().isQueryCacheEnabled() ) { final String[] spaces = (String[]) executable.getPropertySpaces(); if ( spaces != null && spaces.length > 0 ) { //HHH-6286 afterTransactionProcesses.addSpacesToInvalidate( spaces ); session.getFactory().getUpdateTimestampsCache().preinvalidate( spaces ); } } afterTransactionProcesses.register( executable.getAfterTransactionCompletionProcess() ); }
/** * Execute any registered {@link org.hibernate.action.spi.BeforeTransactionCompletionProcess} */ public void beforeTransactionCompletion() { if ( !isTransactionCoordinatorShared ) { // Execute completion actions only in transaction owner (aka parent session). if( beforeTransactionProcesses != null ) { beforeTransactionProcesses.beforeTransactionCompletion(); } } }
public void registerProcess(BeforeTransactionCompletionProcess process) { if( beforeTransactionProcesses == null ) { beforeTransactionProcesses = new BeforeTransactionCompletionProcessQueue( session ); } beforeTransactionProcesses.register( process ); }
private void init() { unresolvedInsertions = new UnresolvedEntityInsertActions(); insertions = new ArrayList<AbstractEntityInsertAction>( INIT_QUEUE_LIST_SIZE ); deletions = new ArrayList<EntityDeleteAction>( INIT_QUEUE_LIST_SIZE ); updates = new ArrayList( INIT_QUEUE_LIST_SIZE ); collectionCreations = new ArrayList( INIT_QUEUE_LIST_SIZE ); collectionRemovals = new ArrayList( INIT_QUEUE_LIST_SIZE ); collectionUpdates = new ArrayList( INIT_QUEUE_LIST_SIZE ); afterTransactionProcesses = new AfterTransactionCompletionProcessQueue( session ); beforeTransactionProcesses = new BeforeTransactionCompletionProcessQueue( session ); }
public TransactionCompletionProcesses getTransactionCompletionProcesses() { if( beforeTransactionProcesses == null ) { beforeTransactionProcesses = new BeforeTransactionCompletionProcessQueue( session ); } if( afterTransactionProcesses == null ) { afterTransactionProcesses = new AfterTransactionCompletionProcessQueue( session ); } return new TransactionCompletionProcesses( beforeTransactionProcesses, afterTransactionProcesses ); }
if( e.getBeforeTransactionCompletionProcess() != null ) { if( beforeTransactionProcesses == null ) { beforeTransactionProcesses = new BeforeTransactionCompletionProcessQueue( session ); beforeTransactionProcesses.register( e.getBeforeTransactionCompletionProcess() );
private void registerCleanupActions(Executable executable) { if( executable.getBeforeTransactionCompletionProcess() != null ) { if( beforeTransactionProcesses == null ) { beforeTransactionProcesses = new BeforeTransactionCompletionProcessQueue( session ); } beforeTransactionProcesses.register( executable.getBeforeTransactionCompletionProcess() ); } if ( session.getFactory().getSessionFactoryOptions().isQueryCacheEnabled() ) { invalidateSpaces( convertTimestampSpaces( executable.getPropertySpaces() ) ); } if( executable.getAfterTransactionCompletionProcess() != null ) { if( afterTransactionProcesses == null ) { afterTransactionProcesses = new AfterTransactionCompletionProcessQueue( session ); } afterTransactionProcesses.register( executable.getAfterTransactionCompletionProcess() ); } }
public TransactionCompletionProcesses getTransactionCompletionProcesses() { if( beforeTransactionProcesses == null ) { beforeTransactionProcesses = new BeforeTransactionCompletionProcessQueue( session ); } if( afterTransactionProcesses == null ) { afterTransactionProcesses = new AfterTransactionCompletionProcessQueue( session ); } return new TransactionCompletionProcesses( beforeTransactionProcesses, afterTransactionProcesses ); }
/** * Execute any registered {@link org.hibernate.action.spi.BeforeTransactionCompletionProcess} */ public void beforeTransactionCompletion() { if ( !isTransactionCoordinatorShared ) { // Execute completion actions only in transaction owner (aka parent session). if( beforeTransactionProcesses != null ) { beforeTransactionProcesses.beforeTransactionCompletion(); } } }
public void registerProcess(BeforeTransactionCompletionProcess process) { if( beforeTransactionProcesses == null ) { beforeTransactionProcesses = new BeforeTransactionCompletionProcessQueue( session ); } beforeTransactionProcesses.register( process ); }
@SuppressWarnings("SimplifiableConditionalExpression") public boolean hasBeforeTransactionActions() { return isTransactionCoordinatorShared ? false : beforeTransactionProcesses != null && beforeTransactionProcesses.hasActions(); }