public abstract class Hib3DAO extends Object
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 org.hibernate.cfg.Configuration |
getConfiguration(String databaseName) |
static org.hibernate.SessionFactory |
getSessionFactory()
DONT CALL THIS METHOD, IT IS FOR INTERNAL GROUPER FRAMEWORK USE
ONLY.
|
static org.hibernate.SessionFactory |
getSessionFactory(String connectionName)
DONT CALL THIS METHOD, IT IS FOR INTERNAL GROUPER FRAMEWORK USE
ONLY.
|
static Map<String,Boolean> |
hibernateInitted() |
static void |
initHibernateIfNotInitted()
init hibernate if not initted
|
static void |
initHibernateIfNotInitted(String connectionName)
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.
|
static org.hibernate.Session |
session(String connectionName)
DONT CALL THIS METHOD, IT IS FOR INTERNAL GROUPER FRAMEWORK USE
ONLY.
|
public static void initHibernateIfNotInitted()
public static void initHibernateIfNotInitted(String connectionName)
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.cfg.Configuration getConfiguration(String databaseName) throws org.hibernate.HibernateException
org.hibernate.HibernateException
public static org.hibernate.Session session()
org.hibernate.HibernateException
public static org.hibernate.Session session(String connectionName) throws org.hibernate.HibernateException
org.hibernate.HibernateException
public static org.hibernate.SessionFactory getSessionFactory()
public static org.hibernate.SessionFactory getSessionFactory(String connectionName)
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.