org.cumulus4j.store
Class ObjectContainerHelper
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.