Interface EPFireAndForgetPreparedQueryParameterized


public interface EPFireAndForgetPreparedQueryParameterized
Parameter holder for parameterized on-demand queries that are prepared with substitution parameters and that can be executed efficiently multiple times with different actual values for parameters.

A pre-compiled query can only be executed when actual values for all substitution parameters are set.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Releases resources.
    void
    setObject(int parameterIndex, Object value)
    Sets the value of the designated parameter using the given object.
    void
    setObject(String parameterName, Object value)
    Sets the value of the designated parameter using the given object.
  • Method Details

    • setObject

      void setObject(int parameterIndex, Object value) throws EPException
      Sets the value of the designated parameter using the given object.
      Parameters:
      parameterIndex - the first parameter is 1, the second is 2, ...
      value - the object containing the input parameter value
      Throws:
      EPException - if the substitution parameter could not be located
    • setObject

      void setObject(String parameterName, Object value) throws EPException
      Sets the value of the designated parameter using the given object.
      Parameters:
      parameterName - the name of the parameter
      value - the object containing the input parameter value
      Throws:
      EPException - if the substitution parameter could not be set
    • close

      void close()
      Releases resources.

      Required for use with fire-and-forget queries that use SQL queries i.e. "from SQL:db [query]". Optional for all other EPL queries.