Package org.hibernate.event

Examples of org.hibernate.event.PostDeleteEventListener


      @Override
      public void onPostUpdate(PostUpdateEvent event) {
        DefaultResourceCacheProvider.this.clearStaticResouceCache(event.getId().toString(),RestContextManager.getRequest());
      }
    });
    HibernateEventListener.getInstance().addPostDeleteEventListener(new PostDeleteEventListener(){
      @Override
      public void onPostDelete(PostDeleteEvent event) {
        DefaultResourceCacheProvider.this.clearStaticResouceCache(event.getId().toString(),RestContextManager.getRequest());
      }
    });
View Full Code Here


    } else {
      postDeleteEventListeners = eventListeners.getPostDeleteEventListeners();
    }
    List<PostDeleteEventListener> tempPostDeleteEventListeners = Lists.newArrayList();
    for (int i = 0; i < postDeleteEventListeners.length; i++) {
      PostDeleteEventListener postDeleteEventListener = postDeleteEventListeners[i];
      if (!(postDeleteEventListener instanceof HibernateEventListener)) {
        tempPostDeleteEventListeners.add(postDeleteEventListener);
      }
    }
    if (registerPostCommitListeneres) {
View Full Code Here

TOP

Related Classes of org.hibernate.event.PostDeleteEventListener

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.