|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.groiss.store.PersistentObject com.groiss.store.ExportablePersistentObject
public abstract class ExportablePersistentObject
this is an extension to the PersistentObject
class
which can be exported via the @enterprise import/export functionality
all required Exportable
-methods are implemented with default behavior
Field Summary |
---|
Fields inherited from class com.groiss.store.PersistentObject |
---|
filled, oid |
Fields inherited from interface com.groiss.store.Exportable |
---|
emptyKeys |
Constructor Summary | |
---|---|
ExportablePersistentObject()
|
Method Summary | |
---|---|
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.lang.String[][] |
getKeys()
A class has to return key groups in order to identify already existing objects of that class. |
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. |
Methods inherited from class com.groiss.store.PersistentObject |
---|
clone, dbFields, equals, getKey, getOid, getStore, getValue, hashCode, isFilled, onDelete, onInsert, onRead, onUpdate, setFilled, setOid, setStore |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.groiss.store.Persistent |
---|
dbFields, getOid, getStore, getTableName, isFilled, onDelete, onInsert, onRead, onUpdate, setFilled, setOid, setStore |
Constructor Detail |
---|
public ExportablePersistentObject()
Method Detail |
---|
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 object
java.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 object
java.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.lang.String[][] getKeys()
Exportable
getKeys
in interface Exportable
{{"name", "birthdate"}}
for a
class defining one key group containing the fields name
and
birthdate
.public java.util.List<java.lang.reflect.Field> exportFields() throws java.lang.Exception
Exportable
exportFields
in interface Exportable
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |