public abstract class Hib3DAO extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
hibernateInitted
keep track of if hibernate is initted yet, allow resets...
|
Constructor and Description |
---|
Hib3DAO() |
Modifier and Type | Method and Description |
---|---|
static void |
evict(Class persistentClass)
evict a persistent class
|
static void |
evictEntity(String entityName)
evict a persistent class
|
static void |
evictQueries(String cacheRegion)
evict a persistent class
|
static org.hibernate.cfg.Configuration |
getConfiguration() |
static void |
initHibernateIfNotInitted()
init hibernate if not initted
|
static String |
resourceNameFromClassName(Class theClass,
String entityNameXmlFileNameOverride)
class is e.g.
|
static org.hibernate.Session |
session()
DONT CALL THIS METHOD, IT IS FOR INTERNAL GROUPER FRAMEWORK USE
ONLY.
|
public static boolean hibernateInitted
public static void initHibernateIfNotInitted()
public static String resourceNameFromClassName(Class theClass, String entityNameXmlFileNameOverride)
theClass
- entityNameXmlFileNameOverride
- pass in an override if the entity name and xml file are different than
the class filepublic static org.hibernate.cfg.Configuration getConfiguration() throws org.hibernate.HibernateException
org.hibernate.HibernateException
public static org.hibernate.Session session() throws org.hibernate.HibernateException
org.hibernate.HibernateException
public static void evict(Class persistentClass)
persistentClass
- public static void evictEntity(String entityName)
entityName
- public static void evictQueries(String cacheRegion)
cacheRegion
- Copyright © 2016 Internet2. All rights reserved.