Cumulus4j API
(1.1.0)

org.cumulus4j.store
Class Cumulus4jPersistenceHandler

java.lang.Object
  extended by org.datanucleus.store.AbstractPersistenceHandler
      extended by org.cumulus4j.store.Cumulus4jPersistenceHandler
All Implemented Interfaces:
StorePersistenceHandler

public class Cumulus4jPersistenceHandler
extends AbstractPersistenceHandler

Handler for all persistence calls from the StoreManager, communicating with the backend datastore(s). Manages all inserts/updates/deletes/fetches/locates of the users own objects and translates them into inserts/updates/deletes/fetches/locates of Cumulus4J model objects.


Constructor Summary
Cumulus4jPersistenceHandler(Cumulus4jStoreManager storeManager)
           
 
Method Summary
 void close()
           
 void deleteObject(ObjectProvider op)
           
protected  void deleteObjectIndex(CryptoContext cryptoContext, ClassMeta classMeta, DataEntry dataEntry, FieldMeta fieldMeta, EmbeddedObjectContainer embeddedObjectContainer)
           
protected  void deleteObjectIndex(CryptoContext cryptoContext, ClassMeta classMeta, DataEntry dataEntry, FieldMeta fieldMeta, Object fieldValue)
           
protected  void deleteObjectIndex(CryptoContext cryptoContext, ClassMeta classMeta, DataEntry dataEntry, ObjectContainer objectContainer, AbstractClassMetaData dnClassMetaData)
           
 void deleteObjects(ObjectProvider... ops)
           
 void fetchObject(ObjectProvider op, int[] fieldNumbers)
           
 Object findObject(ExecutionContext ec, Object id)
           
 IndexEntryAction getAddIndexEntryAction()
          Get the IndexEntryAction used to add an index-entry.
 IndexEntryAction getRemoveIndexEntryAction()
          Get the IndexEntryAction used to remove an index-entry.
 Cumulus4jStoreManager getStoreManager()
           
 void insertObject(ObjectProvider op)
           
protected  void insertObjectIndex(CryptoContext cryptoContext, ClassMeta classMeta, DataEntry dataEntry, FieldMeta fieldMeta, EmbeddedObjectContainer embeddedObjectContainer)
           
protected  void insertObjectIndex(CryptoContext cryptoContext, ClassMeta classMeta, DataEntry dataEntry, FieldMeta fieldMeta, Object fieldValue)
           
protected  void insertObjectIndex(ObjectProvider op, CryptoContext cryptoContext, ClassMeta classMeta, AbstractClassMetaData dnClassMetaData, ObjectContainer objectContainer, DataEntry dataEntry)
           
 void insertObjects(ObjectProvider... ops)
           
 void locateObject(ObjectProvider op)
           
 void updateObject(ObjectProvider op, int[] fieldNumbers)
           
 boolean useReferentialIntegrity()
           
 
Methods inherited from class org.datanucleus.store.AbstractPersistenceHandler
batchEnd, batchStart, findObjects, locateObjects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cumulus4jPersistenceHandler

public Cumulus4jPersistenceHandler(Cumulus4jStoreManager storeManager)
Method Detail

getStoreManager

public Cumulus4jStoreManager getStoreManager()

close

public void close()

deleteObject

public void deleteObject(ObjectProvider op)

deleteObjectIndex

protected void deleteObjectIndex(CryptoContext cryptoContext,
                                 ClassMeta classMeta,
                                 DataEntry dataEntry,
                                 ObjectContainer objectContainer,
                                 AbstractClassMetaData dnClassMetaData)

deleteObjectIndex

protected void deleteObjectIndex(CryptoContext cryptoContext,
                                 ClassMeta classMeta,
                                 DataEntry dataEntry,
                                 FieldMeta fieldMeta,
                                 EmbeddedObjectContainer embeddedObjectContainer)

deleteObjectIndex

protected void deleteObjectIndex(CryptoContext cryptoContext,
                                 ClassMeta classMeta,
                                 DataEntry dataEntry,
                                 FieldMeta fieldMeta,
                                 Object fieldValue)

fetchObject

public void fetchObject(ObjectProvider op,
                        int[] fieldNumbers)

findObject

public Object findObject(ExecutionContext ec,
                         Object id)

insertObjects

public void insertObjects(ObjectProvider... ops)
Specified by:
insertObjects in interface StorePersistenceHandler
Overrides:
insertObjects in class AbstractPersistenceHandler

deleteObjects

public void deleteObjects(ObjectProvider... ops)
Specified by:
deleteObjects in interface StorePersistenceHandler
Overrides:
deleteObjects in class AbstractPersistenceHandler

insertObject

public void insertObject(ObjectProvider op)

insertObjectIndex

protected void insertObjectIndex(ObjectProvider op,
                                 CryptoContext cryptoContext,
                                 ClassMeta classMeta,
                                 AbstractClassMetaData dnClassMetaData,
                                 ObjectContainer objectContainer,
                                 DataEntry dataEntry)

insertObjectIndex

protected void insertObjectIndex(CryptoContext cryptoContext,
                                 ClassMeta classMeta,
                                 DataEntry dataEntry,
                                 FieldMeta fieldMeta,
                                 EmbeddedObjectContainer embeddedObjectContainer)

insertObjectIndex

protected void insertObjectIndex(CryptoContext cryptoContext,
                                 ClassMeta classMeta,
                                 DataEntry dataEntry,
                                 FieldMeta fieldMeta,
                                 Object fieldValue)

locateObject

public void locateObject(ObjectProvider op)

updateObject

public void updateObject(ObjectProvider op,
                         int[] fieldNumbers)

useReferentialIntegrity

public boolean useReferentialIntegrity()
Specified by:
useReferentialIntegrity in interface StorePersistenceHandler
Overrides:
useReferentialIntegrity in class AbstractPersistenceHandler

getAddIndexEntryAction

public IndexEntryAction getAddIndexEntryAction()
Get the IndexEntryAction used to add an index-entry.

Returns:
the IndexEntryAction used to add an index-entry. Never null.

getRemoveIndexEntryAction

public IndexEntryAction getRemoveIndexEntryAction()
Get the IndexEntryAction used to remove an index-entry.

Returns:
the IndexEntryAction used to remove an index-entry. Never null.

Cumulus4j API
(1.1.0)

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.