ora.core.base.xmlHelper
Class BinaryHelper

java.lang.Object
  extended by ora.core.base.xmlHelper.BinaryHelper

public class BinaryHelper
extends java.lang.Object

This class was introduced after realising the default serialisation of objects may be fail due to StackOverFlow. Here we avoid this scenario by delinking the objects and dividing the objects in pure objects and linking data.

Author:
Kristian Martin

Constructor Summary
BinaryHelper()
           
 
Method Summary
static void blowToFullReferencers(java.util.ArrayList flatReferencers, java.util.HashMap objectId2ElementMap)
          This method blows up flat data to referencing data
static java.util.ArrayList getFlatReferencers(java.util.ArrayList elementList)
          This method flats down given elements in a way that there are no circulating references.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryHelper

public BinaryHelper()
Method Detail

getFlatReferencers

public static java.util.ArrayList getFlatReferencers(java.util.ArrayList elementList)
This method flats down given elements in a way that there are no circulating references.

Parameters:
elementList -
Returns:
List of flatreferencer

blowToFullReferencers

public static void blowToFullReferencers(java.util.ArrayList flatReferencers,
                                         java.util.HashMap objectId2ElementMap)
This method blows up flat data to referencing data

Parameters:
flatReferencers -
objectId2ElementMap -