org.csc.phynixx.xa
Class PhynixxXAResourceFactory<T extends IPhynixxConnection>

java.lang.Object
  extended by 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>


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.csc.phynixx.xa.IPhynixxXAResourceListener
IPhynixxXAResourceListener.IPhynixxXAResourceEvent<T extends IPhynixxConnection>
 
Constructor Summary
PhynixxXAResourceFactory(IPhynixxManagedConnectionFactory<T> connectionFactory, TransactionManager transactionManager)
           
PhynixxXAResourceFactory(Object id, IPhynixxManagedConnectionFactory<T> connectionFactory, TransactionManager transactionManager)
           
 
Method Summary
 void close()
          Closes all pending XAResources and all reopen but unused connections
 void closed(IPhynixxXAResourceListener.IPhynixxXAResourceEvent event)
           
 T getConnection()
           
 Class<T> getConnectionInterface()
           
 String getId()
           
protected  IResourceIDGenerator getIdGenerator()
           
 IPhynixxManagedConnectionFactory<T> getManagedConnectionFactory()
           
 TransactionManager getTransactionManager()
           
 IPhynixxXAConnection<T> getXAConnection()
           
 IPhynixxXAResource<T> getXAResource()
          erzeugt eine neue XAResource ...
 boolean isSupportsTimeOut()
           
 Xid[] recover()
          resource factory represents the persistence management system and is responsible to implements system recovery Subclasses have to implement die recovery
protected static void setIdGenerator(IResourceIDGenerator idGenerator)
           
 void setSupportsTimeOut(boolean supportsTimeOut)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhynixxXAResourceFactory

public PhynixxXAResourceFactory(IPhynixxManagedConnectionFactory<T> connectionFactory,
                                TransactionManager transactionManager)

PhynixxXAResourceFactory

public PhynixxXAResourceFactory(Object id,
                                IPhynixxManagedConnectionFactory<T> connectionFactory,
                                TransactionManager transactionManager)
Method Detail

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.