|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
void setObject(int parameterIndex, java.lang.Object value) throws EPException
parameterIndex
- the first parameter is 1, the second is 2, ...value
- the object containing the input parameter value
EPException
- if the substitution parameter could not be locatedvoid setObject(java.lang.String parameterName, java.lang.Object value) throws EPException
parameterName
- the name of the parametervalue
- the object containing the input parameter value
EPException
- if the substitution parameter could not be located
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |