ColdBox Platform v3.8.0

coldbox.system.aop.aspects
Class HibernateTransaction

WEB-INF.cftags.component
        extended by coldbox.system.aop.aspects.HibernateTransaction
All Implemented Interfaces:
MethodInterceptor

public class HibernateTransaction
extends WEB-INF.cftags.component

******************************************************************************* Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.coldbox.org | www.luismajano.com | 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.

Property Summary
Type Property & Description Default Serializable Required
 any log


Attributes:
  • inject = logbox:logger:{this}
true false
 
Constructor Summary
init()
          Constructor
 
Method Summary
 any GETLOG()
 HibernateTransaction SETLOG(any log)
 any invokeMethod(any invocation)
          The AOP around advice for hibernate transactions
 
Methods inherited from class WEB-INF.cftags.component
None
 

Constructor Detail

init

public init()
Constructor

Property Detail

log

any log

Attributes:
inject - logbox:logger:{this}
required - false
serializable - true
default -

Method Detail

GETLOG

public any GETLOG()


SETLOG

public HibernateTransaction SETLOG(any log)

Parameters:
log

invokeMethod

public any invokeMethod(any invocation)
The AOP around advice for hibernate transactions

Specified by:
invokeMethod in interface MethodInterceptor
Parameters:
invocation

ColdBox Platform v3.8.0