|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DatabaseAccess
Interface that hides the various calls to a SQL database.
| Field Summary | |
|---|---|
static Object |
MORE_THAN_ONE
returned by queryForOne(java.lang.String, java.lang.Object[], int[], com.j256.ormlite.stmt.GenericRowMapper if more than one result was found by the query |
| Method Summary | ||
|---|---|---|
PreparedStmt |
prepareStatement(String sql)
Generate a prepared statement from a SQL statement. |
|
long |
queryForLong(String statement)
Perform a query whose result should be a single long-integer value. |
|
|
queryForOne(String statement,
Object[] args,
int[] argFieldTypeVals,
GenericRowMapper<T> rowMapper)
Perform a SQL query with the associated SQL statement, arguments, and types and returns a single result. |
|
int |
update(String statement,
Object[] args,
int[] argFieldTypeVals)
Perform a SQL update with the associated SQL statement, arguments, and types. |
|
int |
update(String statement,
Object[] args,
int[] argFieldTypeVals,
GeneratedKeyHolder keyHolder)
Perform a SQL update while returning generated keys with the associated SQL statement, arguments, and types. |
|
| Field Detail |
|---|
static final Object MORE_THAN_ONE
queryForOne(java.lang.String, java.lang.Object[], int[], com.j256.ormlite.stmt.GenericRowMapper) if more than one result was found by the query
| Method Detail |
|---|
int update(String statement,
Object[] args,
int[] argFieldTypeVals)
throws SQLException
SQLException
int update(String statement,
Object[] args,
int[] argFieldTypeVals,
GeneratedKeyHolder keyHolder)
throws SQLException
SQLException
<T> Object queryForOne(String statement,
Object[] args,
int[] argFieldTypeVals,
GenericRowMapper<T> rowMapper)
throws SQLException
MORE_THAN_ONE if more than one result was found.
SQLException
long queryForLong(String statement)
throws SQLException
SQLException
PreparedStmt prepareStatement(String sql)
throws SQLException
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||