com.atlassian.confluence.importexport.xmlimport.persister
Class HibernateKeyPersister

java.lang.Object
  extended by com.atlassian.confluence.importexport.xmlimport.persister.HibernateKeyPersister
All Implemented Interfaces:
ObjectPersister

public class HibernateKeyPersister
extends Object
implements ObjectPersister

Persister for legacy HibernateKey objects that need to be converted to AliasedKeys on import.


Constructor Summary
HibernateKeyPersister()
           
 
Method Summary
 List<TransientHibernateHandle> persist(ImportProcessorContext context, ImportedObject object)
          Persist a given imported object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateKeyPersister

public HibernateKeyPersister()
Method Detail

persist

public List<TransientHibernateHandle> persist(ImportProcessorContext context,
                                              ImportedObject object)
                                       throws net.sf.hibernate.HibernateException
Description copied from interface: ObjectPersister
Persist a given imported object.

Specified by:
persist in interface ObjectPersister
Parameters:
context - the context of the current import operation
object - the object to save.
Returns:
a list of handles of the objects that were saved. If IDs are being rewritten on import, this list should still contain the pre-rewriting ID as it appears in the backup file
Throws:
net.sf.hibernate.HibernateException


Copyright © 2003–2015 Atlassian. All rights reserved.