Package org.hibernate

Examples of org.hibernate.SessionFactory.evictCollection()


    Map collMetadata = sf.getAllCollectionMetadata();
    for (Object abstractCollectionPersistObject : collMetadata.values()) {
      AbstractCollectionPersister acp = (AbstractCollectionPersister) abstractCollectionPersistObject;
      if (acp.hasCache()) {
        sf.evictCollection(acp.getCache().getRegionName());
      }
    }
  }

  private static class SessionData {
View Full Code Here


  @Override
  public void evictCollection(PageContext pc, String entityName, String collectionName, String id) throws PageException {
    SessionFactory f = getSessionFactory(pc);
    String role=entityName+"."+collectionName;
    if(id==null) {
      f.evictCollection(role);
    }
    else {
      f.evictCollection(role,CommonUtil.toSerializable(id));
    }
  }
View Full Code Here

    String role=entityName+"."+collectionName;
    if(id==null) {
      f.evictCollection(role);
    }
    else {
      f.evictCollection(role,CommonUtil.toSerializable(id));
    }
  }
 
  
 
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.