Package org.hibernate.event.spi

Examples of org.hibernate.event.spi.PreInsertEvent


    final EventListenerGroup<PreInsertEventListener> listenerGroup = listenerGroup( EventType.PRE_INSERT );
    if ( listenerGroup.isEmpty() ) {
      return veto;
    }
    final PreInsertEvent event = new PreInsertEvent( getInstance(), getId(), getState(), getPersister(), eventSource() );
    for ( PreInsertEventListener listener : listenerGroup.listeners() ) {
      veto |= listener.onPreInsert( event );
    }
    return veto;
  }
View Full Code Here


    if ( listenerGroup.isEmpty() ) {
      // NO_VETO
      return false;
    }
    boolean veto = false;
    final PreInsertEvent event = new PreInsertEvent( getInstance(), null, getState(), getPersister(), eventSource() );
    for ( PreInsertEventListener listener : listenerGroup.listeners() ) {
      veto |= listener.onPreInsert( event );
    }
    return veto;
  }
View Full Code Here

    EventListenerGroup<PreInsertEventListener> listenerGroup = listenerGroup( EventType.PRE_INSERT );
    if ( listenerGroup.isEmpty() ) {
      return false; // NO_VETO
    }
    boolean veto = false;
    final PreInsertEvent event = new PreInsertEvent( getInstance(), null, state, getPersister(), eventSource() );
    for ( PreInsertEventListener listener : listenerGroup.listeners() ) {
      veto |= listener.onPreInsert( event );
    }
    return veto;
  }
View Full Code Here

    EventListenerGroup<PreInsertEventListener> listenerGroup = listenerGroup( EventType.PRE_INSERT );
    if ( listenerGroup.isEmpty() ) {
      return veto;
    }
    final PreInsertEvent event = new PreInsertEvent( getInstance(), getId(), state, getPersister(), eventSource() );
    for ( PreInsertEventListener listener : listenerGroup.listeners() ) {
      veto |= listener.onPreInsert( event );
    }
    return veto;
  }
View Full Code Here

    EventListenerGroup<PreInsertEventListener> listenerGroup = listenerGroup( EventType.PRE_INSERT );
    if ( listenerGroup.isEmpty() ) {
      return veto;
    }
    final PreInsertEvent event = new PreInsertEvent( getInstance(), getId(), getState(), getPersister(), eventSource() );
    for ( PreInsertEventListener listener : listenerGroup.listeners() ) {
      veto |= listener.onPreInsert( event );
    }
    return veto;
  }
View Full Code Here

    EventListenerGroup<PreInsertEventListener> listenerGroup = listenerGroup( EventType.PRE_INSERT );
    if ( listenerGroup.isEmpty() ) {
      return veto;
    }
    final PreInsertEvent event = new PreInsertEvent( getInstance(), getId(), getState(), getPersister(), eventSource() );
    for ( PreInsertEventListener listener : listenerGroup.listeners() ) {
      veto |= listener.onPreInsert( event );
    }
    return veto;
  }
View Full Code Here

    EventListenerGroup<PreInsertEventListener> listenerGroup = listenerGroup( EventType.PRE_INSERT );
    if ( listenerGroup.isEmpty() ) {
      return veto;
    }
    final PreInsertEvent event = new PreInsertEvent( getInstance(), getId(), getState(), getPersister(), eventSource() );
    for ( PreInsertEventListener listener : listenerGroup.listeners() ) {
      veto |= listener.onPreInsert( event );
    }
    return veto;
  }
View Full Code Here

    EventListenerGroup<PreInsertEventListener> listenerGroup = listenerGroup( EventType.PRE_INSERT );
    if ( listenerGroup.isEmpty() ) {
      return veto;
    }
    final PreInsertEvent event = new PreInsertEvent( getInstance(), getId(), state, getPersister(), eventSource() );
    for ( PreInsertEventListener listener : listenerGroup.listeners() ) {
      veto |= listener.onPreInsert( event );
    }
    return veto;
  }
View Full Code Here

    EventListenerGroup<PreInsertEventListener> listenerGroup = listenerGroup( EventType.PRE_INSERT );
    if ( listenerGroup.isEmpty() ) {
      return veto;
    }
    final PreInsertEvent event = new PreInsertEvent( getInstance(), getId(), state, getPersister(), eventSource() );
    for ( PreInsertEventListener listener : listenerGroup.listeners() ) {
      veto |= listener.onPreInsert( event );
    }
    return veto;
  }
View Full Code Here

    if ( listenerGroup.isEmpty() ) {
      // NO_VETO
      return false;
    }
    boolean veto = false;
    final PreInsertEvent event = new PreInsertEvent( getInstance(), null, getState(), getPersister(), eventSource() );
    for ( PreInsertEventListener listener : listenerGroup.listeners() ) {
      veto |= listener.onPreInsert( event );
    }
    return veto;
  }
View Full Code Here

TOP

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

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.