public class StoredProcedureRequestDecorator extends ExtendedRequestDecorator<StoredProcedureRequest> implements StoredProcedureRequest
EXTENSION_OID
Constructor and Description |
---|
StoredProcedureRequestDecorator(LdapApiService codec)
Create a new StoredProcedureRequestDecorator instance
|
StoredProcedureRequestDecorator(LdapApiService codec,
StoredProcedureRequest decoratedRequest)
Create a new StoredProcedureRequestDecorator instance
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(Object type,
Object value)
Adds the parameter.
|
void |
addParameter(StoredProcedureParameter parameter)
Adds a parameter
|
StoredProcedureParameter |
getCurrentParameter() |
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 |
getParameterValue(int index)
Gets the parameter value.
|
byte[] |
getProcedure() |
String |
getProcedureSpecification()
Gets the procedure specification.
|
byte[] |
getRequestValue()
Gets the Extended request payload
|
void |
setCurrentParameter(StoredProcedureParameter currentParameter)
Sets the current parameter
|
void |
setLanguage(String language)
Sets the language.
|
void |
setProcedure(byte[] procedure) |
void |
setRequestValue(byte[] payload)
sets the Extended request payload
|
int |
size()
Size.
|
String |
toString()
Returns the StoredProcedure string
|
addAllControls, addControl, computeLength, encode, getRequestName, removeControl, setMessageId, setRequestName
abandon, addAbandonListener, getResponseType, isAbandoned
getResultResponse, hasResponse
get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, setControlsLength, setMessageLength
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addAllControls, addControl, getRequestName, removeControl, setMessageId, setRequestName
getResponseType
getResultResponse
hasResponse
get, getControl, getControls, getMessageId, getType, hasControl, put
public StoredProcedureRequestDecorator(LdapApiService codec)
codec
- The LDAP API service to usepublic StoredProcedureRequestDecorator(LdapApiService codec, StoredProcedureRequest decoratedRequest)
codec
- The LDAP API service to usedecoratedRequest
- The decorated requestpublic StoredProcedureParameter getCurrentParameter()
public void setCurrentParameter(StoredProcedureParameter currentParameter)
currentParameter
- The current parameterpublic String toString()
toString
in class MessageDecorator<StoredProcedureRequest>
public void setProcedure(byte[] procedure)
setProcedure
in interface StoredProcedureRequest
procedure
- The procedure's bytecodepublic void setRequestValue(byte[] payload)
setRequestValue
in class ExtendedRequestDecorator<StoredProcedureRequest>
payload
- The extended payloadpublic byte[] getRequestValue()
getRequestValue
in class ExtendedRequestDecorator<StoredProcedureRequest>
public String getLanguage()
getLanguage
in interface StoredProcedureRequest
public void setLanguage(String language)
setLanguage
in interface StoredProcedureRequest
language
- the new languagepublic 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 Class<?> getJavaParameterType(int index)
getJavaParameterType
in interface StoredProcedureRequest
index
- the indexpublic Object getParameterValue(int index)
getParameterValue
in interface StoredProcedureRequest
index
- the indexpublic 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 byte[] getProcedure()
getProcedure
in interface StoredProcedureRequest
public List<StoredProcedureParameter> getParameters()
getParameters
in interface StoredProcedureRequest
public void addParameter(StoredProcedureParameter parameter)
addParameter
in interface StoredProcedureRequest
parameter
- The parameter to addCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.