com.espertech.esper.core.service
Class EPPreparedStatementImpl

java.lang.Object
  extended by com.espertech.esper.core.service.EPPreparedStatementImpl
All Implemented Interfaces:
EPOnDemandPreparedQueryParameterized, EPPreparedStatement, java.io.Serializable

public class EPPreparedStatementImpl
extends java.lang.Object
implements EPPreparedStatement, EPOnDemandPreparedQueryParameterized, java.io.Serializable

Prepared statement implementation that stores the statement object model and a list of substitution parameters, to be mapped into an internal representation upon creation.

See Also:
Serialized Form

Constructor Summary
EPPreparedStatementImpl(EPStatementObjectModel model, java.util.List<SubstitutionParameterExpressionBase> subParams, java.lang.String optionalEPL)
          Ctor.
 
Method Summary
 EPStatementObjectModel getModel()
          Returns the statement object model for the prepared statement
 java.lang.String getOptionalEPL()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EPPreparedStatementImpl

public EPPreparedStatementImpl(EPStatementObjectModel model,
                               java.util.List<SubstitutionParameterExpressionBase> subParams,
                               java.lang.String optionalEPL)
Ctor.

Parameters:
model - is the statement object model
subParams - is the substitution parameter list
optionalEPL - the EPL provided if any
Method Detail

setObject

public void setObject(java.lang.String parameterName,
                      java.lang.Object value)
               throws EPException
Description copied from interface: EPPreparedStatement
Sets the value of the designated parameter using the given object.

Specified by:
setObject in interface EPPreparedStatement
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

setObject

public void setObject(int parameterIndex,
                      java.lang.Object value)
               throws EPException
Description copied from interface: EPPreparedStatement
Sets the value of the designated parameter using the given object.

Specified by:
setObject in interface EPOnDemandPreparedQueryParameterized
Specified by:
setObject in interface EPPreparedStatement
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

getModel

public EPStatementObjectModel getModel()
Returns the statement object model for the prepared statement

Returns:
object model

getOptionalEPL

public java.lang.String getOptionalEPL()

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