public interface SQLHandler
| Modifier and Type | Method and Description |
|---|---|
void |
executeQuery(String sql)
Executes the given query.
|
int |
executeUpdate(String sql)
Executes the given statement.
|
int |
executeUpdateAndCommit(String sql)
Executes the given statement and commits.
|
boolean |
exists(String sql)
Returns true if the query returned a record.
|
DataSource |
getDataSource() |
long |
getItemAsLong(String sql)
Returns the long extracted from the result of the given query.
|
String |
getItemAsString(String sql)
Returns the value extracted from the result of the given query.
|
Set<String> |
getItemsAsStringSet(String sql)
Returns the items extracted from the result of the given query.
|
boolean |
isDoExecuteUpdates() |
int executeUpdate(String sql)
sql - The sql statementvoid executeQuery(String sql)
sql - The sql queryint executeUpdateAndCommit(String sql)
sql - The sql statementlong getItemAsLong(String sql)
UnitilsException
is thrown.sql - The sql string for retrieving the itemsString getItemAsString(String sql)
UnitilsException
is thrown.sql - The sql string for retrieving the itemsSet<String> getItemsAsStringSet(String sql)
sql - The sql string for retrieving the itemsboolean exists(String sql)
sql - The sql string for checking the existenceDataSource getDataSource()
boolean isDoExecuteUpdates()
Copyright © 2016. All Rights Reserved.