|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tentackle.db.Query
org.tentackle.appworx.AppDbQuery<T>
T - the database object classpublic class AppDbQuery<T extends AppDbObject>
Extends Query for application database objects.
| Constructor Summary | |
|---|---|
AppDbQuery(QbfParameter qbfPar)
Construct a default query from a QbfParameter. This is just a legacy constructor to save typing. |
|
AppDbQuery(QbfParameter qbfPar,
T object)
Construct a default query from a QbfParameter for this kind of object.Initializes the query with default query for the given object. |
|
| Method Summary | |
|---|---|
AppDbCursor<T> |
cursor()
Executes the query and returns a cursor with ResultSet.TYPE_FORWARD_ONLY
and ResultSet.CONCUR_READ_ONLY. |
AppDbCursor<T> |
cursor(Class clazz)
Executes the query and returns a cursor with ResultSet.TYPE_FORWARD_ONLY
and ResultSet.CONCUR_READ_ONLY. |
AppDbCursor<T> |
cursor(Class clazz,
int resultSetType)
Executes the query and returns a cursor with ResultSet.CONCUR_READ_ONLY. |
AppDbCursor<T> |
cursor(Class clazz,
int resultSetType,
int resultSetConcurrency)
Executes the query and returns a cursor. |
AppDbCursor<T> |
cursor(int resultSetType)
Executes the query and returns a cursor with ResultSet.CONCUR_READ_ONLY. |
ResultSetWrapper |
execute()
Executes the query with ResultSet.TYPE_FORWARD_ONLY
and ResultSet.CONCUR_READ_ONLY. |
ResultSetWrapper |
execute(int resultSetType)
Executes the query with ResultSet.CONCUR_READ_ONLY. |
ResultSetWrapper |
execute(int resultSetType,
int resultSetConcurrency)
Executes the query. |
| Methods inherited from class org.tentackle.db.Query |
|---|
add, apply, execute, execute, execute, getEstimatedRowCount, getFetchSize, getLimit, getMaxRows, getOffset, getSql, isCloseStatementOnClose, setCloseStatementOnClose, setFetchSize, setLimit, setMaxRows, setOffset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AppDbQuery(QbfParameter qbfPar)
qbfPar - the qbfParameter
public AppDbQuery(QbfParameter qbfPar,
T object)
QbfParameter for this kind of object.
qbfPar - the qbfParameterobject - the AppDbObject to create the default query for| Method Detail |
|---|
public ResultSetWrapper execute(int resultSetType,
int resultSetConcurrency)
resultSetType - one of ResultSet.TYPE_...resultSetConcurrency - one of ResultSet.CONCUR_...
public ResultSetWrapper execute(int resultSetType)
ResultSet.CONCUR_READ_ONLY.
resultSetType - one of ResultSet.TYPE_...
public ResultSetWrapper execute()
ResultSet.TYPE_FORWARD_ONLY
and ResultSet.CONCUR_READ_ONLY.
public AppDbCursor<T> cursor(Class clazz,
int resultSetType,
int resultSetConcurrency)
clazz - the optional clazz, null = take from qbfParresultSetType - one of ResultSet.TYPE_...resultSetConcurrency - one of ResultSet.CONCUR_...
public AppDbCursor<T> cursor(Class clazz,
int resultSetType)
ResultSet.CONCUR_READ_ONLY.
clazz - the optional clazz, null = take from qbfParresultSetType - one of ResultSet.TYPE_...
public AppDbCursor<T> cursor(int resultSetType)
ResultSet.CONCUR_READ_ONLY.
resultSetType - one of ResultSet.TYPE_...
public AppDbCursor<T> cursor(Class clazz)
ResultSet.TYPE_FORWARD_ONLY
and ResultSet.CONCUR_READ_ONLY.
clazz - the optional clazz, null = take from qbfPar
public AppDbCursor<T> cursor()
ResultSet.TYPE_FORWARD_ONLY
and ResultSet.CONCUR_READ_ONLY.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||