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 TypeMethodDescriptionvoidafterInvoke(Object result, LegacyConnection connection) invoke()Methods inherited from class com.saperion.operations.LegacyOperation
beforeInvoke, beforeInvoke, getClientToken, mapEcmException, mapExceptionMethods inherited from class com.lexmark.saperion.remote.common.operations.AbstractOperation
getResult, toArrayList, toCaseInsensitiveMap, toHashMap, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
afterInvokein interfacecom.lexmark.saperion.remote.common.operations.Operation<ArrayList<Serializable>,SaBasicException, LegacyConnection> - Overrides:
afterInvokein classcom.lexmark.saperion.remote.common.operations.AbstractOperation<ArrayList<Serializable>,SaBasicException, LegacyConnection>
-