Package org.hibernate.event.spi

Examples of org.hibernate.event.spi.AutoFlushEvent


    errorIfClosed();
    if ( ! isTransactionInProgress() ) {
      // do not auto-flush while outside a transaction
      return false;
    }
    AutoFlushEvent event = new AutoFlushEvent( querySpaces, this );
    for ( AutoFlushEventListener listener : listeners( EventType.AUTO_FLUSH ) ) {
      listener.onAutoFlush( event );
    }
    return event.isFlushRequired();
  }
View Full Code Here


    errorIfClosed();
    if ( ! isTransactionInProgress() ) {
      // do not auto-flush while outside a transaction
      return false;
    }
    AutoFlushEvent event = new AutoFlushEvent( querySpaces, this );
    for ( AutoFlushEventListener listener : listeners( EventType.AUTO_FLUSH ) ) {
      listener.onAutoFlush( event );
    }
    return event.isFlushRequired();
  }
View Full Code Here

    errorIfClosed();
    if ( ! isTransactionInProgress() ) {
      // do not auto-flush while outside a transaction
      return false;
    }
    AutoFlushEvent event = new AutoFlushEvent( querySpaces, this );
    for ( AutoFlushEventListener listener : listeners( EventType.AUTO_FLUSH ) ) {
      listener.onAutoFlush( event );
    }
    return event.isFlushRequired();
  }
View Full Code Here

      Queryable auditedEntityQueryable,
      Queryable revisionInfoEntityQueryable) {
    final Set<String> querySpaces = new HashSet<String>();
    querySpaces.add( auditedEntityQueryable.getTableName() );
    querySpaces.add( revisionInfoEntityQueryable.getTableName() );
    final AutoFlushEvent event = new AutoFlushEvent( querySpaces, (EventSource) sessionImplementor );
    final Iterable<AutoFlushEventListener> listeners = sessionImplementor.getFactory().getServiceRegistry()
        .getService( EventListenerRegistry.class )
        .getEventListenerGroup( EventType.AUTO_FLUSH )
        .listeners();
    for ( AutoFlushEventListener listener : listeners ) {
View Full Code Here

    errorIfClosed();
    if ( ! isTransactionInProgress() ) {
      // do not auto-flush while outside a transaction
      return false;
    }
    AutoFlushEvent event = new AutoFlushEvent( querySpaces, this );
    for ( AutoFlushEventListener listener : listeners( EventType.AUTO_FLUSH ) ) {
      listener.onAutoFlush( event );
    }
    return event.isFlushRequired();
  }
View Full Code Here

      Queryable auditedEntityQueryable,
      Queryable revisionInfoEntityQueryable) {
    final Set<String> querySpaces = new HashSet<String>();
    querySpaces.add( auditedEntityQueryable.getTableName() );
    querySpaces.add( revisionInfoEntityQueryable.getTableName() );
    final AutoFlushEvent event = new AutoFlushEvent( querySpaces, (EventSource) sessionImplementor );
    final Iterable<AutoFlushEventListener> listeners = sessionImplementor.getFactory().getServiceRegistry()
        .getService( EventListenerRegistry.class )
        .getEventListenerGroup( EventType.AUTO_FLUSH )
        .listeners();
    for ( AutoFlushEventListener listener : listeners ) {
View Full Code Here

    errorIfClosed();
    if ( ! isTransactionInProgress() ) {
      // do not auto-flush while outside a transaction
      return false;
    }
    AutoFlushEvent event = new AutoFlushEvent( querySpaces, this );
    for ( AutoFlushEventListener listener : listeners( EventType.AUTO_FLUSH ) ) {
      listener.onAutoFlush( event );
    }
    return event.isFlushRequired();
  }
View Full Code Here

      Queryable auditedEntityQueryable,
      Queryable revisionInfoEntityQueryable) {
    final Set<String> querySpaces = new HashSet<String>();
    querySpaces.add( auditedEntityQueryable.getTableName() );
    querySpaces.add( revisionInfoEntityQueryable.getTableName() );
    final AutoFlushEvent event = new AutoFlushEvent( querySpaces, (EventSource) sessionImplementor );
    final Iterable<AutoFlushEventListener> listeners = sessionImplementor.getFactory().getServiceRegistry()
        .getService( EventListenerRegistry.class )
        .getEventListenerGroup( EventType.AUTO_FLUSH )
        .listeners();
    for ( AutoFlushEventListener listener : listeners ) {
View Full Code Here

    errorIfClosed();
    if ( ! isTransactionInProgress() ) {
      // do not auto-flush while outside a transaction
      return false;
    }
    AutoFlushEvent event = new AutoFlushEvent( querySpaces, this );
    for ( AutoFlushEventListener listener : listeners( EventType.AUTO_FLUSH ) ) {
      listener.onAutoFlush( event );
    }
    return event.isFlushRequired();
  }
View Full Code Here

    errorIfClosed();
    if ( ! isTransactionInProgress() ) {
      // do not auto-flush while outside a transaction
      return false;
    }
    AutoFlushEvent event = new AutoFlushEvent( querySpaces, this );
    for ( AutoFlushEventListener listener : listeners( EventType.AUTO_FLUSH ) ) {
      listener.onAutoFlush( event );
    }
    return event.isFlushRequired();
  }
View Full Code Here

TOP

Related Classes of org.hibernate.event.spi.AutoFlushEvent

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.