contentbox.modules.contentbox-deps.modules.cborm.aop

Class HibernateTransaction

lucee.Component
    extended by contentbox.modules.contentbox-deps.modules.cborm.aop.HibernateTransaction
All Implemented Interfaces:
coldbox.system.aop.MethodInterceptor

Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com This interceptor will inspect objects for the 'transactional' annotation and if found, it will wrap it in a transaction safe hibernate transaction. This aspect is a self binding aspect for WireBox that registers itself using the two annotations below The transactional annotation can have a value if you are using multi-datasources with ORM. The value of the transactional annotation denotes the dsn.

Class Attributes:
  • methodmatcher : annotatedWith:transactional
  •  
  • classmatcher : any
  •  
  • synchronized : false
  •  
  • accessors : true
  •  
  • persistent : false
  •  
  • author : Luis Majano
  •  
  • description : A cool annotation based Transaction Aspect for WireBox
  •  
    Property Summary
    type property default serializable required
    any log


    • access = public
    • returntype = any
    • inject = logbox:logger:{this}
    true false
    Constructor Summary
    init()
          Constructor.
    Method Summary
    string getLog()
    any invokeMethod(any invocation)
         The AOP around advice for hibernate transactions.
    any setLog(any log)
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()

    Constructor


    Property Detail

    log

    property any log

    Attributes:
    access - public
    required - false
    returntype - any
    inject - logbox:logger:{this}
    serializable - true

    Method Detail

    getLog

    public string getLog()


    invokeMethod

    public any invokeMethod(any invocation)

    The AOP around advice for hibernate transactions

    Specified by:
    invokeMethod in interface coldbox.system.aop.MethodInterceptor
    Parameters:
    invocation

    setLog

    public any setLog(any log)

    Parameters:
    log