|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Converter
The Converter interface defines a class which is capable of converting
a Persister storage structure. If during initialization the Persister
finds that a storage structure no longer matches the struct definition,
then it will call the Converter to fix it. If it can't be fixed, then
initialization fails.
A Converter provides a way to automate forward migration of data
storage over time.
| Method Summary | |
|---|---|
void |
fixStructure(java.lang.String structure,
java.lang.Object detail)
The storage structure for the specified Struct doesn't match. |
void |
init(DataManagerNode node)
Perform whatever steps are necessary at startup. |
| Method Detail |
|---|
void init(DataManagerNode node)
throws PersisterException
PersisterException
void fixStructure(java.lang.String structure,
java.lang.Object detail)
Each Persister will typically have some form of additional
information that the Converter can utilize in processing. The
actual form of this data depends on the Persister, so it is
information is passed as a generic Object.
The specified structure can also vary with the Persister
implementation. Typically this would be the table name for
relational database persister, or the persistent message name
for an OODB persister.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||