|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SQLRunner
Helper interface to perform sql operations.
| Nested Class Summary | |
|---|---|
static interface |
SQLRunner.NoResultSQLAction
Simple sql action without result. |
static interface |
SQLRunner.SQLAction<T>
Simple sql action with result. |
| Method Summary | ||
|---|---|---|
void |
commitCurrentTransaction()
Commits current transaction |
|
long |
getNextId(java.lang.String tableName,
java.lang.String idColumnName)
Returns next id value to be used for insertion into the specified table. |
|
void |
runSql(SQLRunner.NoResultSQLAction action)
Executes acton without result. |
|
void |
runSql(SQLRunner.NoResultSQLAction action,
boolean ignoreError)
Executes acton without result. |
|
|
runSql(SQLRunner.SQLAction<T> action)
Executes sql action. |
|
| Method Detail |
|---|
<T> T runSql(@NotNull
SQLRunner.SQLAction<T> action)
action - action.
void runSql(@NotNull
SQLRunner.NoResultSQLAction action)
action - action.
void runSql(@NotNull
SQLRunner.NoResultSQLAction action,
boolean ignoreError)
action - action.ignoreError - it the error should be ignored.
long getNextId(@NotNull
java.lang.String tableName,
java.lang.String idColumnName)
tableName - table containing ids.idColumnName - find next ID as max ID for this table
void commitCurrentTransaction()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||