|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Plugin in interface to customize the output of the
ReverseMappingTool.
| Method Summary | |
boolean |
customize(com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping mapping)
Customize the given class information produced by the reverse mapping tool. |
boolean |
customize(com.solarmetric.rd.kodo.impl.jdbc.meta.FieldMapping mapping)
Customize the given field information produced by the reverse mapping tool. |
java.lang.String |
getClassCode(com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping mapping)
Return a code template for the given class, or null to use the standard system-generated Java code. |
java.lang.String |
getDeclaration(com.solarmetric.rd.kodo.impl.jdbc.meta.FieldMapping field)
Return a code template for the declaration of the given field, or null to use the system-generated default Java code. |
java.lang.String |
getFieldCode(com.solarmetric.rd.kodo.impl.jdbc.meta.FieldMapping field)
Return a code template for the get/set methods of the given field, or null to use the system-generated default Java code. |
java.lang.String |
getInitialValue(com.solarmetric.rd.kodo.impl.jdbc.meta.FieldMapping field)
Return code for the initial value for the given field, or null to use the default generated by the system. |
boolean |
isSubclassTable(com.solarmetric.rd.kodo.impl.jdbc.schema.Table table)
Return true if the given table is for a class that is a subclass of another persistent type. |
void |
setConfiguration(java.util.Properties props)
Set configuration properties given by the user. |
void |
setTool(com.solarmetric.rd.kodo.impl.jdbc.meta.ReverseMappingTool tool)
Set the reverse mapping tool using this customizer. |
boolean |
unmappedTable(com.solarmetric.rd.kodo.impl.jdbc.schema.Table table)
Notification that a table has gone unmapped. |
| Method Detail |
public void setConfiguration(java.util.Properties props)
public void setTool(com.solarmetric.rd.kodo.impl.jdbc.meta.ReverseMappingTool tool)
public boolean isSubclassTable(com.solarmetric.rd.kodo.impl.jdbc.schema.Table table)
public boolean customize(com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping mapping)
ReverseMappingTool.generateClass(java.lang.String, java.lang.Class) to creat a new class object,
then setting it with ClassMapping.setDescribedType(java.lang.Class)). The
mapping will not have any fields yet when this method is called.
public java.lang.String getClassCode(com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping mapping)
public boolean customize(com.solarmetric.rd.kodo.impl.jdbc.meta.FieldMapping mapping)
public java.lang.String getInitialValue(com.solarmetric.rd.kodo.impl.jdbc.meta.FieldMapping field)
public java.lang.String getDeclaration(com.solarmetric.rd.kodo.impl.jdbc.meta.FieldMapping field)
public java.lang.String getFieldCode(com.solarmetric.rd.kodo.impl.jdbc.meta.FieldMapping field)
public boolean unmappedTable(com.solarmetric.rd.kodo.impl.jdbc.schema.Table table)
ReverseMappingTool.newClassMetaData(java.lang.Class, java.lang.Class, int) to create class metadata,
and ReverseMappingTool.newFieldMetaData(java.lang.String, java.lang.Class, com.solarmetric.rd.kodo.meta.ClassMetaData) to create field
metadata. Once the metadata is created, you can wrap it in
ClassMapping and FieldMapping instances. Then, add
the mappings (class first) to the tool via
ReverseMappingTool.addClassMapping(com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping) and
ReverseMappingTool.addFieldMapping(com.solarmetric.rd.kodo.impl.jdbc.meta.FieldMapping, com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping). These add methods will
call your customize(com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping) methods in turn.
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||