|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JavaModelGenerator
This interface describes methods needed in any Java model generator. A Java model generator is used to generate POJOs that match the structure of the table. Typically this includes:
| Method Summary | |
|---|---|
void |
addConfigurationProperties(java.util.Properties properties)
Adds properties for this instance from any properties configured in the JavaModelGeneratorConfiguration. |
FullyQualifiedJavaType |
getBaseRecordType(FullyQualifiedTable table)
|
FullyQualifiedJavaType |
getExampleType(FullyQualifiedTable table)
|
java.util.List |
getGeneratedJavaFiles(IntrospectedTable introspectedTable,
ProgressCallback callback)
This method returns a list of GenerateJavaFile objects. |
FullyQualifiedJavaType |
getPrimaryKeyType(FullyQualifiedTable table)
|
FullyQualifiedJavaType |
getRecordWithBLOBsType(FullyQualifiedTable table)
|
void |
setAbatorContext(AbatorContext abatorContext)
Sets the instance of the AbatorConfiguration object associated with this instance. |
void |
setTargetPackage(java.lang.String targetPackage)
Sets the target package of the generator taken from the JavaModelGeneratorConfiguration element. |
void |
setTargetProject(java.lang.String targetProject)
Sets the target project of the generator taken from the JavaModelGeneratorConfiguration element. |
void |
setWarnings(java.util.List warnings)
Abator will supply a list to this method. |
| Method Detail |
|---|
void addConfigurationProperties(java.util.Properties properties)
properties - All properties from the configurationvoid setAbatorContext(AbatorContext abatorContext)
abatorContext - The current AbatorContextvoid setWarnings(java.util.List warnings)
warnings - void setTargetPackage(java.lang.String targetPackage)
targetPackage - the configuration element's target packagevoid setTargetProject(java.lang.String targetProject)
targetProject - the configuration element's target projectFullyQualifiedJavaType getPrimaryKeyType(FullyQualifiedTable table)
FullyQualifiedJavaType getBaseRecordType(FullyQualifiedTable table)
table - the table for which the name should be generated
FullyQualifiedJavaType getExampleType(FullyQualifiedTable table)
table - the table for which the name should be generated
FullyQualifiedJavaType getRecordWithBLOBsType(FullyQualifiedTable table)
table - the table for which the name should be generated
java.util.List getGeneratedJavaFiles(IntrospectedTable introspectedTable,
ProgressCallback callback)
introspectedTable - callback -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||