@Override @Deprecated public void evictCollection(String roleName) throws HibernateException { delegate.evictCollection(roleName); }
/** {@inheritDoc} **/ @Deprecated public void evictCollection(String roleName) { delegate.evictCollection(roleName); }
/** {@inheritDoc} **/ @Deprecated public void evictCollection(String roleName, Serializable id) { delegate.evictCollection(roleName, id); }
/** {@inheritDoc} **/ @Deprecated public void evictCollection(String roleName, Serializable id) { delegate.evictCollection(roleName, id); }
@Override @Deprecated public void evictCollection(String roleName, Serializable id) throws HibernateException { delegate.evictCollection(roleName, id); }
/** {@inheritDoc} **/ @Deprecated public void evictCollection(String roleName) { delegate.evictCollection(roleName); }
@SuppressWarnings("deprecation") public void evictCollection(String roleName, Serializable id) throws HibernateException { getSessionFactory().evictCollection(roleName, id); }
@SuppressWarnings("deprecation") public void evictCollection(String roleName) throws HibernateException { getSessionFactory().evictCollection(roleName); }
public void evictCollection(String roleName, Serializable id) throws HibernateException { getImpl().evictCollection(roleName, id); }
public void evictCollection(String roleName, Serializable id) throws HibernateException { getSessionFactory().evictCollection(roleName, id); }
public void evictCollection(String roleName, Serializable id) throws HibernateException { getImpl().evictCollection(roleName, id); }
public void evictCollection(String roleName, Serializable id) throws HibernateException { getImpl().evictCollection(roleName, id); }
@Deprecated public void evictCollection(String roleName, Serializable id) throws HibernateException { getCurrentSessionFactory().evictCollection(roleName, id); }
@Deprecated public void evictCollection(String roleName) throws HibernateException { getCurrentSessionFactory().evictCollection(roleName); }
public void evictCollection(String roleName) throws HibernateException { getSessionFactory().evictCollection(roleName); }
public void evictCollection(String roleName, Serializable id) throws HibernateException { getImpl().evictCollection(roleName, id); }
public void evictCollection(String roleName) throws HibernateException { getImpl().evictCollection(roleName); }
public static void clearHibernateCache(SessionFactory sessionFactory) { sessionFactory.evictQueries(); Map classMetadata = sessionFactory.getAllClassMetadata(); for (Iterator iter = classMetadata.keySet().iterator(); iter.hasNext();) { String entityName = (String) iter.next(); sessionFactory.evictEntity(entityName); } Map collectionMetadata = sessionFactory.getAllCollectionMetadata(); for (Iterator iter = collectionMetadata.keySet().iterator(); iter.hasNext();) { String collectionName = (String) iter.next(); sessionFactory.evictCollection(collectionName); } }
protected void evictCacheEntry(String entity, boolean collection) { if (collection) { sessionFactory.evictCollection(entity); } else { Class<?> clazz = SpringUtils.classForName(entity); sessionFactory.evict(clazz); } } }
public static void clearSecondLevelCache(SessionFactory sessionFactory) throws HibernateException { for (String clazz : (Set<String>) sessionFactory.getAllClassMetadata().keySet()) { sessionFactory.evictEntity(clazz); } for (String rolename : (Set<String>) sessionFactory.getAllCollectionMetadata().keySet()) { sessionFactory.evictCollection(rolename); } sessionFactory.evictQueries(); } }