|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IQueryExecutor<C extends QDataContext>
Method Summary | ||
---|---|---|
void |
attach(C root,
java.lang.Object o)
|
|
void |
delete(C root,
java.lang.Object o)
EXPERIMENTAL/NOT FINAL Cause the object to be deleted from the database. |
|
|
find(C root,
java.lang.Class<T> clz,
java.lang.Object pk)
Load the persistent object with the specified type and primary key from the database. |
|
|
find(C root,
ICriteriaTableDef<T> metatable,
java.lang.Object pk)
|
|
|
getInstance(C root,
java.lang.Class<T> clz,
java.lang.Object pk)
Load the persistent object with the specified type and primary key from the database. |
|
|
getInstance(C root,
ICriteriaTableDef<T> clz,
java.lang.Object pk)
|
|
|
query(C root,
QCriteria<T> q)
Execute the query specified by q and return a list of results. |
|
java.util.List<java.lang.Object[]> |
query(C root,
QSelection<?> sel)
Issue a selection query, where multiple fields or projections on fields are selected from a base class. |
|
void |
refresh(C root,
java.lang.Object o)
EXPERIMENTAL/NOT FINAL Refresh with latest content in the database. |
|
void |
save(C root,
java.lang.Object o)
EXPERIMENTAL/NOT FINAL Cause the object to be inserted in the database. |
Method Detail |
---|
<T> java.util.List<T> query(C root, QCriteria<T> q) throws java.lang.Exception
T
- The return type for this query, a persistent class typeq
- The selection criteria
java.lang.Exception
java.util.List<java.lang.Object[]> query(C root, QSelection<?> sel) throws java.lang.Exception
sel
-
java.lang.Exception
<T> T find(C root, java.lang.Class<T> clz, java.lang.Object pk) throws java.lang.Exception
T
- The object type.clz
- The persistent class for which an instance is being sought.pk
- The PK for the instance required.
java.lang.Exception
<T> T find(C root, ICriteriaTableDef<T> metatable, java.lang.Object pk) throws java.lang.Exception
java.lang.Exception
<T> T getInstance(C root, java.lang.Class<T> clz, java.lang.Object pk) throws java.lang.Exception
QDataContext.find(Class, Object)
.
T
- The object typeclz
- The persistent class for which an instance is being sought.pk
- The PK for the instance required.
java.lang.Exception
<T> T getInstance(C root, ICriteriaTableDef<T> clz, java.lang.Object pk) throws java.lang.Exception
java.lang.Exception
void save(C root, java.lang.Object o) throws java.lang.Exception
o
-
java.lang.Exception
void refresh(C root, java.lang.Object o) throws java.lang.Exception
o
-
java.lang.Exception
void delete(C root, java.lang.Object o) throws java.lang.Exception
o
-
java.lang.Exception
void attach(C root, java.lang.Object o) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |