| java.lang.Object org.apache.lucene.store.jdbc.support.JdbcTemplate
JdbcTemplate | public class JdbcTemplate (Code) | | Helper class that isused to encapsulate resource and transaction handling related to DataSource ,
Statement , and ResultSet .
DataSourceUtils is used to open/cose relevant
resources.
author: kimchy See Also: DataSourceUtils |
Inner Class :public static interface PrepateStatementAwareCallback | |
Inner Class :public static interface ExecuteSelectCallback extends PrepateStatementAwareCallback | |
Inner Class :public static interface CallableStatementCallback | |
Method Summary | |
public int[] | executeBatch(String[] sqls) A template method to execute a set of sqls in batch. | public int[] | executeBatch(String sql, PrepateStatementAwareCallback callback) A template method to execute that can execute the same sql several times using different
values set to it (in the fillPrepareStatement ) callback). | public Object | executeCallable(String sql, CallableStatementCallback callback) A template method to execute a simple sql callable statement. | public Object | executeSelect(String sql, ExecuteSelectCallback callback) A template method to execute a simple sql select statement. | public void | executeUpdate(String sql, PrepateStatementAwareCallback callback) A template method to execute a simple sql update. | public void | executeUpdate(String sql) A template method to execute a simpel sql update (with no need for data
initialization). |
executeBatch | public int[] executeBatch(String sql, PrepateStatementAwareCallback callback) throws JdbcStoreException(Code) | | A template method to execute that can execute the same sql several times using different
values set to it (in the fillPrepareStatement ) callback).
|
executeCallable | public Object executeCallable(String sql, CallableStatementCallback callback) throws JdbcStoreException(Code) | | A template method to execute a simple sql callable statement. The jdbc
Connection , and CallableStatement
are managed by the template.
|
executeSelect | public Object executeSelect(String sql, ExecuteSelectCallback callback) throws JdbcStoreException(Code) | | A template method to execute a simple sql select statement. The jdbc
Connection , PreparedStatement , and ResultSet
are managed by the template.
|
executeUpdate | public void executeUpdate(String sql, PrepateStatementAwareCallback callback) throws JdbcStoreException(Code) | | A template method to execute a simple sql update. The jdbc
Connection , and PreparedStatement
are managed by the template. A PreparedStatement can be used
to set values to the given sql.
|
executeUpdate | public void executeUpdate(String sql) throws JdbcStoreException(Code) | | A template method to execute a simpel sql update (with no need for data
initialization).
|
|
|