|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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(Map<String,Persistent> oidmapping)
This method is called by the importer after the object is filled with data. |
List<Field> |
exportFields()
Here a class can return the names of fields which should be exported during an @enterprise export. |
List<Exportable> |
getAdditionalObjects(boolean isMainObject)
return a list of objects that must be exported with this object (after it). |
String[][] |
getKeys()
A class has to return key groups in order to identify already existing objects of that class. |
List<Exportable> |
getRequiredObjects(boolean isMainObject)
This method is called by the exporter before an object is exported. |
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 List<Exportable> getRequiredObjects(boolean isMainObject)
throws Exception
Exportable
getRequiredObjects in interface ExportableisMainObject - is this a reference to an exported object
Exception
public List<Exportable> getAdditionalObjects(boolean isMainObject)
throws Exception
Exportable
getAdditionalObjects in interface ExportableisMainObject - is this a reference to an exported object
Exception
public List<Exportable> getRequiredReferences()
throws Exception
Exportable
getRequiredReferences in interface ExportableExceptionpublic void beforeImport(Map<String,Persistent> oidmapping)
Exportable
beforeImport in interface Exportableoidmapping - contains a map of the object identifier (classname:oid) to the new objects.public String[][] getKeys()
Exportable
getKeys in interface Exportable{{"name", "birthdate"}} for a
class defining one key group containing the fields name and
birthdate.
public List<Field> exportFields()
throws Exception
Exportable
exportFields in interface ExportableException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||