|
Cumulus4j API (1.2.0) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cumulus4j.store.model.IndexEntryFactoryRegistry
public class IndexEntryFactoryRegistry
Registry responsible for the extension-point org.cumulus4j.store.index_mapping.
This registry maps an IndexEntryFactory to a java-type or a combination of java-,
jdbc- and sql-type.
There is one instance of IndexEntryFactoryRegistry per Cumulus4jStoreManager.
| Constructor Summary | |
|---|---|
IndexEntryFactoryRegistry(Cumulus4jStoreManager storeMgr)
Create a new registry instance. |
|
| Method Summary | |
|---|---|
Set<Class<? extends IndexEntry>> |
getIndexEntryClasses()
|
IndexEntryFactory |
getIndexEntryFactory(ExecutionContext executionContext,
FieldMeta fieldMeta,
boolean throwExceptionIfNotFound)
Get the appropriate IndexEntryFactory subclass instance for the given FieldMeta. |
IndexEntryFactory |
getIndexEntryFactoryForContainerSize()
Get the special IndexEntryFactory used for container-sizes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexEntryFactoryRegistry(Cumulus4jStoreManager storeMgr)
storeMgr - the owning store-manager.| Method Detail |
|---|
public IndexEntryFactory getIndexEntryFactory(ExecutionContext executionContext,
FieldMeta fieldMeta,
boolean throwExceptionIfNotFound)
IndexEntryFactory subclass instance for the given FieldMeta.
executionContext - the context.fieldMeta - either a FieldMeta for a primary field or a sub-FieldMeta,
if a Collection element, a Map key, a Map value or similar are indexed.throwExceptionIfNotFound - throw an exception instead of returning null, if there is no IndexEntryFactory for
the given fieldMeta.
IndexEntryFactory or null, if none is registered and throwExceptionIfNotFound == false.public IndexEntryFactory getIndexEntryFactoryForContainerSize()
IndexEntryFactory used for container-sizes. This special index
allows using Collection.isEmpty(), Collection.size() and the like in JDOQL
(or "SIZE(...)" and the like in JPQL).
IndexEntryFactory used for container-sizes.public Set<Class<? extends IndexEntry>> getIndexEntryClasses()
|
Cumulus4j API (1.2.0) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||