wt.ixb.publicforhandlers
Class ExpImpForVersionedObject

java.lang.Object
  extended by wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
      extended by wt.ixb.publicforhandlers.ClassExporterImporterTemplate
          extended by wt.ixb.publicforhandlers.ExpImpForVersionedObject
All Implemented Interfaces:
ClassExporter, ClassExporterImporter, ElementImporter

public abstract class ExpImpForVersionedObject
extends ClassExporterImporterTemplate

Abstract class, most of standard export/import handlers extend. This class implements some typical model of export/import process.

Supported API: true


Nested Class Summary
 
Nested classes/interfaces inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate
wt.ixb.publicforhandlers.ClassExporterImporterTemplate.ContentHolderCommitListener
 
Method Summary
 Object importElement(IxbElement fileXML, Importer importer)
          Implements typical import process

Supported API: true
 Object storeVersionedObject(Object object, IxbElement fileXML, Importer importer)
          Stores object into database.
 
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate
createFileXMLOnExport, exportAttributes, exportAttributes, exportObject, finalizeImportObject, getRootTag, importObjectAttributes, importObjectAttributesAfterStore, rememberNewObInfo, storeAdditionalInfo, storeElement
 
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
checkConflicts, finalizeCheckConflicts, finalizeExport, getAdditionalImportPriority, getImportPriority, getObjectDisplayID, prepareForCheckConflicts, prepareForImport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

importElement

public Object importElement(IxbElement fileXML,
                            Importer importer)
                     throws WTException
Implements typical import process

Supported API: true

Specified by:
importElement in interface ElementImporter
Overrides:
importElement in class ClassExporterImporterTemplate
Parameters:
fileXML - the XML element to be imported.
importer - The Importer instance that represents the context of the import operation.
Returns:
Object
Throws:
WTException

storeVersionedObject

public Object storeVersionedObject(Object object,
                                   IxbElement fileXML,
                                   Importer importer)
                            throws WTException
Stores object into database. The manner of storing is decided by actionName That is the general template how to store object. It looks like it will be good for many classes. If for some class it is not good then it can be override this method

Supported API: true

Throws:
WTException