public class StoredProcedureRequestImpl extends AbstractExtendedRequest implements StoredProcedureRequest
EXTENSION_OID
Constructor and Description |
---|
StoredProcedureRequestImpl()
Instantiates a new stored procedure request.
|
StoredProcedureRequestImpl(int messageId)
Instantiates a new stored procedure request.
|
StoredProcedureRequestImpl(int messageId,
String procedure,
String language)
Instantiates a new stored procedure request.
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(Object type,
Object value)
Adds the parameter.
|
void |
addParameter(StoredProcedureParameter parameter)
Adds a parameter
|
Class<?> |
getJavaParameterType(int index)
Gets the java parameter type.
|
Object |
getJavaParameterValue(int index)
Gets the java parameter value.
|
String |
getLanguage()
Gets the language.
|
List<StoredProcedureParameter> |
getParameters() |
Object |
getParameterType(int index)
Gets the parameter type.
|
Object |
getParameterTypeString(int index)
Get the parameter type
|
Object |
getParameterValue(int index)
Gets the parameter value.
|
Object |
getParameterValueString(int index)
Get a parameter value
|
byte[] |
getProcedure() |
String |
getProcedureSpecification()
Gets the procedure specification.
|
StoredProcedureResponse |
getResultResponse()
The result containing response for this request.
|
void |
setLanguage(String language)
Sets the language.
|
void |
setProcedure(byte[] procedure) |
void |
setProcedure(String procedure)
Store the procedure's name
|
int |
size()
Size.
|
addAllControls, addControl, equals, getRequestName, getResponse, getResponseType, hashCode, removeControl, setMessageId, setRequestName, setResponse, toString
hasResponse
get, getControl, getControls, getMessageId, getType, hasControl, put, toString
addAllControls, addControl, getRequestName, removeControl, setMessageId, setRequestName
getResponseType
hasResponse
get, getControl, getControls, getMessageId, getType, hasControl, put
public StoredProcedureRequestImpl(int messageId)
messageId
- the message idpublic StoredProcedureRequestImpl()
public StoredProcedureRequestImpl(int messageId, String procedure, String language)
messageId
- the message idprocedure
- the procedurelanguage
- the languagepublic String getLanguage()
getLanguage
in interface StoredProcedureRequest
public void setLanguage(String language)
setLanguage
in interface StoredProcedureRequest
language
- the new languagepublic byte[] getProcedure()
getProcedure
in interface StoredProcedureRequest
public void setProcedure(byte[] procedure)
setProcedure
in interface StoredProcedureRequest
procedure
- The procedure's bytecodepublic List<StoredProcedureParameter> getParameters()
getParameters
in interface StoredProcedureRequest
public void addParameter(StoredProcedureParameter parameter)
addParameter
in interface StoredProcedureRequest
parameter
- The parameter to addpublic void setProcedure(String procedure)
procedure
- The procedure's namepublic String getProcedureSpecification()
getProcedureSpecification
in interface StoredProcedureRequest
public int size()
size
in interface StoredProcedureRequest
public Object getParameterType(int index)
getParameterType
in interface StoredProcedureRequest
index
- the indexpublic Object getParameterTypeString(int index)
index
- The parameter position in the list of parameterspublic Class<?> getJavaParameterType(int index)
getJavaParameterType
in interface StoredProcedureRequest
index
- the indexpublic Object getParameterValue(int index)
getParameterValue
in interface StoredProcedureRequest
index
- the indexpublic Object getParameterValueString(int index)
index
- The position of the parameter in the list of parameterspublic Object getJavaParameterValue(int index)
getJavaParameterValue
in interface StoredProcedureRequest
index
- the indexpublic void addParameter(Object type, Object value)
addParameter
in interface StoredProcedureRequest
type
- the typevalue
- the valuepublic StoredProcedureResponse getResultResponse()
getResultResponse
in interface ResultResponseRequest
getResultResponse
in class AbstractExtendedRequest
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.