Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.api
Class TransactionalCoreSessionWrapper

java.lang.Object
  extended by org.nuxeo.ecm.core.api.TransactionalCoreSessionWrapper
All Implemented Interfaces:
java.lang.reflect.InvocationHandler, javax.transaction.Synchronization

public class TransactionalCoreSessionWrapper
extends java.lang.Object
implements java.lang.reflect.InvocationHandler, javax.transaction.Synchronization

Wrapper around a CoreSession that gives it transactional behavior.

Transactional behavior:


Method Summary
 void afterCompletion(int status)
           
 void beforeCompletion()
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 java.lang.String toString()
           
static CoreSession wrap(CoreSession session)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

wrap

public static CoreSession wrap(CoreSession session)

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable

beforeCompletion

public void beforeCompletion()
Specified by:
beforeCompletion in interface javax.transaction.Synchronization

afterCompletion

public void afterCompletion(int status)
Specified by:
afterCompletion in interface javax.transaction.Synchronization

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.