Package com.saperion.operations
Class ExecuteStoredProcedure
- java.lang.Object
-
- com.lexmark.saperion.remote.common.operations.AbstractOperation<T,SaBasicException,LegacyConnection>
-
- com.saperion.operations.LegacyOperation<com.lexmark.saperion.remote.common.operations.Void>
-
- com.saperion.operations.VoidOperation
-
- com.saperion.operations.ExecuteStoredProcedure
-
- All Implemented Interfaces:
com.lexmark.saperion.remote.common.operations.Operation<com.lexmark.saperion.remote.common.operations.Void,SaBasicException,LegacyConnection>,java.io.Serializable
public class ExecuteStoredProcedure extends VoidOperation
Executes a stored procedure on the database. Allows neither return value nor var parameters. Input parameters are allowed and are mapped as follows:long INT integer INT short INT byte INT double FLOAT float FLOAT String NVARCHAR boolean INT - 1 for true, 0 for false Date DATETIME2 Calendar DATETIME2 - See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExecuteStoredProcedure(java.lang.String name, java.lang.String dataSource, java.io.Serializable... parameters)Creates a new instance of ExecuteStoredProcedure that executes the given stored procedure on the database given by the data-source with the given parameters.ExecuteStoredProcedure(java.lang.String name, java.lang.String dataSource, java.util.List<java.io.Serializable> parameters)Creates a new instance of ExecuteStoredProcedure that executes the given stored procedure on the database given by the data-source with the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()protected voidvoidInvoke()Invokes this void operation.-
Methods inherited from class com.saperion.operations.VoidOperation
afterInvoke, getResult, 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
toArrayList, toCaseInsensitiveMap, toHashMap
-
-
-
-
Constructor Detail
-
ExecuteStoredProcedure
public ExecuteStoredProcedure(java.lang.String name, java.lang.String dataSource, java.util.List<java.io.Serializable> parameters)Creates a new instance of ExecuteStoredProcedure that executes the given stored procedure on the database given by the data-source with the given parameters.- Parameters:
name- The name of the procedure to executedataSource- The name of the data-source on whose database the procedure will be executedparameters- The parameters given to the stored procedure. For type-mapping seeExecuteStoredProcedure
-
ExecuteStoredProcedure
public ExecuteStoredProcedure(java.lang.String name, java.lang.String dataSource, java.io.Serializable... parameters)Creates a new instance of ExecuteStoredProcedure that executes the given stored procedure on the database given by the data-source with the given parameters.- Parameters:
name- The name of the procedure to executedataSource- The name of the data-source on whose database the procedure will be executedparameters- The parameters given to the stored procedure. For type-mapping seeExecuteStoredProcedure
-
-
Method Detail
-
voidInvoke
protected void voidInvoke() throws java.lang.ExceptionDescription copied from class:VoidOperationInvokes this void operation.- Specified by:
voidInvokein classVoidOperation- Throws:
java.lang.Exception- exception when invoking this operation
-
toString
public java.lang.String toString()
- Overrides:
toStringin classcom.lexmark.saperion.remote.common.operations.AbstractOperation<com.lexmark.saperion.remote.common.operations.Void,SaBasicException,LegacyConnection>
-
-