net.esper.client
Class EPPreparedStatementImpl

java.lang.Object
  extended by net.esper.client.EPPreparedStatementImpl
All Implemented Interfaces:
EPPreparedStatement

public class EPPreparedStatementImpl
extends Object
implements EPPreparedStatement

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


Constructor Summary
EPPreparedStatementImpl(EPStatementObjectModel model, Map<Integer,SubstitutionParameterExpression> subParams)
          Ctor.
 
Method Summary
 EPStatementObjectModel getModel()
          Returns the statement object model for the prepared statement
 Map<Integer,SubstitutionParameterExpression> getSubParams()
          Returns the indexed substitution parameters.
 void setObject(int parameterIndex, 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,
                               Map<Integer,SubstitutionParameterExpression> subParams)
Ctor.

Parameters:
model - is the statement object model
subParams - is the substitution parameter list
Method Detail

setObject

public void setObject(int parameterIndex,
                      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:
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

getSubParams

public Map<Integer,SubstitutionParameterExpression> getSubParams()
Returns the indexed substitution parameters.

Returns:
map of index and parameter

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com