|
SolarMetric Kodo JDO 2.4.3 generated on March 27 2003 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.solarmetric.kodo.impl.jdbc.ormapping.MetaDataVerifier
Verifies that metadata for persistence capable types is consistent with the capabilities of the O/R mapping layer. The generic JDO subsystem can handle the full JDO specification, but the JDBC O/R layer cannot yet map the full range of Java objects. As the capabilities of the O/R layer are enhanced, this class should be trimmed to reflect them.
| Inner Class Summary | |
|---|---|
static class |
MetaDataVerifier.Msg
Represents a message to the user about the metadata verification. |
| Constructor Summary | |
|---|---|
MetaDataVerifier(Configuration conf,
ClassMetaData meta)
Constructor. |
|
| Method Summary | |
|---|---|
void |
clearMessages()
Clears the messages that have been accumulated from the verification thus far. |
MetaDataVerifier.Msg[] |
getMessages()
Returns the accumulated messages from the verification that has been performed thus far. |
static void |
main(String[] args)
Usage: java com.solarmetric.kodo.impl.jdbc.MetaDataVerifier [class name | .class file | .jdo file]+ |
static void |
main(String[] args,
PrintStream out)
|
void |
verifyAll()
Verifies the given metadata against he current capabilities of the O/R layer. |
void |
verifyFields()
Checks that field types are persistable. |
void |
verifyImplicitPersistence()
Checks that the field meta datas are not being implicitly set to persistent, possibly causing unexpected serialization behavior. |
void |
verifyPrimaryKeys()
Warns if the user has specified primary key fields that are not persistable as simple value mappings. |
void |
verifySuperclass()
Warns if the described type has a persistence-capable superclass but does not appear to specify it in the metadata. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MetaDataVerifier(Configuration conf,
ClassMetaData meta)
meta - the metadata to verify| Method Detail |
public static void main(String[] args)
throws ClassNotFoundException,
IOException
Usage: java com.solarmetric.kodo.impl.jdbc.MetaDataVerifier [class name | .class file | .jdo file]+
Each argument can be either the full class name of a persistence capable type, the path to the .class file for the type, or the path to a .jdo file listing one or more types. If a given type has JDO metadata, it will be verified against the current capabilities of the O/R mapping layer. If not, it will be ignored.
public static void main(String[] args,
PrintStream out)
throws ClassNotFoundException,
IOException
public void verifyAll()
public void clearMessages()
public MetaDataVerifier.Msg[] getMessages()
public void verifySuperclass()
public void verifyPrimaryKeys()
public void verifyFields()
public void verifyImplicitPersistence()
|
SolarMetric Kodo JDO 2.4.3 generated on March 27 2003 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||