T
- public class InTransaction<T extends Serializable> extends LegacyOperation<T>
Operation
in a transaction. Useful in combination with ApplyBatch
.Constructor and Description |
---|
InTransaction(com.lexmark.saperion.remote.common.operations.Operation<T,SaBasicException,LegacyConnection> toInvoke)
Creates a new instance of InTransaction that invokes the given
Operation inside a
new database transaction. |
Modifier and Type | Method and Description |
---|---|
void |
afterInvoke(Object result,
LegacyConnection connection) |
T |
getResult() |
T |
invoke() |
beforeInvoke, beforeInvoke, getClientToken, mapEcmException, mapException
toArrayList, toCaseInsensitiveMap, toHashMap, toString
public InTransaction(com.lexmark.saperion.remote.common.operations.Operation<T,SaBasicException,LegacyConnection> toInvoke)
Operation
inside a
new database transaction.toInvoke
- The Operation
to invoke. Use ApplyBatch
as parameter to
apply a batch in a transaction.public T invoke() throws SaBasicException
SaBasicException
public void afterInvoke(Object result, LegacyConnection connection)
afterInvoke
in interface com.lexmark.saperion.remote.common.operations.Operation<T extends Serializable,SaBasicException,LegacyConnection>
afterInvoke
in class com.lexmark.saperion.remote.common.operations.AbstractOperation<T extends Serializable,SaBasicException,LegacyConnection>
public T getResult()
getResult
in interface com.lexmark.saperion.remote.common.operations.Operation<T extends Serializable,SaBasicException,LegacyConnection>
getResult
in class com.lexmark.saperion.remote.common.operations.AbstractOperation<T extends Serializable,SaBasicException,LegacyConnection>
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.