public interface JdbcPreparedStatementAction<T>
DAOException
.
If your action does not return a value, parameterize it with Void
and return null
from your implementation.Modifier and Type | Method and Description |
---|---|
T |
perform(PreparedStatement statement)
Run a piece of JDBC code inside a context, where a prepared statement has
been set up.
|
T perform(PreparedStatement statement) throws Exception
statement
- a prepared statement.null
.Exception
- Upon errors. This exception will be wrapped by a DAOException
.Copyright © 2016 Clazzes.org. All rights reserved.