cborm.util

Class ORMUtilSupport

lucee.Component
    extended by cborm.util.ORMUtilSupport

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

Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Method Summary
    void clearSession([string datasource])
         Clear a session.
    void closeSession([string datasource])
         Close a session.
    void evictQueries([string cachename], [string datasource])
         Evict queries.
    void flush([string datasource])
         Flush a datasource.
    string getDefaultDatasource()
         Get the default application datasource.
    string getEntityDatasource(any entity)
         Returns the datasource for a given entity.
    any getSession([string datasource])
         Get session.
    any getSessionFactory([string datasource])
         Get session factory.
     
    Methods inherited from class lucee.Component
    None

    Method Detail

    clearSession

    public void clearSession([string datasource])

    Clear a session

    Parameters:
    datasource

    closeSession

    public void closeSession([string datasource])

    Close a session

    Parameters:
    datasource

    evictQueries

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

    Evict queries

    Parameters:
    cachename
    datasource

    flush

    public void flush([string datasource])

    Flush a datasource

    Parameters:
    datasource

    getDefaultDatasource

    public string getDefaultDatasource()

    Get the default application datasource


    getEntityDatasource

    public string getEntityDatasource(any entity)

    Returns the datasource for a given entity

    Parameters:
    entity - The entity reference. Can be passed as an object or as the entity name.

    getSession

    public any getSession([string datasource])

    Get session

    Parameters:
    datasource

    getSessionFactory

    public any getSessionFactory([string datasource])

    Get session factory

    Parameters:
    datasource