|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
PreparedStatementExecuter.java | - | - | - | - |
|
1 |
package com.diasparsoftware.jdbc;
|
|
2 |
|
|
3 |
import java.util.List;
|
|
4 |
|
|
5 |
import com.diasparsoftware.java.sql.PreparedStatementData;
|
|
6 |
import com.diasparsoftware.store.DataStoreException;
|
|
7 |
|
|
8 |
public interface PreparedStatementExecuter { |
|
9 |
void executeDeleteStatement(PreparedStatementData preparedStatementData)
|
|
10 |
throws DataStoreException;
|
|
11 |
int executeUpdateStatement(PreparedStatementData preparedStatementData);
|
|
12 |
int executeInsertStatement(PreparedStatementData insertStatementData);
|
|
13 |
List executeSelectStatement(PreparedStatementData selectStatementData, |
|
14 |
JdbcRowMapper rowMapper); |
|
15 |
/**
|
|
16 |
* Invoke this only for SELECT statements that count rows. This
|
|
17 |
* method assumes that the database returns only a single row for
|
|
18 |
* SELECT COUNT(...) statements.
|
|
19 |
*
|
|
20 |
* @param countStatementData
|
|
21 |
* A SELECT COUNT(...) statement.
|
|
22 |
* @return The number of rows determined by the COUNT statement.
|
|
23 |
*/
|
|
24 |
int executeCountStatement(PreparedStatementData countStatementData);
|
|
25 |
Object executeSingleRowSelectStatement( |
|
26 |
PreparedStatementData selectStatementData, |
|
27 |
JdbcRowMapper simpleMapper); |
|
28 |
} |
|