Cumulus4j API
(1.1.1)

org.cumulus4j.store
Class IndexEntryAction

java.lang.Object
  extended by org.cumulus4j.store.IndexEntryAction

public abstract class IndexEntryAction
extends Object

Logic to add or remove an index entry.

This class is thread-safe. You should normally never need to instantiate this class.

Author:
Marco หงุ่ยตระกูล-Schulze - marco at nightlabs dot de

Field Summary
protected  EncryptionHandler encryptionHandler
           
protected  IndexEntryFactoryRegistry indexEntryFactoryRegistry
           
protected  Cumulus4jPersistenceHandler persistenceHandler
           
protected  Cumulus4jStoreManager storeManager
           
 
Constructor Summary
IndexEntryAction(Cumulus4jPersistenceHandler persistenceHandler)
           
 
Method Summary
protected abstract  void _perform(CryptoContext cryptoContext, IndexEntry indexEntry, long dataEntryID)
           
protected abstract  IndexEntry getIndexEntry(IndexEntryFactory indexEntryFactory, CryptoContext cryptoContext, PersistenceManager pmIndex, FieldMeta fieldMeta, ClassMeta classMeta, Object fieldValue)
           
protected abstract  IndexEntry getIndexEntryForObjectRelation(CryptoContext cryptoContext, PersistenceManager pmIndex, FieldMeta fieldMeta, ClassMeta classMeta, Long otherDataEntryID)
           
 void perform(CryptoContext cryptoContext, long dataEntryID, FieldMeta fieldMeta, AbstractMemberMetaData dnMemberMetaData, ClassMeta classMeta, Object fieldValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

persistenceHandler

protected Cumulus4jPersistenceHandler persistenceHandler

storeManager

protected Cumulus4jStoreManager storeManager

encryptionHandler

protected EncryptionHandler encryptionHandler

indexEntryFactoryRegistry

protected IndexEntryFactoryRegistry indexEntryFactoryRegistry
Constructor Detail

IndexEntryAction

public IndexEntryAction(Cumulus4jPersistenceHandler persistenceHandler)
Method Detail

getIndexEntry

protected abstract IndexEntry getIndexEntry(IndexEntryFactory indexEntryFactory,
                                            CryptoContext cryptoContext,
                                            PersistenceManager pmIndex,
                                            FieldMeta fieldMeta,
                                            ClassMeta classMeta,
                                            Object fieldValue)

getIndexEntryForObjectRelation

protected abstract IndexEntry getIndexEntryForObjectRelation(CryptoContext cryptoContext,
                                                             PersistenceManager pmIndex,
                                                             FieldMeta fieldMeta,
                                                             ClassMeta classMeta,
                                                             Long otherDataEntryID)

_perform

protected abstract void _perform(CryptoContext cryptoContext,
                                 IndexEntry indexEntry,
                                 long dataEntryID)

perform

public void perform(CryptoContext cryptoContext,
                    long dataEntryID,
                    FieldMeta fieldMeta,
                    AbstractMemberMetaData dnMemberMetaData,
                    ClassMeta classMeta,
                    Object fieldValue)

Cumulus4j API
(1.1.1)

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.