|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.dao.hibernate.HibernateUtil
public class HibernateUtil
A utility class for using hibernate.
Constructor Summary | |
---|---|
HibernateUtil()
|
Method Summary | |
---|---|
static org.hibernate.type.NullableType |
dataTypeToHibernateType(String dataType)
Returns the hibernate type to be used to read/write to the given lumis field data type. |
static void |
destroy()
|
static org.hibernate.SessionFactory |
getSessionFactory()
Returns the default session factory, that access the portal's main database. |
static org.hibernate.SessionFactory |
getSessionFactory(String sessionFactoryId)
Returns the session factory associated with the given id. |
static void |
init()
|
static boolean |
isInitialized()
Indicates if the portal's hibernate infra-structure has been initialized. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HibernateUtil()
Method Detail |
---|
public static org.hibernate.SessionFactory getSessionFactory()
public static org.hibernate.SessionFactory getSessionFactory(String sessionFactoryId)
sessionFactoryId
- the id that identifies the session factory.
public static org.hibernate.type.NullableType dataTypeToHibernateType(String dataType)
dataType
- the lumis field data type.
public static boolean isInitialized()
true
if initialized, false
otherwise.public static void init()
public static void destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |