Examples of appendListeners()


Examples of org.hibernate.event.service.spi.EventListenerRegistry.appendListeners()

    final AuditConfiguration enversConfiguration = AuditConfiguration.getFor( configuration );

        if (enversConfiguration.getEntCfg().hasAuditedEntities()) {
        listenerRegistry.appendListeners( EventType.POST_DELETE, new EnversPostDeleteEventListenerImpl( enversConfiguration ) );
        listenerRegistry.appendListeners( EventType.POST_INSERT, new EnversPostInsertEventListenerImpl( enversConfiguration ) );
        listenerRegistry.appendListeners( EventType.POST_UPDATE, new EnversPostUpdateEventListenerImpl( enversConfiguration ) );
        listenerRegistry.appendListeners( EventType.POST_COLLECTION_RECREATE, new EnversPostCollectionRecreateEventListenerImpl( enversConfiguration ) );
        listenerRegistry.appendListeners( EventType.PRE_COLLECTION_REMOVE, new EnversPreCollectionRemoveEventListenerImpl( enversConfiguration ) );
        listenerRegistry.appendListeners( EventType.PRE_COLLECTION_UPDATE, new EnversPreCollectionUpdateEventListenerImpl( enversConfiguration ) );
        }
  }
View Full Code Here

Examples of org.hibernate.event.service.spi.EventListenerRegistry.appendListeners()

        if (enversConfiguration.getEntCfg().hasAuditedEntities()) {
        listenerRegistry.appendListeners( EventType.POST_DELETE, new EnversPostDeleteEventListenerImpl( enversConfiguration ) );
        listenerRegistry.appendListeners( EventType.POST_INSERT, new EnversPostInsertEventListenerImpl( enversConfiguration ) );
        listenerRegistry.appendListeners( EventType.POST_UPDATE, new EnversPostUpdateEventListenerImpl( enversConfiguration ) );
        listenerRegistry.appendListeners( EventType.POST_COLLECTION_RECREATE, new EnversPostCollectionRecreateEventListenerImpl( enversConfiguration ) );
        listenerRegistry.appendListeners( EventType.PRE_COLLECTION_REMOVE, new EnversPreCollectionRemoveEventListenerImpl( enversConfiguration ) );
        listenerRegistry.appendListeners( EventType.PRE_COLLECTION_UPDATE, new EnversPreCollectionUpdateEventListenerImpl( enversConfiguration ) );
        }
  }
View Full Code Here

Examples of org.hibernate.event.service.spi.EventListenerRegistry.appendListeners()

        if (enversConfiguration.getEntCfg().hasAuditedEntities()) {
        listenerRegistry.appendListeners( EventType.POST_DELETE, new EnversPostDeleteEventListenerImpl( enversConfiguration ) );
        listenerRegistry.appendListeners( EventType.POST_INSERT, new EnversPostInsertEventListenerImpl( enversConfiguration ) );
        listenerRegistry.appendListeners( EventType.POST_UPDATE, new EnversPostUpdateEventListenerImpl( enversConfiguration ) );
        listenerRegistry.appendListeners( EventType.POST_COLLECTION_RECREATE, new EnversPostCollectionRecreateEventListenerImpl( enversConfiguration ) );
        listenerRegistry.appendListeners( EventType.PRE_COLLECTION_REMOVE, new EnversPreCollectionRemoveEventListenerImpl( enversConfiguration ) );
        listenerRegistry.appendListeners( EventType.PRE_COLLECTION_UPDATE, new EnversPreCollectionUpdateEventListenerImpl( enversConfiguration ) );
        }
  }

  @Override
View Full Code Here

Examples of org.hibernate.event.service.spi.EventListenerRegistry.appendListeners()

        listenerRegistry.appendListeners( EventType.POST_DELETE, new EnversPostDeleteEventListenerImpl( enversConfiguration ) );
        listenerRegistry.appendListeners( EventType.POST_INSERT, new EnversPostInsertEventListenerImpl( enversConfiguration ) );
        listenerRegistry.appendListeners( EventType.POST_UPDATE, new EnversPostUpdateEventListenerImpl( enversConfiguration ) );
        listenerRegistry.appendListeners( EventType.POST_COLLECTION_RECREATE, new EnversPostCollectionRecreateEventListenerImpl( enversConfiguration ) );
        listenerRegistry.appendListeners( EventType.PRE_COLLECTION_REMOVE, new EnversPreCollectionRemoveEventListenerImpl( enversConfiguration ) );
        listenerRegistry.appendListeners( EventType.PRE_COLLECTION_UPDATE, new EnversPreCollectionUpdateEventListenerImpl( enversConfiguration ) );
        }
  }

  @Override
  public void disintegrate(SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry) {
View Full Code Here

Examples of org.hibernate.event.service.spi.EventListenerRegistry.appendListeners()

    @PostConstruct
    private void registerHibernateListeners() {
        SessionFactoryImpl impl = (SessionFactoryImpl) sessionFactory;
        EventListenerRegistry registry = impl.getServiceRegistry().getService(EventListenerRegistry.class);

        registry.appendListeners(EventType.POST_INSERT, this);
        registry.appendListeners(EventType.POST_UPDATE, this);
        registry.appendListeners(EventType.POST_DELETE, this);

        hibernateListenersRegistered = true;
    }
View Full Code Here

Examples of org.hibernate.event.service.spi.EventListenerRegistry.appendListeners()

    private void registerHibernateListeners() {
        SessionFactoryImpl impl = (SessionFactoryImpl) sessionFactory;
        EventListenerRegistry registry = impl.getServiceRegistry().getService(EventListenerRegistry.class);

        registry.appendListeners(EventType.POST_INSERT, this);
        registry.appendListeners(EventType.POST_UPDATE, this);
        registry.appendListeners(EventType.POST_DELETE, this);

        hibernateListenersRegistered = true;
    }
View Full Code Here

Examples of org.hibernate.event.service.spi.EventListenerRegistry.appendListeners()

        SessionFactoryImpl impl = (SessionFactoryImpl) sessionFactory;
        EventListenerRegistry registry = impl.getServiceRegistry().getService(EventListenerRegistry.class);

        registry.appendListeners(EventType.POST_INSERT, this);
        registry.appendListeners(EventType.POST_UPDATE, this);
        registry.appendListeners(EventType.POST_DELETE, this);

        hibernateListenersRegistered = true;
    }

    @Override
View Full Code Here

Examples of org.hibernate.event.service.spi.EventListenerRegistry.appendListeners()

            ClassLoaderService.class
        )
    );

    if ( enversConfiguration.getEntCfg().hasAuditedEntities() ) {
      listenerRegistry.appendListeners(
          EventType.POST_DELETE, new EnversPostDeleteEventListenerImpl(
          enversConfiguration
      )
      );
      listenerRegistry.appendListeners(
View Full Code Here

Examples of org.hibernate.event.service.spi.EventListenerRegistry.appendListeners()

      listenerRegistry.appendListeners(
          EventType.POST_DELETE, new EnversPostDeleteEventListenerImpl(
          enversConfiguration
      )
      );
      listenerRegistry.appendListeners(
          EventType.POST_INSERT, new EnversPostInsertEventListenerImpl(
          enversConfiguration
      )
      );
      listenerRegistry.appendListeners(
View Full Code Here

Examples of org.hibernate.event.service.spi.EventListenerRegistry.appendListeners()

      listenerRegistry.appendListeners(
          EventType.POST_INSERT, new EnversPostInsertEventListenerImpl(
          enversConfiguration
      )
      );
      listenerRegistry.appendListeners(
          EventType.POST_UPDATE, new EnversPostUpdateEventListenerImpl(
          enversConfiguration
      )
      );
      listenerRegistry.appendListeners(
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.