public abstract class JdbcExecutor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
JdbcExecutor() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
execRowsAffected(SQLStatement aSQL)
execute an sql (update/delete/insert) statement and return the number of rows affected
|
protected QueryResult |
fetchResult(SQLStatement aQuery,
JdbcResultBuilder resultBuilder,
QueryDefinition queryDefinition)
execute a SQL-QUERY (select) and return a LookupResult
|
abstract Connection |
getConnection() |
protected JdbcResultBuilder |
newResultVisitor(String className) |
protected QueryResult fetchResult(SQLStatement aQuery, JdbcResultBuilder resultBuilder, QueryDefinition queryDefinition) throws SQLException
aQuery - - the SQLStatementresultBuilder - - a result visitor that builds the result rows or objectsqueryDefinition - - the max. number of rows to build (or GenericQuery.C_Unlimited)ExceptionSQLExceptionprotected int execRowsAffected(SQLStatement aSQL) throws SQLException
SQLExceptionprotected JdbcResultBuilder newResultVisitor(String className)
public abstract Connection getConnection()
Copyright © 2008–2018. All rights reserved.