|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.acmsl.queryj.dao.TransactionTokenFactory
Has the responsibility of creating transaction tokens. Right now, it follows the FactoryMethod pattern, but could be refactored as an abstract factory as new technologies are supported.
Constructor Summary | |
protected |
TransactionTokenFactory()
Protected constructor to avoid accidental instantiation. |
Method Summary | |
static DataSourceTransactionToken |
createTransactionToken(javax.sql.DataSource dataSource)
Creates a SingleConnectionTransactionToken using given connection. |
static TransactionTokenFactory |
getInstance()
Retrieves a TransactionTokenFactory instance. |
protected static java.lang.ref.WeakReference |
getReference()
Retrieves the weak reference. |
protected static void |
setReference(TransactionTokenFactory factory)
Specifies a new weak reference. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected TransactionTokenFactory()
Method Detail |
protected static void setReference(TransactionTokenFactory factory)
factory
- the factory instance to use.protected static java.lang.ref.WeakReference getReference()
public static TransactionTokenFactory getInstance()
public static DataSourceTransactionToken createTransactionToken(javax.sql.DataSource dataSource)
dataSource
- the data source to use inside the same transaction.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |