contentbox.models.system

Class EventHandler

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

ContentBox - A Modular Content Platform Copyright 2012 by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com Apache License, Version 2.0 Copyright Since [2012] [Luis Majano and Ortus Solutions,Corp] Licensed under the Apache License, Version 2.0 (the "License" ); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.coldbox.org | www.luismajano.com | www.ortussolutions.com Author : Luis Majano Date : 10/16/2007 Description : A ColdBox Enabled Hibernate Event Handler that ties to the ColdBox proxy for ColdBox Operations.

Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Method Summary
    any getEventManager()
         Get the system Event Manager.
    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.
    any processEntityInjection(any entityName, any entity)
         process entity injection.
     
    Methods inherited from class cborm.models.EventHandler
    None
     
    Methods inherited from class coldbox.system.remote.ColdboxProxy
    announce, announceInterception, getCOLDBOX_APP_KEY, getCache, getCacheBox, getColdboxAppKey, getController, getInstance, getInterceptor, getLogBox, getLogger, 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

    Overrides:
    getEventManager in class cborm.models.EventHandler

    postDelete

    public void postDelete([any entity])

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

    Overrides:
    postDelete in class cborm.models.EventHandler
    Parameters:
    entity

    postFlush

    public void postFlush([any entities])

    Called after the session is flushed.

    Overrides:
    postFlush in class cborm.models.EventHandler
    Parameters:
    entities

    postInsert

    public void postInsert([any entity])

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

    Overrides:
    postInsert in class cborm.models.EventHandler
    Parameters:
    entity

    postLoad

    public void postLoad([any entity])

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

    Overrides:
    postLoad in class cborm.models.EventHandler
    Parameters:
    entity

    postNew

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

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

    Overrides:
    postNew in class cborm.models.EventHandler
    Parameters:
    entity
    entityName

    postSave

    public void postSave([any entity])

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

    Overrides:
    postSave in class cborm.models.EventHandler
    Parameters:
    entity

    postUpdate

    public void postUpdate([any entity])

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

    Overrides:
    postUpdate in class cborm.models.EventHandler
    Parameters:
    entity

    preDelete

    public void preDelete([any entity])

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

    Overrides:
    preDelete in class cborm.models.EventHandler
    Parameters:
    entity

    preFlush

    public void preFlush([any entities])

    Called before the session is flushed.

    Overrides:
    preFlush in class cborm.models.EventHandler
    Parameters:
    entities

    preInsert

    public void preInsert([any entity])

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

    Overrides:
    preInsert in class cborm.models.EventHandler
    Parameters:
    entity

    preLoad

    public void preLoad([any entity])

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

    Overrides:
    preLoad in class cborm.models.EventHandler
    Parameters:
    entity

    preSave

    public void preSave([any entity])

    preSave called by ColdBox Base service before save() calls

    Overrides:
    preSave in class cborm.models.EventHandler
    Parameters:
    entity

    preUpdate

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

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

    Overrides:
    preUpdate in class cborm.models.EventHandler
    Parameters:
    entity
    oldData

    processEntityInjection

    public any processEntityInjection(any entityName, any entity)

    process entity injection

    Overrides:
    processEntityInjection in class cborm.models.EventHandler
    Parameters:
    entityName - the entity to process, we use hash codes to identify builders
    entity - The entity object
    Returns:
    The processed entity