Class StoredProcedureRequestImpl
java.lang.Object
org.apache.directory.api.ldap.model.message.AbstractMessage
org.apache.directory.api.ldap.model.message.AbstractRequest
org.apache.directory.api.ldap.model.message.AbstractExtendedRequest
org.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
org.apache.directory.api.ldap.extras.extended.storedProcedure.StoredProcedureRequestImpl
- All Implemented Interfaces:
StoredProcedureRequest, org.apache.directory.api.ldap.model.message.ExtendedRequest, org.apache.directory.api.ldap.model.message.Message, org.apache.directory.api.ldap.model.message.Request, org.apache.directory.api.ldap.model.message.ResultResponseRequest, org.apache.directory.api.ldap.model.message.SingleReplyRequest
public class StoredProcedureRequestImpl
extends org.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
implements StoredProcedureRequest
An extended operation requesting the server to execute a stored procedure.
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from class org.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
responseFields inherited from class org.apache.directory.api.ldap.model.message.AbstractExtendedRequest
oidFields inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
controlsFields inherited from interface StoredProcedureRequest
EXTENSION_OID -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates 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. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameter(Object type, Object value) Adds the parameter.voidaddParameter(StoredProcedureParameter parameter) Adds a parameterClass<?> getJavaParameterType(int index) Gets the java parameter type.getJavaParameterValue(int index) Gets the java parameter value.Gets the language.Get the list of parameters for this stored proceduregetParameterType(int index) Gets the parameter type.getParameterTypeString(int index) Get the parameter typegetParameterValue(int index) Gets the parameter value.getParameterValueString(int index) Get a parameter valuebyte[]Get the procedure bytecodeGets the procedure specification.voidsetLanguage(String language) Sets the language.voidsetProcedure(byte[] procedure) Set the procedure bytecodevoidsetProcedure(String procedure) Store the procedure's nameintsize()Size.Methods inherited from class org.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
addAllControls, addControl, equals, getExtendedResponse, getRequestName, getRequestValue, getResponseType, hashCode, removeControl, setMessageId, setRequestName, setRequestValue, toStringMethods inherited from class org.apache.directory.api.ldap.model.message.AbstractExtendedRequest
getResponse, setResponseMethods inherited from class org.apache.directory.api.ldap.model.message.AbstractRequest
hasResponseMethods inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
get, getControl, getControls, getMessageId, getType, hasControl, put, toStringMethods inherited from interface org.apache.directory.api.ldap.model.message.ExtendedRequest
addAllControls, addControl, getRequestName, removeControl, setMessageId, setRequestNameMethods inherited from interface org.apache.directory.api.ldap.model.message.Message
get, getControl, getControls, getMessageId, getType, hasControl, putMethods inherited from interface org.apache.directory.api.ldap.model.message.Request
hasResponseMethods inherited from interface org.apache.directory.api.ldap.model.message.SingleReplyRequest
getResponseType
-
Constructor Details
-
StoredProcedureRequestImpl
public StoredProcedureRequestImpl(int messageId) Instantiates a new stored procedure request.- Parameters:
messageId- the message id
-
StoredProcedureRequestImpl
public StoredProcedureRequestImpl()Instantiates a new stored procedure request. -
StoredProcedureRequestImpl
-
-
Method Details
-
getLanguage
Gets the language.- Specified by:
getLanguagein interfaceStoredProcedureRequest- Returns:
- the language
-
setLanguage
Sets the language.- Specified by:
setLanguagein interfaceStoredProcedureRequest- Parameters:
language- the new language
-
getProcedure
public byte[] getProcedure()Get the procedure bytecode- Specified by:
getProcedurein interfaceStoredProcedureRequest- Returns:
- The byte[] containing the procedure's bytecode
-
setProcedure
public void setProcedure(byte[] procedure) Set the procedure bytecode- Specified by:
setProcedurein interfaceStoredProcedureRequest- Parameters:
procedure- The procedure's bytecode
-
getParameters
Get the list of parameters for this stored procedure- Specified by:
getParametersin interfaceStoredProcedureRequest- Returns:
- The list of parameters for this stored procedure
-
addParameter
Adds a parameter- Specified by:
addParameterin interfaceStoredProcedureRequest- Parameters:
parameter- The parameter to add
-
setProcedure
Store the procedure's name- Parameters:
procedure- The procedure's name
-
getProcedureSpecification
Gets the procedure specification.- Specified by:
getProcedureSpecificationin interfaceStoredProcedureRequest- Returns:
- the procedure specification
-
size
public int size()Size.- Specified by:
sizein interfaceStoredProcedureRequest- Returns:
- the procedure's bytcode size
-
getParameterType
Gets the parameter type.- Specified by:
getParameterTypein interfaceStoredProcedureRequest- Parameters:
index- the index- Returns:
- the parameter type
-
getParameterTypeString
Get the parameter type- Parameters:
index- The parameter position in the list of parameters- Returns:
- The found parameter type
-
getJavaParameterType
Gets the java parameter type.- Specified by:
getJavaParameterTypein interfaceStoredProcedureRequest- Parameters:
index- the index- Returns:
- the java parameter type
-
getParameterValue
Gets the parameter value.- Specified by:
getParameterValuein interfaceStoredProcedureRequest- Parameters:
index- the index- Returns:
- the parameter value
-
getParameterValueString
Get a parameter value- Parameters:
index- The position of the parameter in the list of parameters- Returns:
- The paremeter's value
-
getJavaParameterValue
Gets the java parameter value.- Specified by:
getJavaParameterValuein interfaceStoredProcedureRequest- Parameters:
index- the index- Returns:
- the java parameter value
-
addParameter
Adds the parameter.- Specified by:
addParameterin interfaceStoredProcedureRequest- Parameters:
type- the typevalue- the value
-
getResultResponse
- Specified by:
getResultResponsein interfaceorg.apache.directory.api.ldap.model.message.ResultResponseRequest- Overrides:
getResultResponsein classorg.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
-