com.atlassian.confluence.importexport.impl
Class XMLDatabinder

java.lang.Object
  extended by com.atlassian.confluence.importexport.impl.XMLDatabinder

public class XMLDatabinder
extends Object

Converts Hibernate data structures into an XML format used for backups

See Also:
com.atlassian.confluence.importexport.xmlimport.legacy.ReverseDatabinder

Field Summary
static String ISO_DATE_FORMAT
           
static String ISO_TIMESTAMP_FORMAT
           
 
Constructor Summary
XMLDatabinder(net.sf.hibernate.engine.SessionFactoryImplementor factory, String encoding, ObjectHandleTranslator translator)
           
 
Method Summary
 XMLDatabinder bind(Object object)
           
 XMLDatabinder bindAll(Collection objects)
           
 LinkedHashSet collectObjectGraph()
          Traverse the object hierarchy of the bounds objects and identify all of the entities that will need to be written to the xml file.
 void setInitializeLazy(boolean initializeLazy)
           
 void toGenericXML(Writer writer, com.atlassian.core.util.ProgressMeter progress)
           
 XMLDatabinder unbind(Object object)
           
 XMLDatabinder unbindAll(Collection objects)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ISO_TIMESTAMP_FORMAT

public static final String ISO_TIMESTAMP_FORMAT
See Also:
Constant Field Values

ISO_DATE_FORMAT

public static final String ISO_DATE_FORMAT
See Also:
Constant Field Values
Constructor Detail

XMLDatabinder

public XMLDatabinder(net.sf.hibernate.engine.SessionFactoryImplementor factory,
                     String encoding,
                     ObjectHandleTranslator translator)
Method Detail

setInitializeLazy

public void setInitializeLazy(boolean initializeLazy)

toGenericXML

public void toGenericXML(Writer writer,
                         com.atlassian.core.util.ProgressMeter progress)
                  throws net.sf.hibernate.HibernateException,
                         IOException
Throws:
net.sf.hibernate.HibernateException
IOException

bind

public XMLDatabinder bind(Object object)

unbind

public XMLDatabinder unbind(Object object)

bindAll

public XMLDatabinder bindAll(Collection objects)

unbindAll

public XMLDatabinder unbindAll(Collection objects)

collectObjectGraph

public LinkedHashSet collectObjectGraph()
                                 throws net.sf.hibernate.HibernateException
Traverse the object hierarchy of the bounds objects and identify all of the entities that will need to be written to the xml file.

Throws:
net.sf.hibernate.HibernateException


Copyright © 2003-2012 Atlassian. All Rights Reserved.