com.espertech.esper.client
Interface EPPreparedStatement

All Known Implementing Classes:
EPPreparedStatementImpl

public interface EPPreparedStatement

Precompiled statement that is prepared with substitution parameters and that can be created and started efficiently multiple times with different actual values for parameters.

When a precompiled statement is prepared via the prepare method on EPAdministrator, it typically has one or more substitution parameters in the statement text, for which the placeholder character is the question mark. This class provides methods to set the actual value for the substitution parameter.

A precompiled statement can only be created and started when actual values for all substitution parameters are set.


Method Summary
 void setObject(int parameterIndex, java.lang.Object value)
          Sets the value of the designated parameter using the given object.
 void setObject(java.lang.String parameterName, java.lang.Object value)
          Sets the value of the designated parameter using the given object.
 

Method Detail

setObject

void setObject(int parameterIndex,
               java.lang.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(java.lang.String parameterName,
               java.lang.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 located

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com