Package org.hibernate.event

Examples of org.hibernate.event.FlushEvent


    if ( persistenceContext.getCascadeLevel() > 0 ) {
      throw new HibernateException("Flush during cascade is dangerous");
    }
    FlushEventListener[] flushEventListener = listeners.getFlushEventListeners();
    for ( int i = 0; i < flushEventListener.length; i++ ) {
      flushEventListener[i].onFlush( new FlushEvent(this) );
    }
  }
View Full Code Here


    checkTransactionSynchStatus();
    if ( persistenceContext.getCascadeLevel() > 0 ) {
      throw new HibernateException("Flush during cascade is dangerous");
    }
    for ( FlushEventListener listener : listeners( EventType.FLUSH ) ) {
      listener.onFlush( new FlushEvent( this ) );
    }
  }
View Full Code Here

    }

    @Test
    public void onFlushAndCollect() {
        DummyFlushEventListenerImpl listener = new DummyFlushEventListenerImpl();
        listener.onFlush(new FlushEvent(null));
        standardAsserts("onFlush");
    }
View Full Code Here

    if ( persistenceContext.getCascadeLevel() > 0 ) {
      throw new HibernateException("Flush during cascade is dangerous");
    }
    FlushEventListener[] flushEventListener = listeners.getFlushEventListeners();
    for ( int i = 0; i < flushEventListener.length; i++ ) {
      flushEventListener[i].onFlush( new FlushEvent(this) );
    }
  }
View Full Code Here

    if ( persistenceContext.getCascadeLevel() > 0 ) {
      throw new HibernateException("Flush during cascade is dangerous");
    }
    FlushEventListener[] flushEventListener = listeners.getFlushEventListeners();
    for ( int i = 0; i < flushEventListener.length; i++ ) {
      flushEventListener[i].onFlush( new FlushEvent(this) );
    }
  }
View Full Code Here

    if ( persistenceContext.getCascadeLevel() > 0 ) {
      throw new HibernateException("Flush during cascade is dangerous");
    }
    FlushEventListener[] flushEventListener = listeners.getFlushEventListeners();
    for ( int i = 0; i < flushEventListener.length; i++ ) {
      flushEventListener[i].onFlush( new FlushEvent(this) );
    }
  }
View Full Code Here

    if ( persistenceContext.getCascadeLevel() > 0 ) {
      throw new HibernateException("Flush during cascade is dangerous");
    }
    FlushEventListener[] flushEventListener = listeners.getFlushEventListeners();
    for ( int i = 0; i < flushEventListener.length; i++ ) {
      flushEventListener[i].onFlush( new FlushEvent(this) );
    }
  }
View Full Code Here

    if ( persistenceContext.getCascadeLevel() > 0 ) {
      throw new HibernateException("Flush during cascade is dangerous");
    }
    FlushEventListener[] flushEventListener = listeners.getFlushEventListeners();
    for ( int i = 0; i < flushEventListener.length; i++ ) {
      flushEventListener[i].onFlush( new FlushEvent(this) );
    }
  }
View Full Code Here

TOP

Related Classes of org.hibernate.event.FlushEvent

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.