coldbox.system.orm.hibernate.util

Class CFORMUtil

WEB-INF.cftags.component
        extended by coldbox.system.orm.hibernate.util.CFORMUtil
Class Attributes:
None
All Implemented Interfaces:
cachebox.build-coldbox.coldbox.system.orm.hibernate.util.IORMUtil

******************************************************************************* Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.coldbox.org | www.luismajano.com | www.ortussolutions.com ******************************************************************************* Author : Luis Majano & Mike McKellip Description : This implementation supports multiple DSNs for ORM a-la Adobe ColdFusion 9 ----------------------------------------------------------------------->

Method Summary
void clearSession([string datasource])
void closeSession([string datasource])
void evictQueries([string cachename], [string datasource])
void flush([string datasource])
string getDefaultDatasource()
     Get the default application datasource.
string getEntityDatasource(any entity)
     Returns the datasource for a given entity.
any getSession([string datasource])
any getSessionFactory([string datasource])
 
Methods inherited from class WEB-INF.cftags.component
None

Method Detail

clearSession

public void clearSession([string datasource])

Specified by:
clearSession in interface cachebox.build-coldbox.coldbox.system.orm.hibernate.util.IORMUtil
Parameters:
datasource

closeSession

public void closeSession([string datasource])

Specified by:
closeSession in interface cachebox.build-coldbox.coldbox.system.orm.hibernate.util.IORMUtil
Parameters:
datasource

evictQueries

public void evictQueries([string cachename], [string datasource])

Specified by:
evictQueries in interface cachebox.build-coldbox.coldbox.system.orm.hibernate.util.IORMUtil
Parameters:
cachename
datasource

flush

public void flush([string datasource])

Specified by:
flush in interface cachebox.build-coldbox.coldbox.system.orm.hibernate.util.IORMUtil
Parameters:
datasource

getDefaultDatasource

public string getDefaultDatasource()

Get the default application datasource

Specified by:
getDefaultDatasource in interface cachebox.build-coldbox.coldbox.system.orm.hibernate.util.IORMUtil

getEntityDatasource

public string getEntityDatasource(any entity)

Returns the datasource for a given entity

Specified by:
getEntityDatasource in interface cachebox.build-coldbox.coldbox.system.orm.hibernate.util.IORMUtil
Parameters:
entity - The entity reference. Can be passed as an object or as the entity name.

getSession

public any getSession([string datasource])

Specified by:
getSession in interface cachebox.build-coldbox.coldbox.system.orm.hibernate.util.IORMUtil
Parameters:
datasource

getSessionFactory

public any getSessionFactory([string datasource])

Specified by:
getSessionFactory in interface cachebox.build-coldbox.coldbox.system.orm.hibernate.util.IORMUtil
Parameters:
datasource