|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SQLHandler
| Method Summary | |
|---|---|
void |
executeQuery(java.lang.String sql)
Executes the given query. |
int |
executeUpdate(java.lang.String sql)
Executes the given statement. |
int |
executeUpdateAndCommit(java.lang.String sql)
Executes the given statement and commits. |
boolean |
exists(java.lang.String sql)
Returns true if the query returned a record. |
javax.sql.DataSource |
getDataSource()
|
long |
getItemAsLong(java.lang.String sql)
Returns the long extracted from the result of the given query. |
java.lang.String |
getItemAsString(java.lang.String sql)
Returns the value extracted from the result of the given query. |
java.util.Set<java.lang.String> |
getItemsAsStringSet(java.lang.String sql)
Returns the items extracted from the result of the given query. |
boolean |
isDoExecuteUpdates()
|
| Method Detail |
|---|
int executeUpdate(java.lang.String sql)
sql - The sql statement
void executeQuery(java.lang.String sql)
sql - The sql queryint executeUpdateAndCommit(java.lang.String sql)
sql - The sql statement
long getItemAsLong(java.lang.String sql)
UnitilsException
is thrown.
sql - The sql string for retrieving the items
java.lang.String getItemAsString(java.lang.String sql)
UnitilsException
is thrown.
sql - The sql string for retrieving the items
java.util.Set<java.lang.String> getItemsAsStringSet(java.lang.String sql)
sql - The sql string for retrieving the items
boolean exists(java.lang.String sql)
sql - The sql string for checking the existence
javax.sql.DataSource getDataSource()
boolean isDoExecuteUpdates()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||