public interface EPPreparedStatement
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.
Modifier and Type | Method and Description |
---|---|
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.
|
void setObject(int parameterIndex, Object value) throws EPException
parameterIndex
- the first parameter is 1, the second is 2, ...value
- the object containing the input parameter valueEPException
- if the substitution parameter could not be locatedvoid setObject(String parameterName, Object value) throws EPException
parameterName
- the name of the parametervalue
- the object containing the input parameter valueEPException
- if the substitution parameter could not be located