wt.ixb.actor
Class RestoreActor

java.lang.Object
  extended bywt.ixb.actor.ActorTemplate
      extended bywt.ixb.actor.RestoreActor
All Implemented Interfaces:
Actor

public class RestoreActor
extends ActorTemplate



Supported API: true

Extendable: false


Field Summary
private  boolean objectExist
           
private static String RESOURCE
           
 
Fields inherited from class wt.ixb.actor.ActorTemplate
 
Constructor Summary
RestoreActor()
           
 
Method Summary
 Object createObject(ClassExporterImporter handler, IxbElement fileXml, Importer importer)
          Create an object instance.
 Object importObjectAttributes(ClassExporterImporter handler, Object object, IxbElement fileXml, Importer importer)
          Import attributes specific for Restore (before the object is stored)

Supported API: true
 Object importObjectAttributesAfterStore(ClassExporterImporter handler, Object object, IxbElement fileXml, Importer importer)
          Import attributes specific for Restore (after the object is stored)

Supported API: true
 Object storeObject(ClassExporterImporter handler, Object o, IxbElement fileXml, Importer importer)
          Persists the specified object as created by createObject(ClassExporterImporter handler, IxbElement fileXml, Importer importer).
 
Methods inherited from class wt.ixb.actor.ActorTemplate
checkApplicabilityOfAction, performPostExportAction, performPreExportAction, previewObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

objectExist

private boolean objectExist
Constructor Detail

RestoreActor

public RestoreActor()
Method Detail

createObject

public Object createObject(ClassExporterImporter handler,
                           IxbElement fileXml,
                           Importer importer)
                    throws WTException
Create an object instance. Usually the instance will not be persisted within this method context.

Supported API: true

Specified by:
createObject in interface Actor
Overrides:
createObject in class ActorTemplate
Parameters:
handler - The import class handler for the corresponding XML file.
fileXml - the XML element to be imported.
importer - The Importer instance that represents the context of the import operation.
Returns:
Object
Throws:
WTException
See Also:
method storeObject(ClassExporterImporter handler, Object object, IxbElement fileXml, Importer importer)

importObjectAttributes

public Object importObjectAttributes(ClassExporterImporter handler,
                                     Object object,
                                     IxbElement fileXml,
                                     Importer importer)
                              throws WTException
Import attributes specific for Restore (before the object is stored)

Supported API: true

Specified by:
importObjectAttributes in interface Actor
Overrides:
importObjectAttributes in class ActorTemplate
Parameters:
handler -
object -
fileXml -
importer -
Returns:
Object
Throws:
WTException

importObjectAttributesAfterStore

public Object importObjectAttributesAfterStore(ClassExporterImporter handler,
                                               Object object,
                                               IxbElement fileXml,
                                               Importer importer)
                                        throws WTException
Import attributes specific for Restore (after the object is stored)

Supported API: true

Specified by:
importObjectAttributesAfterStore in interface Actor
Overrides:
importObjectAttributesAfterStore in class ActorTemplate
Parameters:
handler -
object -
fileXml -
importer -
Returns:
Object
Throws:
WTException

storeObject

public Object storeObject(ClassExporterImporter handler,
                          Object o,
                          IxbElement fileXml,
                          Importer importer)
                   throws WTException
Persists the specified object as created by createObject(ClassExporterImporter handler, IxbElement fileXml, Importer importer).

Supported API: true

Specified by:
storeObject in interface Actor
Overrides:
storeObject in class ActorTemplate
Parameters:
handler - The import class handler for the corresponding XML file.
fileXml - the XML element to be imported.
importer - The Importer instance that represents the context of the import operation.
o - The object to be persisted.
Returns:
Object
Throws:
WTException