Examples of EventSourceTransactionContext


Examples of org.hibernate.search.backend.impl.EventSourceTransactionContext

  private final TransactionContext transactionContext;


  public FullTextSessionImpl(org.hibernate.Session session) {
    this.session = ( Session ) session;
    this.transactionContext = new EventSourceTransactionContext( ( EventSource ) session );
    this.sessionImplementor = ( SessionImplementor ) session;
  }
View Full Code Here

Examples of org.hibernate.search.backend.impl.EventSourceTransactionContext

    }
  }

  protected <T> void  processWork(T entity, Serializable id, WorkType workType, AbstractEvent event) {
    Work<T> work = new Work<T>( entity, id, workType );
    final EventSourceTransactionContext transactionContext = new EventSourceTransactionContext( event.getSession() );
    searchFactoryImplementor.getWorker().performWork( work, transactionContext );
  }
View Full Code Here

Examples of org.hibernate.search.backend.impl.EventSourceTransactionContext

  public FullTextSessionImpl(org.hibernate.Session session) {
    if ( session  == null ) {
      throw new IllegalArgumentException("Unable to create a FullTextSession from an null Session object");
    }
    this.session = ( Session ) session;
    this.transactionContext = new EventSourceTransactionContext( ( EventSource ) session );
    this.sessionImplementor = ( SessionImplementor ) session;
  }
View Full Code Here

Examples of org.hibernate.search.backend.impl.EventSourceTransactionContext

    }
  }

  protected <T> void processWork(T entity, Serializable id, WorkType workType, AbstractEvent event) {
    Work<T> work = new Work<T>( entity, id, workType );
    final EventSourceTransactionContext transactionContext = new EventSourceTransactionContext( event.getSession() );
    searchFactoryImplementor.getWorker().performWork( work, transactionContext );
  }
View Full Code Here

Examples of org.hibernate.search.backend.impl.EventSourceTransactionContext

    }
  }

  protected <T> void processWork(T entity, Serializable id, WorkType workType, AbstractEvent event, boolean identifierRollbackEnabled) {
    Work<T> work = new Work<T>( entity, id, workType, identifierRollbackEnabled );
    final EventSourceTransactionContext transactionContext = new EventSourceTransactionContext( event.getSession() );
    searchFactoryImplementor.getWorker().performWork( work, transactionContext );
  }
View Full Code Here

Examples of org.hibernate.search.backend.impl.EventSourceTransactionContext

  private final TransactionContext transactionContext;


  public FullTextSessionImpl(org.hibernate.Session session) {
    this.session = ( Session ) session;
    this.transactionContext = new EventSourceTransactionContext( ( EventSource ) session );
    this.sessionImplementor = ( SessionImplementor ) session;
  }
View Full Code Here

Examples of org.hibernate.search.backend.impl.EventSourceTransactionContext

    }
  }

  protected void processWork(Object entity, Serializable id, WorkType workType, AbstractEvent event) {
    Work work = new Work( entity, id, workType );
    final EventSourceTransactionContext transactionContext = new EventSourceTransactionContext( event.getSession() );
    searchFactoryImplementor.getWorker().performWork( work, transactionContext );
  }
View Full Code Here

Examples of org.hibernate.search.backend.impl.EventSourceTransactionContext

  private final TransactionContext transactionContext;


  public FullTextSessionImpl(org.hibernate.Session session) {
    this.session = ( Session ) session;
    this.transactionContext = new EventSourceTransactionContext( ( EventSource ) session );
    this.sessionImplementor = ( SessionImplementor ) session;
  }
View Full Code Here

Examples of org.hibernate.search.backend.impl.EventSourceTransactionContext

    }
  }

  protected <T> void processWork(T entity, Serializable id, WorkType workType, AbstractEvent event) {
    Work<T> work = new Work<T>( entity, id, workType );
    final EventSourceTransactionContext transactionContext = new EventSourceTransactionContext( event.getSession() );
    searchFactoryImplementor.getWorker().performWork( work, transactionContext );
  }
View Full Code Here

Examples of org.hibernate.search.backend.impl.EventSourceTransactionContext

  public FullTextSessionImpl(org.hibernate.Session session) {
    if ( session == null ) {
      throw new IllegalArgumentException( "Unable to create a FullTextSession from an null Session object" );
    }
    this.session = session;
    this.transactionContext = new EventSourceTransactionContext( (EventSource) session );
    this.sessionImplementor = (SessionImplementor) session;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.