lumis.portal.dao.hibernate
Class HibernateUtil

Package class diagram package HibernateUtil
java.lang.Object
  extended by lumis.portal.dao.hibernate.HibernateUtil

public class HibernateUtil
extends Object

A utility class for using hibernate.

Since:
4.0.5

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

HibernateUtil

public HibernateUtil()
Method Detail

getSessionFactory

public static org.hibernate.SessionFactory getSessionFactory()
Returns the default session factory, that access the portal's main database.

Returns:
the session factory.

getSessionFactory

public static org.hibernate.SessionFactory getSessionFactory(String sessionFactoryId)
Returns the session factory associated with the given id.

Parameters:
sessionFactoryId - the id that identifies the session factory.
Returns:
the session factory.
Since:
4.0.4

dataTypeToHibernateType

public 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.

Parameters:
dataType - the lumis field data type.
Returns:
the hibernate type, or null if an appropriate hibernate type was not found.

isInitialized

public static boolean isInitialized()
Indicates if the portal's hibernate infra-structure has been initialized.

Returns:
true if initialized, false otherwise.
Since:
4.0.11

init

public static void init()

destroy

public static void destroy()


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.