|
||||||||||
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.Map properties)
Adds properties for this instance from any properties configured in the JavaModelGeneratorConfiguration. |
void |
addContextProperties(java.util.Map properties)
Adds properties for this instance from any properties configured in the current context. |
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 |
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.Map properties)
properties
- All properties from the configurationvoid addContextProperties(java.util.Map properties)
properties
- All properties from the configurationvoid 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 |