Package com.saperion.operations
Class ApplyBatch
- java.lang.Object
-
- com.lexmark.saperion.remote.common.operations.AbstractOperation<T,SaBasicException,LegacyConnection>
-
- com.saperion.operations.LegacyOperation<java.util.ArrayList<java.io.Serializable>>
-
- com.saperion.operations.ApplyBatch
-
- All Implemented Interfaces:
com.lexmark.saperion.remote.common.operations.Operation<java.util.ArrayList<java.io.Serializable>,SaBasicException,LegacyConnection>
,java.io.Serializable
public class ApplyBatch extends LegacyOperation<java.util.ArrayList<java.io.Serializable>>
Invokes a list of commands one after another. Collects the results in a list. The return value of theinvoke()
method will be an instance ofArrayList
<Serializable>.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ApplyBatch(com.lexmark.saperion.remote.common.operations.Operation<? extends java.io.Serializable,SaBasicException,LegacyConnection>... batch)
Creates an instance of ApplyBatch that will invoke the given operations in the given order.ApplyBatch(java.util.List<com.lexmark.saperion.remote.common.operations.Operation<? extends java.io.Serializable,SaBasicException,LegacyConnection>> batch)
Creates an instance of ApplyBatch that will invoke the given operations in the given order.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterInvoke(java.lang.Object result, LegacyConnection connection)
java.util.ArrayList<java.io.Serializable>
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
-
-
-
-
Constructor Detail
-
ApplyBatch
public ApplyBatch(java.util.List<com.lexmark.saperion.remote.common.operations.Operation<? extends java.io.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 java.io.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 Detail
-
invoke
public java.util.ArrayList<java.io.Serializable> invoke() throws SaBasicException
- Throws:
SaBasicException
-
afterInvoke
public void afterInvoke(java.lang.Object result, LegacyConnection connection)
- Specified by:
afterInvoke
in interfacecom.lexmark.saperion.remote.common.operations.Operation<java.util.ArrayList<java.io.Serializable>,SaBasicException,LegacyConnection>
- Overrides:
afterInvoke
in classcom.lexmark.saperion.remote.common.operations.AbstractOperation<java.util.ArrayList<java.io.Serializable>,SaBasicException,LegacyConnection>
-
-