Package org.hibernate.action.spi

Examples of org.hibernate.action.spi.BeforeTransactionCompletionProcess


    public void beforeTransactionCompletion() {
      final int size = processes.size();
      for ( int i = 0; i < size; i++ ) {
        try {
          BeforeTransactionCompletionProcess process = processes.get( i );
          process.doBeforeTransactionCompletion( session );
        }
        catch ( HibernateException he ) {
          throw he;
        }
        catch ( Exception e ) {
View Full Code Here


            // No worries about registering a transaction twice - a transaction is single thread
            auditProcess = new AuditProcess(revisionInfoGenerator, session);
            auditProcesses.put(transaction, auditProcess);

      session.getActionQueue().registerProcess(
          new BeforeTransactionCompletionProcess() {
            public void doBeforeTransactionCompletion(SessionImplementor session) {
              final AuditProcess process = auditProcesses.get( transaction );
              if ( process != null ) {
                process.doBeforeTransactionCompletion( session );
              }
View Full Code Here

    public void beforeTransactionCompletion() {
      final int size = processes.size();
      for ( int i = 0; i < size; i++ ) {
        try {
          BeforeTransactionCompletionProcess process = processes.get( i );
          process.doBeforeTransactionCompletion( session );
        }
        catch ( HibernateException he ) {
          throw he;
        }
        catch ( Exception e ) {
View Full Code Here

    public void beforeTransactionCompletion() {
      final int size = processes.size();
      for ( int i = 0; i < size; i++ ) {
        try {
          BeforeTransactionCompletionProcess process = processes.get( i );
          process.doBeforeTransactionCompletion( session );
        }
        catch ( HibernateException he ) {
          throw he;
        }
        catch ( Exception e ) {
View Full Code Here

    // reused, this guarantees correct strategy behavior: exactly one row with
    // null end date exists for each identifier.
    final boolean reuseEntityIdentifier = auditCfg.getGlobalCfg().isAllowIdentifierReuse();
    if ( reuseEntityIdentifier || getRevisionType( auditCfg, data ) != RevisionType.ADD ) {
      // Register transaction completion process to guarantee execution of UPDATE statement after INSERT.
      ( (EventSource) session ).getActionQueue().registerProcess( new BeforeTransactionCompletionProcess() {
        @Override
        public void doBeforeTransactionCompletion(final SessionImplementor sessionImplementor) {
          final Queryable productionEntityQueryable = getQueryable( entityName, sessionImplementor );
          final Queryable rootProductionEntityQueryable = getQueryable(
              productionEntityQueryable.getRootEntityName(), sessionImplementor
View Full Code Here

      // No worries about registering a transaction twice - a transaction is single thread
      auditProcess = new AuditProcess( revisionInfoGenerator, session );
      auditProcesses.put( transaction, auditProcess );

      session.getActionQueue().registerProcess(
          new BeforeTransactionCompletionProcess() {
            public void doBeforeTransactionCompletion(SessionImplementor session) {
              final AuditProcess process = auditProcesses.get( transaction );
              if ( process != null ) {
                process.doBeforeTransactionCompletion( session );
              }
View Full Code Here

    public void beforeTransactionCompletion() {
      final int size = processes.size();
      for ( int i = 0; i < size; i++ ) {
        try {
          BeforeTransactionCompletionProcess process = processes.get( i );
          process.doBeforeTransactionCompletion( session );
        }
        catch ( HibernateException he ) {
          throw he;
        }
        catch ( Exception e ) {
View Full Code Here

    public void beforeTransactionCompletion() {
      final int size = processes.size();
      for ( int i = 0; i < size; i++ ) {
        try {
          BeforeTransactionCompletionProcess process = processes.get( i );
          process.doBeforeTransactionCompletion( session );
        }
        catch ( HibernateException he ) {
          throw he;
        }
        catch ( Exception e ) {
View Full Code Here

TOP

Related Classes of org.hibernate.action.spi.BeforeTransactionCompletionProcess

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.