|
Cumulus4j API (1.2.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cumulus4j.store.model.IndexEntryFactory
public abstract class IndexEntryFactory
Factory for creating (or looking up) specific IndexEntry
implementations.
It is optional to implement a specific factory. For most use cases, it is sufficient to
use the DefaultIndexEntryFactory
(which is used, if the extension specifies the
attribute index-entry-type
), but you can alternatively specify a custom
factory via the extension-attribute index-entry-factory-type
.
If you specify a custom
factory, you must omit (or leave empty) the index-entry-type
!
Constructor Summary | |
---|---|
IndexEntryFactory()
|
Method Summary | |
---|---|
IndexEntry |
createIndexEntry(CryptoContext cryptoContext,
PersistenceManager pmIndex,
FieldMeta fieldMeta,
ClassMeta classMeta,
Object indexKey)
Get an existing IndexEntry just like getIndexEntry(CryptoContext, PersistenceManager, FieldMeta, ClassMeta, Object)
or create one, if it does not yet exist. |
List<IndexEntry> |
getIndexEntries(CryptoContext cryptoContext,
PersistenceManager pmIndex,
FieldMeta fieldMeta,
List<ClassMeta> classMetas,
Object indexKey)
|
List<IndexEntry> |
getIndexEntriesIncludingSubClasses(CryptoContext cryptoContext,
PersistenceManager pmIndex,
FieldMeta fieldMeta,
ClassMeta classMeta,
Object indexKey)
|
IndexEntry |
getIndexEntry(CryptoContext cryptoContext,
PersistenceManager pmIndex,
FieldMeta fieldMeta,
ClassMeta classMeta,
Object indexKey)
Get an IndexEntry for the specified unique key fields or null , if no such instance
exists. |
abstract Class<? extends IndexEntry> |
getIndexEntryClass()
Get the concrete implementation class (sub-class) of IndexEntry managed by this factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexEntryFactory()
Method Detail |
---|
public abstract Class<? extends IndexEntry> getIndexEntryClass()
IndexEntry
managed by this factory.
IndexEntry
managed by this factory.public List<IndexEntry> getIndexEntriesIncludingSubClasses(CryptoContext cryptoContext, PersistenceManager pmIndex, FieldMeta fieldMeta, ClassMeta classMeta, Object indexKey)
public List<IndexEntry> getIndexEntries(CryptoContext cryptoContext, PersistenceManager pmIndex, FieldMeta fieldMeta, List<ClassMeta> classMetas, Object indexKey)
public IndexEntry getIndexEntry(CryptoContext cryptoContext, PersistenceManager pmIndex, FieldMeta fieldMeta, ClassMeta classMeta, Object indexKey)
IndexEntry
for the specified unique key fields or null
, if no such instance
exists.
cryptoContext
- the crypto-context.pmIndex
- the backend-PersistenceManager
. Must not be null
.fieldMeta
- the meta-data of the field to query. Must not be null
.classMeta
- TODOindexKey
- the indexed value to search for. Might be null
(null
can be indexed).
IndexEntry
or null
.public IndexEntry createIndexEntry(CryptoContext cryptoContext, PersistenceManager pmIndex, FieldMeta fieldMeta, ClassMeta classMeta, Object indexKey)
IndexEntry
just like getIndexEntry(CryptoContext, PersistenceManager, FieldMeta, ClassMeta, Object)
or create one, if it does not yet exist.
cryptoContext
- TODOpmIndex
- the backend-PersistenceManager
. Must not be null
.fieldMeta
- the meta-data of the field to query. Must not be null
.classMeta
- TODOindexKey
- the indexed value to search for. Might be null
(null
can be indexed).
IndexEntry
(never null
).
|
Cumulus4j API (1.2.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |