Cumulus4j API
(1.0.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)
           
 void fetchObject(ObjectProvider op, int[] fieldNumbers)
           
 Object findObject(ExecutionContext ec, Object id)
           
 Cumulus4jStoreManager getStoreManager()
           
 void insertObject(ObjectProvider op)
           
 void locateObject(ObjectProvider op)
           
 void updateObject(ObjectProvider op, int[] fieldNumbers)
           
 
Methods inherited from class org.datanucleus.store.AbstractPersistenceHandler
batchEnd, batchStart, deleteObjects, findObjects, insertObjects, locateObjects, useReferentialIntegrity
 
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)

fetchObject

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

findObject

public Object findObject(ExecutionContext ec,
                         Object id)

insertObject

public void insertObject(ObjectProvider op)

locateObject

public void locateObject(ObjectProvider op)

updateObject

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

Cumulus4j API
(1.0.0)

Copyright © 2012 NightLabs Consulting GmbH. All Rights Reserved.