|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPreparedStatementManager
Represents a manager capable of preparing, initializing parameters of,
executing and post processing a PreparedStatement.
In most cases you can just extend the PreparedStatementManagerBase which
has default implementations for all four methods. Then you just
override the methods you need. Typically it will be the init method.
Method Summary | |
---|---|
java.lang.Object |
execute(java.sql.PreparedStatement statement)
Executes the PreparedStatement. |
void |
init(java.sql.PreparedStatement statement)
Initializes the PreparedStatement. |
void |
postProcess(java.sql.PreparedStatement statement)
Post processes the PreparedStatement after execution. |
java.sql.PreparedStatement |
prepare(java.lang.String sql,
java.sql.Connection connection)
Returns a PreparedStatement prepared from the SQL and the connection. |
Method Detail |
---|
java.sql.PreparedStatement prepare(java.lang.String sql, java.sql.Connection connection) throws java.sql.SQLException, PersistenceException
sql
- The SQL to prepare the PreparedStatement for.connection
- The connection to use to prepare the PreparedStatement.
java.sql.SQLException
- If the preparation fails.
PersistenceException
- If something else goes wrong during the prepare method.void init(java.sql.PreparedStatement statement) throws java.sql.SQLException, PersistenceException
statement
- The PreparedStatement to initialize.
java.sql.SQLException
- If the initialization fails in the JDBC driver.
PersistenceException
- If something else goes wrong during initialization.java.lang.Object execute(java.sql.PreparedStatement statement) throws java.sql.SQLException, PersistenceException
statement
- The PreparedStatement to execute.
java.sql.SQLException
- If the executing fails.
PersistenceException
- If something else fails during execution.void postProcess(java.sql.PreparedStatement statement) throws java.sql.SQLException, PersistenceException
statement
- The PreparedStatement to post process.
java.sql.SQLException
- If post processing fails in the driver.
PersistenceException
- If something else fails during post processing.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |