org.skife.jdbi.v2.tweak
Interface RewrittenStatement


public interface RewrittenStatement

Return value from StatementRewriter.rewrite(String, org.skife.jdbi.v2.Binding, org.skife.jdbi.v2.StatementContext) calls


Method Summary
 void bind(Binding params, PreparedStatement statement)
          Called to bind a set of parameters to a prepared statement.
 String getSql()
          Obtain the SQL in valid (rewritten) form to be used to prepare a statement
 

Method Detail

bind

void bind(Binding params,
          PreparedStatement statement)
          throws SQLException
Called to bind a set of parameters to a prepared statement. The statement will have been constructed from this RewrittenStatement's getSql() return result

Parameters:
params -
statement -
Throws:
SQLException

getSql

String getSql()
Obtain the SQL in valid (rewritten) form to be used to prepare a statement



Copyright © 2011. All Rights Reserved.