ehcache

net.sf.ehcache.transaction.manager.btm
Class EhCacheXAResourceHolder

java.lang.Object
  extended by AbstractXAResourceHolder
      extended by net.sf.ehcache.transaction.manager.btm.EhCacheXAResourceHolder

public class EhCacheXAResourceHolder
extends AbstractXAResourceHolder

EHCache implementation of BTM's XAResourceHolder

Author:
lorban

Constructor Summary
EhCacheXAResourceHolder(javax.transaction.xa.XAResource resource, ResourceBean bean)
          Create a new EhCacheXAResourceHolder for a particular XAResource
 
Method Summary
 void close()
          
 java.lang.Object getConnectionHandle()
          
 java.util.Date getLastReleaseDate()
          
 ResourceBean getResourceBean()
          Deprecated. for compatibility with pre-2.0.0 version of BTM
 javax.transaction.xa.XAResource getXAResource()
          
 java.util.List getXAResourceHolders()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EhCacheXAResourceHolder

public EhCacheXAResourceHolder(javax.transaction.xa.XAResource resource,
                               ResourceBean bean)
Create a new EhCacheXAResourceHolder for a particular XAResource

Parameters:
resource - the required XAResource
bean - the required ResourceBean
Method Detail

getXAResource

public javax.transaction.xa.XAResource getXAResource()


getResourceBean

@Deprecated
public ResourceBean getResourceBean()
Deprecated. for compatibility with pre-2.0.0 version of BTM

Method is only there to remain compatible with pre-2.0.0 version of BTM

Returns:
the ResourceBean associated with this Resource

close

public void close()
           throws java.lang.Exception

Throws:
java.lang.Exception

getConnectionHandle

public java.lang.Object getConnectionHandle()
                                     throws java.lang.Exception

Throws:
java.lang.Exception

getLastReleaseDate

public java.util.Date getLastReleaseDate()


getXAResourceHolders

public java.util.List getXAResourceHolders()


ehcache

true