SMILA 1.0 API documentation

org.eclipse.smila.connectivity.framework.crawler.jdbc.util
Class PreparedStatementTypedParameter

java.lang.Object
  extended by org.eclipse.smila.connectivity.framework.crawler.jdbc.util.PreparedStatementTypedParameter

public class PreparedStatementTypedParameter
extends java.lang.Object

Helper class to store a value for a parameter in a PreparedStatement along with the index of the parameter within the statement und the SQL-Type of the parameter.

Author:
mbreidenband

Constructor Summary
PreparedStatementTypedParameter(java.lang.Object value, int parameterIndex, int parameterType)
          Standard constructor assigning the passed parameters to member variables.
 
Method Summary
 void applyToPreparedStatement(java.sql.PreparedStatement statement)
          Calling this method will apply the parameter that this instance of PreparedStatementTypedParameter incorporates to the passed PreparedStatement-object.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PreparedStatementTypedParameter

public PreparedStatementTypedParameter(java.lang.Object value,
                                       int parameterIndex,
                                       int parameterType)
Standard constructor assigning the passed parameters to member variables.

Parameters:
value - The value of the parameter.
parameterIndex - The index of the parameter within the PreparedStatement object.
parameterType - The type of the _parameterValue object as defined in Types.
Method Detail

applyToPreparedStatement

public void applyToPreparedStatement(java.sql.PreparedStatement statement)
                              throws java.sql.SQLException
Calling this method will apply the parameter that this instance of PreparedStatementTypedParameter incorporates to the passed PreparedStatement-object.

Parameters:
statement - The PreparedStatement to which this parameter shall be applied.
Throws:
java.sql.SQLException - If JDBC fails to agree with something or other.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

SMILA 1.0 API documentation