T - public class PhynixxXAResourceFactory<T extends IPhynixxConnection> extends Object implements IPhynixxXAResourceFactory<T>, IPhynixxXAResourceListener<T>
IPhynixxXAResourceListener.IPhynixxXAResourceEvent<T extends IPhynixxConnection>| Constructor and Description |
|---|
PhynixxXAResourceFactory(IPhynixxManagedConnectionFactory<T> connectionFactory,
TransactionManager transactionManager) |
PhynixxXAResourceFactory(Object id,
IPhynixxManagedConnectionFactory<T> connectionFactory,
TransactionManager transactionManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes all pending XAResources and all reopen but unused connections
|
void |
closed(IPhynixxXAResourceListener.IPhynixxXAResourceEvent<T> event) |
T |
getConnection()
gets an new instance of the connection
|
Class<T> |
getConnectionInterface() |
String |
getId() |
protected IResourceIDGenerator |
getIdGenerator() |
IPhynixxManagedConnectionFactory<T> |
getManagedConnectionFactory() |
TransactionManager |
getTransactionManager() |
protected Set<PhynixxXAResource<T>> |
getUnreleasedXAResources() |
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) |
public PhynixxXAResourceFactory(IPhynixxManagedConnectionFactory<T> connectionFactory, TransactionManager transactionManager)
public PhynixxXAResourceFactory(Object id, IPhynixxManagedConnectionFactory<T> connectionFactory, TransactionManager transactionManager)
public boolean isSupportsTimeOut()
public void setSupportsTimeOut(boolean supportsTimeOut)
public String getId()
public IPhynixxManagedConnectionFactory<T> getManagedConnectionFactory()
public TransactionManager getTransactionManager()
protected IResourceIDGenerator getIdGenerator()
protected static void setIdGenerator(IResourceIDGenerator idGenerator)
public IPhynixxXAConnection<T> getXAConnection()
public IPhynixxXAResource<T> getXAResource()
getXAResource in interface IPhynixxXAResourceFactory<T extends IPhynixxConnection>public void closed(IPhynixxXAResourceListener.IPhynixxXAResourceEvent<T> event)
closed in interface IPhynixxXAResourceListener<T extends IPhynixxConnection>public Xid[] recover()
recover in interface IPhynixxXAResourceFactory<T extends IPhynixxConnection>public void close()
close in interface IPhynixxConnectionFactory<T extends IPhynixxConnection>close in interface IPhynixxXAResourceFactory<T extends IPhynixxConnection>public T getConnection()
IPhynixxConnectionFactorygetConnection in interface IPhynixxConnectionFactory<T extends IPhynixxConnection>public Class<T> getConnectionInterface()
getConnectionInterface in interface IPhynixxConnectionFactory<T extends IPhynixxConnection>protected Set<PhynixxXAResource<T>> getUnreleasedXAResources()
Copyright © 2017. All rights reserved.