|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.transaction.PortalTransactionFactory
@StableMinor(version="5.5", sinceVersion="4.0") public class PortalTransactionFactory
Factory for obtaining ITransaction
instances.
lumis.portal.transaction
,
ITransaction
Constructor Summary | |
---|---|
PortalTransactionFactory()
|
Method Summary | |
---|---|
static ITransaction |
createTransaction()
Creates a new transaction object, associating it to the current thread. |
static ITransaction |
createTransaction(boolean associateToThread)
Creates a new transaction object, optionally associating it to the current thread. |
static ITransaction |
getCurrentTransaction()
Returns the transaction associated with the current thread. |
static ITransaction |
getTransaction()
Deprecated. Since 4.2.0, replaced by createTransaction()
and getCurrentTransaction() . Current implementation behaves as
createTransaction() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PortalTransactionFactory()
Method Detail |
---|
@Deprecated public static ITransaction getTransaction() throws PortalException
createTransaction()
and getCurrentTransaction()
. Current implementation behaves as
createTransaction()
.
PortalException
public static ITransaction createTransaction()
The ITransaction.dispose()
method of the returned transaction
must be called after it is used. See code example in
lumis.portal.transaction
.
createTransaction(boolean)
,
getCurrentTransaction()
public static ITransaction createTransaction(boolean associateToThread)
The ITransaction.dispose()
method of the returned transaction
must be called after it is used. See code example in
lumis.portal.transaction
.
associateToThread
- if true, the created transaction will become
the active transaction for the current thread. After the created
transaction is disposed, the previously active transaction will become
active.
createTransaction()
,
getCurrentTransaction()
public static ITransaction getCurrentTransaction() throws TransactionRequiredException
TransactionRequiredException
- if there is no transaction associated
with the current thread.createTransaction()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |