Cumulus4j API
(1.0.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 Object entityToReference(ExecutionContext ec, PersistenceManager pmData, Object entity)
           
static Long referenceToDataEntryID(ExecutionContext ec, PersistenceManager pmData, Object reference)
           
static Object referenceToEntity(ExecutionContext ec, PersistenceManager pmData, Object reference)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

entityToReference

public static Object entityToReference(ExecutionContext ec,
                                       PersistenceManager pmData,
                                       Object entity)

referenceToEntity

public static Object referenceToEntity(ExecutionContext ec,
                                       PersistenceManager pmData,
                                       Object reference)

referenceToDataEntryID

public static Long referenceToDataEntryID(ExecutionContext ec,
                                          PersistenceManager pmData,
                                          Object reference)

Cumulus4j API
(1.0.0)

Copyright © 2012 NightLabs Consulting GmbH. All Rights Reserved.