|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Plugin in interface to customize the output of the
ReverseMappingTool
.
Method Summary | |
boolean |
customize(ClassMapping mapping)
Customize the given class information produced by the reverse mapping tool. |
boolean |
customize(FieldMapping mapping)
Customize the given field information produced by the reverse mapping tool. |
String |
getClassCode(ClassMapping mapping)
Return a code template for the given class, or null to use the standard system-generated Java code. |
String |
getDeclaration(FieldMapping field)
Return a code template for the declaration of the given field, or null to use the system-generated default Java code. |
String |
getFieldCode(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. |
String |
getInitialValue(FieldMapping field)
Return code for the initial value for the given field, or null to use the default generated by the system. |
boolean |
isSubclassTable(Table table)
Return true if the given table is for a class that is a subclass of another persistent type. |
void |
setConfiguration(Properties props)
Set configuration properties given by the user. |
void |
setTool(ReverseMappingTool tool)
Set the reverse mapping tool using this customizer. |
boolean |
unmappedTable(Table table)
Notification that a table has gone unmapped. |
Method Detail |
public void setConfiguration(Properties props)
public void setTool(ReverseMappingTool tool)
public boolean isSubclassTable(Table table)
public boolean customize(ClassMapping mapping)
ReverseMappingTool.generateClass(java.lang.String, java.lang.Class)
to creat a new class object,
then setting it with ClassMetaData.setDescribedType(java.lang.Class)
). The
mapping will not have any fields yet when this method is called.public String getClassCode(ClassMapping mapping)
public boolean customize(FieldMapping mapping)
public String getInitialValue(FieldMapping field)
public String getDeclaration(FieldMapping field)
public String getFieldCode(FieldMapping field)
public boolean unmappedTable(Table table)
ReverseMappingTool.newClassMetaData(java.lang.Class, java.lang.Class, int)
to create class metadata,
and ReverseMappingTool.newFieldMetaData(java.lang.String, java.lang.Class, 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(kodo.jdbc.meta.ClassMapping)
and
ReverseMappingTool.addFieldMapping(kodo.jdbc.meta.FieldMapping, kodo.jdbc.meta.ClassMapping)
. These add methods will
call your customize(kodo.jdbc.meta.ClassMapping)
methods in turn.
|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |