|
Cumulus4j API (1.1.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cumulus4j.store.query.QueryHelper
public class QueryHelper
Helper methods for querying.
Constructor Summary | |
---|---|
QueryHelper()
|
Method Summary | |
---|---|
static Set<Long> |
getAllDataEntryIdsForCandidate(CryptoContext cryptoContext,
PersistenceManager pmData,
Class<?> candidateCls,
boolean subclasses)
Access the data entry ids for a candidate. |
static List<Object> |
getAllPersistentObjectsForCandidateClasses(CryptoContext cryptoContext,
PersistenceManager pmData,
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(CryptoContext cryptoContext, PersistenceManager pmData, Class<?> candidateCls, boolean subclasses)
cryptoContext
- the crypto-context (containing the ExecutionContext
and other context data + API).pmData
- PersistenceManager for the backend datacandidateCls
- Candidate classsubclasses
- Whether to include subclasses
public static List<Object> getAllPersistentObjectsForCandidateClasses(CryptoContext cryptoContext, PersistenceManager pmData, Set<ClassMeta> candidateClassMetas)
cryptoContext
- the crypto-context (containing the ExecutionContext
and other context data + API).pmData
- PersistenceManager for the backend datacandidateClassMetas
- 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.1.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |