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

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

public class HibernateMembershipPersister
extends AbstractObjectPersister
implements ObjectPersister

Persists HibernateMembership instances, in a way that does not violate any unique constraints.


Field Summary
static org.slf4j.Logger log
           
 
Fields inherited from class com.atlassian.confluence.importexport.xmlimport.persister.AbstractObjectPersister
entityPersister, importedObject, persisterOperations, unsatisfiedObjectDependencies
 
Constructor Summary
HibernateMembershipPersister()
           
 
Method Summary
 List<TransientHibernateHandle> persist(ImportProcessorContext context, ImportedObject importedObject)
          Persist a given imported object.
 
Methods inherited from class com.atlassian.confluence.importexport.xmlimport.persister.AbstractObjectPersister
getPrimitivePropertyValue, getReferencePropertyValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final org.slf4j.Logger log
Constructor Detail

HibernateMembershipPersister

public HibernateMembershipPersister()
Method Detail

persist

public List<TransientHibernateHandle> persist(ImportProcessorContext context,
                                              ImportedObject importedObject)
                                       throws Exception
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
importedObject - 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:
Exception - if something goes wrong. To avoid duplication of "wrap everything in one exception type" code in every persister, it is assumed wrapping happens at a higher level.


Copyright © 2003–2015 Atlassian. All rights reserved.