| java.lang.Object org.wso2.esb.util.HibernateConfig
HibernateConfig | public class HibernateConfig (Code) | | A utility for managing Hibernate Configuration related stuff.
We should maintain only one instance of getHibernateConfig within WSO2 ESB admin.
Each of the modules/services deployed should also maintain there own single instance
|
Constructor Summary | |
public | HibernateConfig(String dbConnIdentifier, String dbDriver, String sqlDialect, String username, String password, Class[] dataObjects) Constructor for initializing this Object providing the DB Connection Identifier
(dbConnIdentifier ), and the the Hibernate Data Object classes
(dataObjects ), along with other DB parameters.
Parameters: dbConnIdentifier - The database connection identifier.Can be a DB URL or a Datasource JNDI name. | public | HibernateConfig(String dbConnIdentifier, String dbDriver, String sqlDialect, String username, String password, String[] hbmXMLFilenames) Constructor for initializing this Object providing the DB Connection Identifier
(dbConnIdentifier ), and the the Hibernate hbm XML filenames
(hbmXMLFilenames ), along with other DB parameters.
Parameters: dbConnIdentifier - The database connection identifier.Can be a DB URL or a Datasource JNDI name. | public | HibernateConfig(String conFigFileName) Default Constructor. |
HibernateConfig | public HibernateConfig(String dbConnIdentifier, String dbDriver, String sqlDialect, String username, String password, Class[] dataObjects)(Code) | | Constructor for initializing this Object providing the DB Connection Identifier
(dbConnIdentifier ), and the the Hibernate Data Object classes
(dataObjects ), along with other DB parameters.
Parameters: dbConnIdentifier - The database connection identifier.Can be a DB URL or a Datasource JNDI name. If it is a Datsource JNDI name,it should start with java:comp.This is a required parameter
Parameters: dbDriver - The fully qualified DB driver class name.This is a required parameter
Parameters: sqlDialect - The hibernate SQL dialect for the specifed RDBMS.This is a required parameter
Parameters: username - The username to connect to the DB
Parameters: password - The password corresponding to the username
Parameters: dataObjects - Array of Hibernate Data Object Classes.This is a required parameter
|
HibernateConfig | public HibernateConfig(String dbConnIdentifier, String dbDriver, String sqlDialect, String username, String password, String[] hbmXMLFilenames)(Code) | | Constructor for initializing this Object providing the DB Connection Identifier
(dbConnIdentifier ), and the the Hibernate hbm XML filenames
(hbmXMLFilenames ), along with other DB parameters.
Parameters: dbConnIdentifier - The database connection identifier.Can be a DB URL or a Datasource JNDI name. If it is a Datsource JNDI name,it should start with java:comp.This is a required parameter
Parameters: dbDriver - The fully qualified DB driver class name.This is a required parameter
Parameters: sqlDialect - The hibernate SQL dialect for the specifed RDBMS.This is a required parameter
Parameters: username - The username to connect to the DB
Parameters: password - The password corresponding to the username
Parameters: hbmXMLFilenames - Array of Hibernate hbm XML Filenames.This is a required parameter
|
HibernateConfig | public HibernateConfig(String conFigFileName)(Code) | | Default Constructor. This should be package protected since we should only instantiate it
through it HibernateConfigCache
This will pickup hibernate.cfg.xml from the classpath
and load the configuration from this file.
Parameters: conFigFileName - hibernate.cfg.xml - hibernate configuration file |
closeSession | public void closeSession() throws HibernateException(Code) | | |
currentSession | public Session currentSession() throws HibernateException(Code) | | |
|
|