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

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The OID for the stored procedure extended operation request.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addParameter(Object type, Object value)
    Adds the parameter.
    void
    Adds a parameter
    Gets the java parameter type.
    Gets the java parameter value.
    Gets the language.
    Get the list of parameters for this stored procedure
    getParameterType(int index)
    Gets the parameter type.
    getParameterValue(int index)
    Gets the parameter value.
    byte[]
    Get the procedure bytecode
    Gets the procedure specification.
    void
    setLanguage(String language)
    Sets the language.
    void
    setProcedure(byte[] procedure)
    Set the procedure bytecode
    int
    Size.

    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.Message

    get, getControl, getControls, getMessageId, getType, hasControl, put

    Methods inherited from interface org.apache.directory.api.ldap.model.message.Request

    hasResponse

    Methods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponseRequest

    getResultResponse

    Methods inherited from interface org.apache.directory.api.ldap.model.message.SingleReplyRequest

    getResponseType
  • Field Details

    • EXTENSION_OID

      static final String EXTENSION_OID
      The OID for the stored procedure extended operation request.
      See Also:
  • Method Details

    • getLanguage

      String getLanguage()
      Gets the language.
      Returns:
      the language
    • setLanguage

      void setLanguage(String language)
      Sets the language.
      Parameters:
      language - the new language
    • 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

      Object getParameterType(int index)
      Gets the parameter type.
      Parameters:
      index - the index
      Returns:
      the parameter type
    • getJavaParameterType

      Class<?> getJavaParameterType(int index)
      Gets the java parameter type.
      Parameters:
      index - the index
      Returns:
      the java parameter type
    • getParameterValue

      Object getParameterValue(int index)
      Gets the parameter value.
      Parameters:
      index - the index
      Returns:
      the parameter value
    • getJavaParameterValue

      Object getJavaParameterValue(int index)
      Gets the java parameter value.
      Parameters:
      index - the index
      Returns:
      the java parameter value
    • addParameter

      void addParameter(Object type, Object value)
      Adds the parameter.
      Parameters:
      type - the type
      value - the value
    • addParameter

      void addParameter(StoredProcedureParameter parameter)
      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