org.dartra.standard.dao.jdbc
Interface PreparedStatementCreator


public interface PreparedStatementCreator

Strategy to create JDBC prepared statements.

This was inspired by Expert One-on-One J2EE Design and Development by Rod Johnson (ISBN 0764543857).

Author:
Erwin Vervaet

Method Summary
 java.sql.PreparedStatement createPreparedStatement(java.sql.Connection connection)
          Create a prepared statement on given connection.
 

Method Detail

createPreparedStatement

public java.sql.PreparedStatement createPreparedStatement(java.sql.Connection connection)
                                                   throws java.sql.SQLException

Create a prepared statement on given connection. Implementers should not catch SQLException-s, this is handled by the infrastructure.

Throws:
java.sql.SQLException