|
Cumulus4j API (1.0.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cumulus4j.store.query.QueryHelper
public class QueryHelper
Helper methods for querying.
Constructor Summary | |
---|---|
QueryHelper()
|
Method Summary | |
---|---|
static Set<Long> |
getAllDataEntryIdsForCandidate(PersistenceManager pmData,
ExecutionContext ec,
Class candidateCls,
boolean subclasses)
Access the data entry ids for a candidate. |
static List<Object> |
getAllPersistentObjectsForCandidateClasses(PersistenceManager pmData,
ExecutionContext ec,
Set<ClassMeta> candidateClassMetas)
Convenience method to return the persistent objects for the classes with the provided ClassMetas. |
static Set<ClassMeta> |
getCandidateClassMetas(Cumulus4jStoreManager storeMgr,
ExecutionContext ec,
Class<?> candidateClass,
boolean withSubclasses)
Convenience method to return the ClassMeta objects for the specified class (and subclasses if required). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryHelper()
Method Detail |
---|
public static Set<Long> getAllDataEntryIdsForCandidate(PersistenceManager pmData, ExecutionContext ec, Class candidateCls, boolean subclasses)
pmData
- PersistenceManager for the backend dataec
- ExecutionContextcandidateCls
- Candidate classsubclasses
- Whether to include subclasses
public static List<Object> getAllPersistentObjectsForCandidateClasses(PersistenceManager pmData, ExecutionContext ec, Set<ClassMeta> candidateClassMetas)
pmData
- PersistenceManager for the backend dataec
- ExecutionContextcandidateClassMetas
- The class metas defining the required classes
public static Set<ClassMeta> getCandidateClassMetas(Cumulus4jStoreManager storeMgr, ExecutionContext ec, Class<?> candidateClass, boolean withSubclasses)
storeMgr
- Cumulus4J StoreManagerec
- ExecutionContextcandidateClass
- The class requiredwithSubclasses
- Whether to return subclasses too
|
Cumulus4j API (1.0.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |