public abstract class ExportablePersistentObject extends PersistentObject implements Exportable
PersistentObject
class
which can be exported via the @enterprise import/export functionality
all required Exportable
methods are implemented with default behaviorfilled, oid
emptyKeys
Constructor and Description |
---|
ExportablePersistentObject() |
Modifier and Type | Method and Description |
---|---|
void |
beforeImport(java.util.Map<java.lang.String,Persistent> oidmapping)
This method is called by the importer after the object is filled with data.
|
java.util.List<java.lang.reflect.Field> |
exportFields()
Here a class can return the names of fields which should be exported
during an @enterprise export.
|
java.util.List<Exportable> |
getAdditionalObjects(boolean isMainObject)
return a list of objects that must be exported with this object (after it).
|
java.util.List<Exportable> |
getRequiredObjects(boolean isMainObject)
This method is called by the exporter before an object is exported.
|
java.util.List<Exportable> |
getRequiredReferences()
Returns a list of references that cannot be found in the persistent fields.
|
afterDelete, afterInsert, afterRead, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, clone, dbFields, equals, getKey, getKeys, getLocalClassName, getLocalObjectName, getOid, getStore, getValue, hashCode, isFilled, isValid, onDelete, onInsert, onRead, onUpdate, setFilled, setOid, setOid, setStore, toListString
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
afterDelete, afterInsert, afterRead, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, dbFields, getKey, getKeys, getLocalClassName, getLocalObjectName, getOid, getStore, getTableName, getValue, isFilled, isValid, setFilled, setOid, setOid, setStore, toListString
public java.util.List<Exportable> getRequiredObjects(boolean isMainObject) throws java.lang.Exception
Exportable
getRequiredObjects
in interface Exportable
isMainObject
- is this a reference to an exported objectjava.lang.Exception
public java.util.List<Exportable> getAdditionalObjects(boolean isMainObject) throws java.lang.Exception
Exportable
getAdditionalObjects
in interface Exportable
isMainObject
- is this a reference to an exported objectjava.lang.Exception
public java.util.List<Exportable> getRequiredReferences() throws java.lang.Exception
Exportable
getRequiredReferences
in interface Exportable
java.lang.Exception
public void beforeImport(java.util.Map<java.lang.String,Persistent> oidmapping)
Exportable
beforeImport
in interface Exportable
oidmapping
- contains a map of the object identifier (classname:oid) to the new objects.public java.util.List<java.lang.reflect.Field> exportFields() throws java.lang.Exception
Exportable
exportFields
in interface Exportable
java.lang.Exception
@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.