Cumulus4j API
(1.1.0)

org.cumulus4j.store
Class ObjectContainerHelper

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

public final class ObjectContainerHelper
extends Object

Helper class for replacing object-references when storing a 1-1- or 1-n- or m-n-relationship inside an ObjectContainer.

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

Method Summary
static void enterTemporaryReferenceScope()
           
static Object entityToReference(CryptoContext cryptoContext, PersistenceManager pmData, Object entity)
           
static void exitTemporaryReferenceScope(boolean error)
           
static DataEntry getTemporaryReferenceDataEntry(CryptoContext cryptoContext, PersistenceManager pmData, String objectIDString)
           
static Long referenceToDataEntryID(CryptoContext cryptoContext, PersistenceManager pmData, Object reference)
           
static Object referenceToEntity(CryptoContext cryptoContext, PersistenceManager pmData, Object reference)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

enterTemporaryReferenceScope

public static void enterTemporaryReferenceScope()

exitTemporaryReferenceScope

public static void exitTemporaryReferenceScope(boolean error)

getTemporaryReferenceDataEntry

public static DataEntry getTemporaryReferenceDataEntry(CryptoContext cryptoContext,
                                                       PersistenceManager pmData,
                                                       String objectIDString)

entityToReference

public static Object entityToReference(CryptoContext cryptoContext,
                                       PersistenceManager pmData,
                                       Object entity)

referenceToEntity

public static Object referenceToEntity(CryptoContext cryptoContext,
                                       PersistenceManager pmData,
                                       Object reference)

referenceToDataEntryID

public static Long referenceToDataEntryID(CryptoContext cryptoContext,
                                          PersistenceManager pmData,
                                          Object reference)

Cumulus4j API
(1.1.0)

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.