Package org.hibernate.search.backend.impl

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


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


    this.flushSynch.put( eventSource, synchronization );
  }

  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

TOP

Related Classes of org.hibernate.search.backend.impl.EventSourceTransactionContext

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.