Interface StoredProcedureRequest
- All Superinterfaces:
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
- All Known Implementing Classes:
StoredProcedureRequestImpl
public interface StoredProcedureRequest
extends org.apache.directory.api.ldap.model.message.ExtendedRequest
An extended operation requesting the server to execute a stored procedure.
- Author:
- Apache Directory Project
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe OID for the stored procedure extended operation 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.getParameterValue(int index) Gets the parameter value.byte[]Get the procedure bytecodeGets the procedure specification.voidsetLanguage(String language) Sets the language.voidsetProcedure(byte[] procedure) Set the procedure bytecodeintsize()Size.Methods 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.ResultResponseRequest
getResultResponseMethods inherited from interface org.apache.directory.api.ldap.model.message.SingleReplyRequest
getResponseType
-
Field Details
-
EXTENSION_OID
The OID for the stored procedure extended operation request.- See Also:
-
-
Method Details
-
getLanguage
-
setLanguage
-
getProcedure
byte[] getProcedure()Get the procedure bytecode- Returns:
- The byte[] containing the procedure's bytecode
-
setProcedure
void setProcedure(byte[] procedure) Set the procedure bytecode- Parameters:
procedure- The procedure's bytecode
-
getProcedureSpecification
String getProcedureSpecification()Gets the procedure specification.- Returns:
- the procedure specification
-
size
int size()Size.- Returns:
- the procedure's bytcode size
-
getParameterType
Gets the parameter type.- Parameters:
index- the index- Returns:
- the parameter type
-
getJavaParameterType
Gets the java parameter type.- Parameters:
index- the index- Returns:
- the java parameter type
-
getParameterValue
Gets the parameter value.- Parameters:
index- the index- Returns:
- the parameter value
-
getJavaParameterValue
Gets the java parameter value.- Parameters:
index- the index- Returns:
- the java parameter value
-
addParameter
-
addParameter
Adds a parameter- Parameters:
parameter- The parameter to add
-
getParameters
List<StoredProcedureParameter> getParameters()Get the list of parameters for this stored procedure- Returns:
- The list of parameters for this stored procedure
-