|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface NewObjectPersister
This provides the interface for a new object to persist its data to a data source
| Method Summary | |
|---|---|
void |
finished()
This is called after all the initialization and recordProperty calls are finished |
java.lang.String |
getObjectId()
This is called to determine the object id of the new object. |
ObjectId |
getParent()
This is called to find out from the data source what parent should be used for this object now that it is persisted |
DataSource |
getSource()
This is called to determine the data source of the new object. |
void |
initializeAsList(java.util.List<? extends java.lang.Object> values)
If this is called it indicates that the object is an array/list. |
void |
recordProperty(java.lang.String name,
java.lang.Object value)
This is called for each of the properties of the new object that need to be persisted. |
boolean |
reloadFromSource()
Indicates whether the object should be reloaded from the source after being persisted |
void |
start()
This is called at the beginning of the persisting process |
| Method Detail |
|---|
void start()
throws java.lang.Exception
java.lang.Exception
void initializeAsList(java.util.List<? extends java.lang.Object> values)
throws java.lang.Exception
The - values of the list
java.lang.Exception
void recordProperty(java.lang.String name,
java.lang.Object value)
throws java.lang.Exception
name - value - - This value can be
java.lang.ExceptionObjectId getParent()
void finished()
throws java.lang.Exception
java.lang.Exceptionboolean reloadFromSource()
DataSource getSource()
java.lang.String getObjectId()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||