public class StoredProcedureRequestImpl extends org.apache.directory.api.ldap.model.message.AbstractExtendedRequest implements StoredProcedureRequest
| Modifier and Type | Field and Description |
|---|---|
private String |
language |
private List<StoredProcedureParameter> |
parameters |
private byte[] |
procedure |
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() |
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, toStringhasResponseget, getControl, getControls, getMessageId, getType, hasControl, put, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAllControls, addControl, getRequestName, removeControl, setMessageId, setRequestNameprivate String language
private byte[] procedure
private List<StoredProcedureParameter> parameters
public StoredProcedureRequestImpl(int messageId)
messageId - the message idpublic StoredProcedureRequestImpl()
public String getLanguage()
getLanguage in interface StoredProcedureRequestpublic void setLanguage(String language)
setLanguage in interface StoredProcedureRequestlanguage - the new languagepublic byte[] getProcedure()
getProcedure in interface StoredProcedureRequestpublic void setProcedure(byte[] procedure)
setProcedure in interface StoredProcedureRequestprocedure - The procedure's bytecodepublic List<StoredProcedureParameter> getParameters()
getParameters in interface StoredProcedureRequestpublic void addParameter(StoredProcedureParameter parameter)
addParameter in interface StoredProcedureRequestparameter - The parameter to addpublic void setProcedure(String procedure)
procedure - The procedure's namepublic String getProcedureSpecification()
getProcedureSpecification in interface StoredProcedureRequestpublic int size()
size in interface StoredProcedureRequestpublic Object getParameterType(int index)
getParameterType in interface StoredProcedureRequestindex - the indexpublic Object getParameterTypeString(int index)
index - The parameter position in the list of parameterspublic Class<?> getJavaParameterType(int index)
getJavaParameterType in interface StoredProcedureRequestindex - the indexpublic Object getParameterValue(int index)
getParameterValue in interface StoredProcedureRequestindex - the indexpublic Object getParameterValueString(int index)
index - The position of the parameter in the list of parameterspublic Object getJavaParameterValue(int index)
getJavaParameterValue in interface StoredProcedureRequestindex - the indexpublic void addParameter(Object type, Object value)
addParameter in interface StoredProcedureRequesttype - the typevalue - the valuepublic StoredProcedureResponse getResultResponse()
getResultResponse in interface org.apache.directory.api.ldap.model.message.ResultResponseRequestgetResultResponse in class org.apache.directory.api.ldap.model.message.AbstractExtendedRequestCopyright © 2003–2019 The Apache Software Foundation. All rights reserved.