org.figure8.join.core.persistence
Class HibernateXmlExportHandler

java.lang.Object
  extended by org.figure8.join.core.persistence.HibernateXmlExportHandler

public class HibernateXmlExportHandler
extends java.lang.Object

This utility class is an Xml export handler for Hibernate entity objects. It is adapted from the one written by Ara Abrahamian and available on http://opensource.atlassian.com/projects/hibernate/browse/HB-493.

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux

Constructor Summary
HibernateXmlExportHandler(net.sf.hibernate.SessionFactory factory, java.util.Collection entityObjects)
          Creates a new instance of XmlExportHandler
 
Method Summary
 void setEncoding(java.lang.String encoding)
           
 void writeEntityObjects(java.io.Writer writer)
          Write the entity objects specified during construction as their Xml form
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateXmlExportHandler

public HibernateXmlExportHandler(net.sf.hibernate.SessionFactory factory,
                                 java.util.Collection entityObjects)
Creates a new instance of XmlExportHandler

Method Detail

setEncoding

public void setEncoding(java.lang.String encoding)
Parameters:
encoding - The encoding for Xml output

writeEntityObjects

public void writeEntityObjects(java.io.Writer writer)
                        throws net.sf.hibernate.HibernateException,
                               java.io.IOException
Write the entity objects specified during construction as their Xml form

Parameters:
writer - Use this writer to output the Xml representation
Throws:
net.sf.hibernate.HibernateException - if metadata on entity objects cannot be retrieved
java.io.IOException - if writing problems occurs


Copyright © 2005-2008 Join. All Rights Reserved.