com.ninja_squad.dbsetup.bind
Interface Binder


public interface Binder

An object which binds a value to a prepared statement parameter. It's advised to make implementations of this interface immutable, and to make them implement equals and hashCode in order for DbSetupTracker to function properly, or to make them singletons.


Method Summary
 void bind(java.sql.PreparedStatement statement, int param, java.lang.Object value)
          Binds the given value to the given parameter in the given prepared statement.
 

Method Detail

bind

void bind(java.sql.PreparedStatement statement,
          int param,
          java.lang.Object value)
          throws java.sql.SQLException
Binds the given value to the given parameter in the given prepared statement.

Parameters:
statement - the statement to bind the parameter to
param - The index of the parameter to bind in the statement
value - The value to bind (may be null)
Throws:
java.sql.SQLException - if the binding throws a SQLException