Package com.saperion.operations
Class ApplyBatch
java.lang.Object
com.lexmark.saperion.remote.common.operations.AbstractOperation<T,SaBasicException,LegacyConnection>
- All Implemented Interfaces:
com.lexmark.saperion.remote.common.operations.Operation<ArrayList<Serializable>,
,SaBasicException, LegacyConnection> Serializable
Invokes a list of commands one after another. Collects the results in a list.
The return value of the
invoke()
method will be an instance of
ArrayList
<Serializable>.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionApplyBatch
(com.lexmark.saperion.remote.common.operations.Operation<? extends Serializable, SaBasicException, LegacyConnection>... batch) Creates an instance of ApplyBatch that will invoke the given operations in the given order.ApplyBatch
(List<com.lexmark.saperion.remote.common.operations.Operation<? extends Serializable, SaBasicException, LegacyConnection>> batch) Creates an instance of ApplyBatch that will invoke the given operations in the given order. -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterInvoke
(Object result, LegacyConnection connection) invoke()
Methods inherited from class com.saperion.operations.LegacyOperation
beforeInvoke, beforeInvoke, getClientToken, mapEcmException, mapException
Methods inherited from class com.lexmark.saperion.remote.common.operations.AbstractOperation
getResult, toArrayList, toCaseInsensitiveMap, toHashMap, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.lexmark.saperion.remote.common.operations.Operation
audit, dispatchEvent, isAuditable, isEventDispatcher
-
Constructor Details
-
ApplyBatch
public ApplyBatch(List<com.lexmark.saperion.remote.common.operations.Operation<? extends Serializable, SaBasicException, LegacyConnection>> batch) Creates an instance of ApplyBatch that will invoke the given operations in the given order.- Parameters:
batch
- The operations in the order to invoke
-
ApplyBatch
public ApplyBatch(com.lexmark.saperion.remote.common.operations.Operation<? extends Serializable, SaBasicException, LegacyConnection>... batch) Creates an instance of ApplyBatch that will invoke the given operations in the given order.- Parameters:
batch
- The operations in the order to invoke
-
-
Method Details
-
invoke
- Throws:
SaBasicException
-
afterInvoke
- Specified by:
afterInvoke
in interfacecom.lexmark.saperion.remote.common.operations.Operation<ArrayList<Serializable>,
SaBasicException, LegacyConnection> - Overrides:
afterInvoke
in classcom.lexmark.saperion.remote.common.operations.AbstractOperation<ArrayList<Serializable>,
SaBasicException, LegacyConnection>
-