wt.ixb.publicforhandlers
Class ExpImpForVersionedObject
java.lang.Object
wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
wt.ixb.publicforhandlers.ClassExporterImporterTemplate
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 classes/interfaces inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
wt.ixb.publicforhandlers.ClassExporterImporterTemplate.ContentHolderCommitListener |
| Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
createFileXMLOnExport, exportAttributes, exportAttributes, exportObject, finalizeImportObject, getRootTag, importObjectAttributes, importObjectAttributesAfterStore, rememberNewObInfo, storeAdditionalInfo, storeElement |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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