contentbox.modules.contentbox-deps.modules.cborm.models

Class EventHandler

lucee.Component
    extended by coldbox.system.remote.ColdboxProxy
      extended by contentbox.modules.contentbox-deps.modules.cborm.models.EventHandler

Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com Author : Luis Majano Date : 10/16/2007 Description : Generic Hibernate Event Handler that ties to the ColdBox proxy for ColdBox Operations. This is just a base class you can inherit from to give you access to your ColdBox Application and the CF9 ORM event handler methods. Then you just need to use a la carte. We also execute interception points that match the ORM events so you can eaisly chain ORM interceptions.

Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Method Summary
    any getEventManager()
         Get the system Event Manager.
    private any getORMUtil()
         Get ORM Util.
    void postDelete([any entity])
         postDelete called by hibernate which in turn announces a coldbox interception: ORMPostDelete.
    void postFlush([any entities])
         Called after the session is flushed.
    void postInsert([any entity])
         postInsert called by hibernate which in turn announces a coldbox interception: ORMPostInsert.
    void postLoad([any entity])
         postLoad called by hibernate which in turn announces a coldbox interception: ORMPostLoad.
    void postNew([any entity], [any entityName])
         postNew called by ColdBox which in turn announces a coldbox interception: ORMPostNew.
    void postSave([any entity])
         postSave called by ColdBox Base service after transaction commit or rollback via the save() method.
    void postUpdate([any entity])
         postUpdate called by hibernate which in turn announces a coldbox interception: ORMPostUpdate.
    void preDelete([any entity])
         preDelete called by hibernate which in turn announces a coldbox interception: ORMPreDelete.
    void preFlush([any entities])
         Called before the session is flushed.
    void preInsert([any entity])
         preInsert called by hibernate which in turn announces a coldbox interception: ORMPreInsert.
    void preLoad([any entity])
         preLoad called by hibernate which in turn announces a coldbox interception: ORMPreLoad.
    void preSave([any entity])
         preSave called by ColdBox Base service before save() calls.
    void preUpdate([any entity], [struct oldData='[runtime expression]'])
         preUpdate called by hibernate which in turn announces a coldbox interception: ORMPreUpdate.
    private any processEntityInjection(any entityName, any entity)
         process entity injection.
     
    Methods inherited from class coldbox.system.remote.ColdboxProxy
    announceInterception, getCache, getCacheBox, getController, getInstance, getInterceptor, getLogBox, getLogger, getModel, getMyPlugin, getPlugin, getRemotingUtil, getRootLogger, getUtil, getWireBox, handleException, loadColdbox, process, selfAutowire, setCOLDBOX_APP_KEY, verifyColdBox
     
    Methods inherited from class lucee.Component
    None

    Method Detail

    getEventManager

    public any getEventManager()

    Get the system Event Manager


    getORMUtil

    private any getORMUtil()

    Get ORM Util


    postDelete

    public void postDelete([any entity])

    postDelete called by hibernate which in turn announces a coldbox interception: ORMPostDelete

    Parameters:
    entity

    postFlush

    public void postFlush([any entities])

    Called after the session is flushed.

    Parameters:
    entities

    postInsert

    public void postInsert([any entity])

    postInsert called by hibernate which in turn announces a coldbox interception: ORMPostInsert

    Parameters:
    entity

    postLoad

    public void postLoad([any entity])

    postLoad called by hibernate which in turn announces a coldbox interception: ORMPostLoad

    Parameters:
    entity

    postNew

    public void postNew([any entity], [any entityName])

    postNew called by ColdBox which in turn announces a coldbox interception: ORMPostNew

    Parameters:
    entity
    entityName

    postSave

    public void postSave([any entity])

    postSave called by ColdBox Base service after transaction commit or rollback via the save() method

    Parameters:
    entity

    postUpdate

    public void postUpdate([any entity])

    postUpdate called by hibernate which in turn announces a coldbox interception: ORMPostUpdate

    Parameters:
    entity

    preDelete

    public void preDelete([any entity])

    preDelete called by hibernate which in turn announces a coldbox interception: ORMPreDelete

    Parameters:
    entity

    preFlush

    public void preFlush([any entities])

    Called before the session is flushed.

    Parameters:
    entities

    preInsert

    public void preInsert([any entity])

    preInsert called by hibernate which in turn announces a coldbox interception: ORMPreInsert

    Parameters:
    entity

    preLoad

    public void preLoad([any entity])

    preLoad called by hibernate which in turn announces a coldbox interception: ORMPreLoad

    Parameters:
    entity

    preSave

    public void preSave([any entity])

    preSave called by ColdBox Base service before save() calls

    Parameters:
    entity

    preUpdate

    public void preUpdate([any entity], [struct oldData='[runtime expression]'])

    preUpdate called by hibernate which in turn announces a coldbox interception: ORMPreUpdate

    Parameters:
    entity
    oldData

    processEntityInjection

    private any processEntityInjection(any entityName, any entity)

    process entity injection

    Parameters:
    entityName
    entity