org.springframework.extensions.jcr.jackrabbit.support
Class UserTxSessionHolder

java.lang.Object
  extended by org.springframework.transaction.support.ResourceHolderSupport
      extended by org.springframework.extensions.jcr.SessionHolder
          extended by org.springframework.extensions.jcr.jackrabbit.support.UserTxSessionHolder
All Implemented Interfaces:
org.springframework.transaction.support.ResourceHolder

public class UserTxSessionHolder
extends SessionHolder

Extension of Session Holder which includes a UserTransaction which handles the XASession returned by the JackRabbit repository implementation.

Author:
Costin Leau, Sergio Bossa, Salvatore Incandela
See Also:
JackRabbitUserTransaction

Constructor Summary
UserTxSessionHolder(javax.jcr.Session session)
           
 
Method Summary
 void clear()
           
 javax.transaction.UserTransaction getTransaction()
           
 void setSession(javax.jcr.Session session)
           
 
Methods inherited from class org.springframework.extensions.jcr.SessionHolder
getSession
 
Methods inherited from class org.springframework.transaction.support.ResourceHolderSupport
getDeadline, getTimeToLiveInMillis, getTimeToLiveInSeconds, hasTimeout, isOpen, isRollbackOnly, isSynchronizedWithTransaction, isVoid, released, requested, reset, setRollbackOnly, setSynchronizedWithTransaction, setTimeoutInMillis, setTimeoutInSeconds, unbound
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserTxSessionHolder

public UserTxSessionHolder(javax.jcr.Session session)
Parameters:
session -
Method Detail

getTransaction

public javax.transaction.UserTransaction getTransaction()
Returns:
Returns the transaction.

setSession

public void setSession(javax.jcr.Session session)
Overrides:
setSession in class SessionHolder
See Also:
SessionHolder.setSession(javax.jcr.Session)

clear

public void clear()
Overrides:
clear in class SessionHolder
See Also:
ResourceHolderSupport.clear()


Copyright © 2009. All Rights Reserved.