@StableMinor(version="12.4", sinceVersion="4.0") public class PortalTransactionFactory extends Object
ITransaction
instances.lumis.portal.transaction
,
ITransaction
Constructor and Description |
---|
PortalTransactionFactory() |
Modifier and Type | Method and Description |
---|---|
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() . |
@Deprecated public static ITransaction getTransaction() throws PortalException
createTransaction()
and getCurrentTransaction()
. Current implementation behaves as
createTransaction()
.PortalException
public static ITransaction createTransaction()
The ITransaction.close()
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.close()
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()
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.