Package org.hibernate.envers.reader

Examples of org.hibernate.envers.reader.AuditReaderImpl


        .getService( EventListenerRegistry.class );

    for ( PostInsertEventListener listener : listenerRegistry.getEventListenerGroup( EventType.POST_INSERT ).listeners() ) {
      if ( listener instanceof EnversListener ) {
        // todo : slightly different from original code in that I am not checking the other listener groups...
        return new AuditReaderImpl(
            ( (EnversListener) listener ).getAuditConfiguration(),
            session,
            sessionImpl
        );
      }
View Full Code Here


        for (PostInsertEventListener listener : listeners.getPostInsertEventListeners()) {
            if (listener instanceof AuditEventListener) {
                if (arrayIncludesInstanceOf(listeners.getPostUpdateEventListeners(), AuditEventListener.class) &&
                        arrayIncludesInstanceOf(listeners.getPostDeleteEventListeners(), AuditEventListener.class)) {
                    return new AuditReaderImpl(((AuditEventListener) listener).getVerCfg(), session,
                            sessionImpl);
                }
            }
        }
View Full Code Here

        .getService( EventListenerRegistry.class );

    for ( PostInsertEventListener listener : listenerRegistry.getEventListenerGroup( EventType.POST_INSERT ).listeners() ) {
      if ( listener instanceof EnversListener ) {
        // todo : slightly different from original code in that I am not checking the other listener groups...
        return new AuditReaderImpl(
            ( (EnversListener) listener ).getAuditConfiguration(),
            session,
            sessionImpl
        );
      }
View Full Code Here

        .getService( EventListenerRegistry.class );

    for ( PostInsertEventListener listener : listenerRegistry.getEventListenerGroup( EventType.POST_INSERT ).listeners() ) {
      if ( listener instanceof EnversListener ) {
        // todo : slightly different from original code in that I am not checking the other listener groups...
        return new AuditReaderImpl(
            ( (EnversListener) listener ).getAuditConfiguration(),
            session,
            sessionImpl
        );
      }
View Full Code Here

        for (PostInsertEventListener listener : listeners.getPostInsertEventListeners()) {
            if (listener instanceof AuditEventListener) {
                if (arrayIncludesInstanceOf(listeners.getPostUpdateEventListeners(), AuditEventListener.class) &&
                        arrayIncludesInstanceOf(listeners.getPostDeleteEventListeners(), AuditEventListener.class)) {
                    return new AuditReaderImpl(((AuditEventListener) listener).getVerCfg(), session,
                            sessionImpl);
                }
            }
        }
View Full Code Here

        for (PostInsertEventListener listener : listeners.getPostInsertEventListeners()) {
            if (listener instanceof AuditEventListener) {
                if (arrayIncludesInstanceOf(listeners.getPostUpdateEventListeners(), AuditEventListener.class) &&
                        arrayIncludesInstanceOf(listeners.getPostDeleteEventListeners(), AuditEventListener.class)) {
                    return new AuditReaderImpl(((AuditEventListener) listener).getVerCfg(), session,
                            sessionImpl);
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.hibernate.envers.reader.AuditReaderImpl

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.