|
|||||||||
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 java.lang.String[][] |
emptyKeys
Empty String array which can be used by classes which don't want to define keys. |
Method Summary | |
---|---|
void |
beforeImport(java.util.Map<java.lang.String,Persistent> values)
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 isReference)
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 isReference)
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 interface com.groiss.store.Persistent |
---|
dbFields, getOid, getStore, getTableName, isFilled, onDelete, onInsert, onRead, onUpdate, setFilled, setOid, setStore |
Field Detail |
---|
static final java.lang.String[][] emptyKeys
Method Detail |
---|
java.lang.String[][] getKeys()
{{"name", "birthdate"}}
for a
class defining one key group containing the fields name
and
birthdate
.java.util.List<java.lang.reflect.Field> exportFields() throws java.lang.Exception
java.lang.Exception
java.util.List<Exportable> getRequiredObjects(boolean isReference) throws java.lang.Exception
isReference
- is this a reference to an exported object
java.lang.Exception
java.util.List<Exportable> getRequiredReferences() throws java.lang.Exception
java.lang.Exception
java.util.List<Exportable> getAdditionalObjects(boolean isReference) throws java.lang.Exception
isReference
- is this a reference to an exported object
java.lang.Exception
void beforeImport(java.util.Map<java.lang.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 |