org.apache.directory.api.ldap.extras.extended
Class StoredProcedureRequestImpl

java.lang.Object
  extended by org.apache.directory.api.ldap.model.message.AbstractMessage
      extended by org.apache.directory.api.ldap.model.message.AbstractRequest
          extended by org.apache.directory.api.ldap.model.message.AbstractExtendedRequest<StoredProcedureResponse>
              extended by org.apache.directory.api.ldap.extras.extended.StoredProcedureRequestImpl
All Implemented Interfaces:
StoredProcedureRequest, org.apache.directory.api.ldap.model.message.ExtendedRequest<StoredProcedureResponse>, org.apache.directory.api.ldap.model.message.Message, org.apache.directory.api.ldap.model.message.Request, org.apache.directory.api.ldap.model.message.ResultResponseRequest<StoredProcedureResponse>, org.apache.directory.api.ldap.model.message.SingleReplyRequest<StoredProcedureResponse>

public class StoredProcedureRequestImpl
extends org.apache.directory.api.ldap.model.message.AbstractExtendedRequest<StoredProcedureResponse>
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.AbstractMessage
controls
 
Fields inherited from interface org.apache.directory.api.ldap.extras.extended.StoredProcedureRequest
EXTENSION_OID
 
Fields inherited from interface org.apache.directory.api.ldap.model.message.ExtendedRequest
RESP_TYPE, TYPE
 
Constructor Summary
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.
 
Method Summary
 void addParameter(Object type, Object value)
          Adds the parameter.
 void addParameter(StoredProcedureParameter 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)
          
 Object getParameterValue(int index)
          Gets the parameter value.
 Object getParameterValueString(int index)
          
 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)
          
 int size()
          Size.
 
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractExtendedRequest
addAllControls, addControl, equals, getRequestName, getResponseType, hashCode, removeControl, setMessageId, setRequestName, toString
 
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractRequest
hasResponse
 
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
get, getControl, getControls, getMessageId, getType, hasControl, put, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.directory.api.ldap.model.message.ExtendedRequest
addAllControls, addControl, getRequestName, removeControl, setMessageId, setRequestName
 
Methods inherited from interface org.apache.directory.api.ldap.model.message.SingleReplyRequest
getResponseType
 
Methods inherited from interface org.apache.directory.api.ldap.model.message.Request
hasResponse
 
Methods inherited from interface org.apache.directory.api.ldap.model.message.Message
get, getControl, getControls, getMessageId, getType, hasControl, put
 

Constructor Detail

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

public StoredProcedureRequestImpl(int messageId,
                                  String procedure,
                                  String language)
Instantiates a new stored procedure request.

Parameters:
messageId - the message id
procedure - the procedure
language - the language
Method Detail

getLanguage

public String getLanguage()
Gets the language.

Specified by:
getLanguage in interface StoredProcedureRequest
Returns:
the language

setLanguage

public void setLanguage(String language)
Sets the language.

Specified by:
setLanguage in interface StoredProcedureRequest
Parameters:
language - the new language

getProcedure

public byte[] getProcedure()
Specified by:
getProcedure in interface StoredProcedureRequest

setProcedure

public void setProcedure(byte[] procedure)
Specified by:
setProcedure in interface StoredProcedureRequest

getParameters

public List<StoredProcedureParameter> getParameters()
Specified by:
getParameters in interface StoredProcedureRequest

addParameter

public void addParameter(StoredProcedureParameter parameter)
Specified by:
addParameter in interface StoredProcedureRequest

setProcedure

public void setProcedure(String procedure)


getProcedureSpecification

public String getProcedureSpecification()
Gets the procedure specification.

Specified by:
getProcedureSpecification in interface StoredProcedureRequest
Returns:
the procedure specification

size

public int size()
Size.

Specified by:
size in interface StoredProcedureRequest
Returns:
the int

getParameterType

public Object getParameterType(int index)
Gets the parameter type.

Specified by:
getParameterType in interface StoredProcedureRequest
Parameters:
index - the index
Returns:
the parameter type

getParameterTypeString

public Object getParameterTypeString(int index)


getJavaParameterType

public Class<?> getJavaParameterType(int index)
Gets the java parameter type.

Specified by:
getJavaParameterType in interface StoredProcedureRequest
Parameters:
index - the index
Returns:
the java parameter type

getParameterValue

public Object getParameterValue(int index)
Gets the parameter value.

Specified by:
getParameterValue in interface StoredProcedureRequest
Parameters:
index - the index
Returns:
the parameter value

getParameterValueString

public Object getParameterValueString(int index)


getJavaParameterValue

public Object getJavaParameterValue(int index)
Gets the java parameter value.

Specified by:
getJavaParameterValue in interface StoredProcedureRequest
Parameters:
index - the index
Returns:
the java parameter value

addParameter

public void addParameter(Object type,
                         Object value)
Adds the parameter.

Specified by:
addParameter in interface StoredProcedureRequest
Parameters:
type - the type
value - the value

getResultResponse

public StoredProcedureResponse getResultResponse()
Specified by:
getResultResponse in interface org.apache.directory.api.ldap.model.message.ResultResponseRequest<StoredProcedureResponse>
Overrides:
getResultResponse in class org.apache.directory.api.ldap.model.message.AbstractExtendedRequest<StoredProcedureResponse>


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.