org.rhq.core.domain.util
Class EntitySerializer

java.lang.Object
  extended by org.rhq.core.domain.util.EntitySerializer

public class EntitySerializer
extends Object

A utility specifically tailored to entities which will iterate over its persistence fields with a consistent ordering for serialization and deserialization. If this class is passed a non-entity object, it will ignore field-level annotations and just serialize and deserialize all fields in that object.


Constructor Summary
EntitySerializer()
           
 
Method Summary
static void main(String[] args)
           
static void readExternalRemote(Object object, ObjectInput in)
           
static void writeExternalRemote(Object object, ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntitySerializer

public EntitySerializer()
Method Detail

writeExternalRemote

public static void writeExternalRemote(Object object,
                                       ObjectOutput out)
                                throws IOException
Throws:
IOException

readExternalRemote

public static void readExternalRemote(Object object,
                                      ObjectInput in)
                               throws IOException,
                                      ClassNotFoundException
Throws:
IOException
ClassNotFoundException

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2008-2009 RHQ Project Advisory Board (Red Hat, Inc.). All Rights Reserved.