org.csc.phynixx.xa
Class PhynixxXAResourceFactory<T extends IPhynixxConnection>
java.lang.Object
org.csc.phynixx.xa.PhynixxXAResourceFactory<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
- IPhynixxConnectionFactory<T>, IPhynixxXAResourceFactory<T>, IPhynixxXAResourceListener<T>
public class PhynixxXAResourceFactory<T extends IPhynixxConnection>
- extends Object
- implements IPhynixxXAResourceFactory<T>, IPhynixxXAResourceListener<T>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PhynixxXAResourceFactory
public PhynixxXAResourceFactory(IPhynixxManagedConnectionFactory<T> connectionFactory,
TransactionManager transactionManager)
PhynixxXAResourceFactory
public PhynixxXAResourceFactory(Object id,
IPhynixxManagedConnectionFactory<T> connectionFactory,
TransactionManager transactionManager)
isSupportsTimeOut
public boolean isSupportsTimeOut()
setSupportsTimeOut
public void setSupportsTimeOut(boolean supportsTimeOut)
getId
public String getId()
getManagedConnectionFactory
public IPhynixxManagedConnectionFactory<T> getManagedConnectionFactory()
getTransactionManager
public TransactionManager getTransactionManager()
getIdGenerator
protected IResourceIDGenerator getIdGenerator()
setIdGenerator
protected static void setIdGenerator(IResourceIDGenerator idGenerator)
getXAConnection
public IPhynixxXAConnection<T> getXAConnection()
getXAResource
public IPhynixxXAResource<T> getXAResource()
- erzeugt eine neue XAResource ...
- Specified by:
getXAResource
in interface IPhynixxXAResourceFactory<T extends IPhynixxConnection>
- Returns:
closed
public void closed(IPhynixxXAResourceListener.IPhynixxXAResourceEvent event)
- Specified by:
closed
in interface IPhynixxXAResourceListener<T extends IPhynixxConnection>
recover
public Xid[] recover()
- resource factory represents the persistence management system and is responsible
to implements system recovery
Subclasses have to implement die recovery
- Specified by:
recover
in interface IPhynixxXAResourceFactory<T extends IPhynixxConnection>
- Returns:
- recovered TX
TODO recover still to be implemented
close
public void close()
- Closes all pending XAResources and all reopen but unused connections
- Specified by:
close
in interface IPhynixxConnectionFactory<T extends IPhynixxConnection>
- Specified by:
close
in interface IPhynixxXAResourceFactory<T extends IPhynixxConnection>
getConnection
public T getConnection()
- Specified by:
getConnection
in interface IPhynixxConnectionFactory<T extends IPhynixxConnection>
getConnectionInterface
public Class<T> getConnectionInterface()
- Specified by:
getConnectionInterface
in interface IPhynixxConnectionFactory<T extends IPhynixxConnection>
Copyright © 2015. All rights reserved.