|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Exportable
Classes that want to provide the possibility of being exported/imported by the import/export functionality of @enterprise must implement this interface.
| Field Summary | |
|---|---|
static String[][] |
emptyKeys
Empty String array which can be used by classes which don't want to define keys. |
| Method Summary | |
|---|---|
void |
beforeImport(Map<String,Persistent> values)
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 isReference)
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 isReference)
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 interface com.groiss.store.Persistent |
|---|
dbFields, getOid, getStore, getTableName, isFilled, onDelete, onInsert, onRead, onUpdate, setFilled, setOid, setStore |
| Field Detail |
|---|
static final String[][] emptyKeys
| Method Detail |
|---|
String[][] getKeys()
{{"name", "birthdate"}} for a
class defining one key group containing the fields name and
birthdate.
List<Field> exportFields()
throws Exception
Exception
List<Exportable> getRequiredObjects(boolean isReference)
throws Exception
isReference - is this a reference to an exported object
Exception
List<Exportable> getRequiredReferences()
throws Exception
Exception
List<Exportable> getAdditionalObjects(boolean isReference)
throws Exception
isReference - is this a reference to an exported object
Exceptionvoid beforeImport(Map<String,Persistent> values)
values - contains a map of the object identifier (classname:oid) to the new objects.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||