| java.lang.Object com.completex.objective.tools.generators.CompositePoGenerator com.completex.objective.tools.generators.CompositeBeanGenerator
Method Summary | |
protected void | addBaseImports(Map templateObjectReference, MetaModelsExtractor.ExtractStructEntry baseEntry, BaseExtractHandler handler) | protected void | addCompoundExtraImports(Map baseTemplate, Map templateObjectReference) | protected String | className(MetaObjectReference metaObjectReference, String objectKey, LineStruct lineStruct) | protected void | generateMapper(LineStructBlock block) | protected LinkedHashMap | getClassMap() | protected String | getDefaultBeanPoMapperTemplatePath() | protected String | getDefaultClassTemplatePath() | protected String | getDefaultInterfaceTemplatePath() | protected ClassStruct | getParentClassName(MetaObjectReference metaObjectReference, MetaObjectModel metaObjectModel, String objectKey, LineStruct classLineStruct, LineStruct intfLineStruct) | protected ClassStruct | getParentInterfaceName(MetaObjectReference metaObjectReference, MetaObjectModel metaObjectModel, String objectKey, LineStruct classLineStruct, LineStruct intfLineStruct) | protected LineStructBlock | initializeFromSdl(Map properties) | protected String | interfaceName(MetaObjectReference metaObjectReference, String objectKey, LineStruct lineStruct) | protected void | loadMetaObjectModel(String complexModelPath) | public static void | main(String[] args) | protected void | postGenerateAll(MetaObjectModel metaObjectModel, LineStructBlock block) | protected void | postGenerateClasses(MetaObjectModel metaObjectModel, LineStructBlock block) | protected void | postGenerateInterfaces(MetaObjectModel metaObjectModel, LineStructBlock block) | protected void | processClassTemplate(Template template, Map templateObjectReference, MetaObjectReference metaObjectReference, MetaObjectModel metaObjectModel, MetaModelsExtractor.ExtractStruct extractStruct, boolean root, Writer writer, boolean classesGeneratingStage) | protected String | resolveChildInterfaceName(MetaObjectReference metaObjectReference, Referencing child, MetaObjectModel metaObjectModel, String childClassName, String objectKey, LineStruct childLineStruct) | protected LineStruct | resolveChildLineStruct(ComplexChildHandler handler, LineStruct intfLineStruct, LineStruct classLineStruct) | protected String | resolveFixes(String className, LineStruct lineStruct) | protected LineStruct | toLineStruct(PropertyMap propertyMap, boolean interfaces, boolean validatePoProperties) | protected LineStruct | toRelatedLineStruct(PropertyMap generic, boolean interfaces, boolean validatePoProperties) | protected String | typedName(String childName, boolean mixedCase, Link.RelationshipType relationshipType) |
DEFAULT_BEAN_TO_PO_MAPPER_CLASS | final public static String DEFAULT_BEAN_TO_PO_MAPPER_CLASS(Code) | | |
TAG_BASIC_OBJECT | final protected static String TAG_BASIC_OBJECT(Code) | | |
addCompoundExtraImports | protected void addCompoundExtraImports(Map baseTemplate, Map templateObjectReference)(Code) | | |
generateMapper | protected void generateMapper(LineStructBlock block) throws IOException, TemplateException(Code) | | |
getDefaultBeanPoMapperTemplatePath | protected String getDefaultBeanPoMapperTemplatePath()(Code) | | |
getDefaultClassTemplatePath | protected String getDefaultClassTemplatePath()(Code) | | |
getDefaultInterfaceTemplatePath | protected String getDefaultInterfaceTemplatePath()(Code) | | |
initializeFromSdl | protected LineStructBlock initializeFromSdl(Map properties) throws IOException(Code) | | |
resolveChildLineStruct | protected LineStruct resolveChildLineStruct(ComplexChildHandler handler, LineStruct intfLineStruct, LineStruct classLineStruct)(Code) | | |
toLineStruct | protected LineStruct toLineStruct(PropertyMap propertyMap, boolean interfaces, boolean validatePoProperties) throws IOException(Code) | | |
toRelatedLineStruct | protected LineStruct toRelatedLineStruct(PropertyMap generic, boolean interfaces, boolean validatePoProperties) throws IOException(Code) | | |
Methods inherited from com.completex.objective.tools.generators.CompositePoGenerator | protected void addCompoundExtraImports(Map baseTemplate, Map templateObjectReference)(Code)(Java Doc) protected void addToImports(String extraImports, ArrayList imports)(Code)(Java Doc) protected ClassStruct baseClassNameByDependency(MetaObjectReference metaObjectReference, Referencing child, MetaObjectModel metaObjectModel, String objectKey)(Code)(Java Doc) protected ClassStruct baseInterfaceNameByDependency(MetaObjectReference metaObjectReference, Referencing child, MetaObjectModel metaObjectModel, String objectKey)(Code)(Java Doc) protected String buildConstructorArgs(MetaMultipleResultFactory multipleResultFactory)(Code)(Java Doc) protected String className(MetaObjectReference metaObjectReference, String objectKey, LineStruct lineStruct)(Code)(Java Doc) public Map extractProperties(String propertiesPath) throws IOException(Code)(Java Doc) public Map extractProperties(String propertiesPath, Properties env) throws IOException(Code)(Java Doc) protected MetaModelsExtractor.ExtractStructEntry extractStructEntryByRef(MetaRef metaRef, MetaObjectModel metaObjectModel, Set seen)(Code)(Java Doc) protected String fullConstName(String className, String columnName)(Code)(Java Doc) protected void generateClasses(MetaObjectModel metaObjectModel, LineStructBlock block) throws IOException, TemplateException, ClassNotFoundException, IllegalAccessException, InstantiationException(Code)(Java Doc) protected void generateInterfaces(MetaObjectModel metaObjectModel, LineStructBlock block) throws IOException, TemplateException, ClassNotFoundException, IllegalAccessException, InstantiationException(Code)(Java Doc) protected PropertyMap getAllPropertyMap()(Code)(Java Doc) protected String getDefaultClassTemplatePath()(Code)(Java Doc) protected String getDefaultInterfaceTemplatePath()(Code)(Java Doc) public MetaModelsExtractor.ExtractStruct getExtractStruct()(Code)(Java Doc) protected List getImports(Map templateObjectReference)(Code)(Java Doc) public Log getLogger()(Code)(Java Doc) public MetaObjectModel getMetaObjectModel()(Code)(Java Doc) public static String getOrIs(MetaColumn column)(Code)(Java Doc) protected ClassStruct getParentClassName(MetaObjectReference metaObjectReference, MetaObjectModel metaObjectModel, String objectKey, LineStruct classLineStruct, LineStruct intfLineStruct)(Code)(Java Doc) protected ClassStruct getParentInterfaceName(MetaObjectReference metaObjectReference, MetaObjectModel metaObjectModel, String objectKey, LineStruct classLineStruct, LineStruct intfLineStruct)(Code)(Java Doc) protected Template getTemplate(String templatePath, String defaultTemplateFileName) throws IOException(Code)(Java Doc) protected LineStructBlock initializeExtractStruct(Map map, Properties env) throws Exception(Code)(Java Doc) protected LineStructBlock initializeFromSdl(Map properties) throws IOException(Code)(Java Doc) protected String interfaceName(MetaObjectReference metaObjectReference, String objectKey, LineStruct lineStruct)(Code)(Java Doc) public boolean isGenerateIntefaces()(Code)(Java Doc) protected static boolean isMainPattern(MetaTable metaTable)(Code)(Java Doc) protected boolean isMainPattern(String name)(Code)(Java Doc) static boolean isMixedCase(String name)(Code)(Java Doc) protected boolean isReversedInsertOrder(MetaTable parentTable, MetaTable childTable)(Code)(Java Doc) public static String javaConstName(String prefix, String name)(Code)(Java Doc) public static String javaName(String name, String prefix, String suffix, boolean calitalizeFirstChar)(Code)(Java Doc) public static String javaName(String name, String prefix, String suffix, boolean calitalizeFirstChar, boolean mainPattern)(Code)(Java Doc) public String javaType(ColumnType type)(Code)(Java Doc) protected void loadMetaObjectModel(String complexModelPath) throws IOException(Code)(Java Doc) protected MetaModel loadModelFromFile(ModelLoaderAdapter modelFileLoaderAdapter) throws Exception(Code)(Java Doc) public static String lowerFirstChar(String name)(Code)(Java Doc) public static void main(String[] args) throws Exception(Code)(Java Doc) protected MetaTable metaTableByRef(MetaRef metaRef, MetaObjectModel metaObjectModel, Set seen)(Code)(Java Doc) protected void populateIndexConsts(ForeignKeys foreignKeys, MetaTable parentTable, MetaTable childTable, String parentClassName, String childClassName, ArrayList parentIndexConsts, ArrayList childIndexConsts)(Code)(Java Doc) protected void populateInterfaceTemplate(MetaObjectModel metaObjectModel, LineStruct lineStruct, String templateName) throws ClassNotFoundException, InstantiationException, IllegalAccessException, IOException, TemplateException(Code)(Java Doc) protected void populatePks(MetaTable table, Map templateModel)(Code)(Java Doc) protected String populatePks(MetaTable table, ArrayList pkVars, String pkArgs)(Code)(Java Doc) protected void postGenerateAll(MetaObjectModel metaObjectModel, LineStructBlock lineStructBlock) throws IOException, TemplateException(Code)(Java Doc) protected void postGenerateClasses(MetaObjectModel metaObjectModel, LineStructBlock block) throws IOException, TemplateException(Code)(Java Doc) protected void postGenerateInterfaces(MetaObjectModel metaObjectModel, LineStructBlock lineStructBlock) throws IOException, TemplateException(Code)(Java Doc) protected static void printGeneratedClassFileInfo(String classFileName)(Code)(Java Doc) protected static void printGeneratedClassFileInfo(String classFileName, String outputDir)(Code)(Java Doc) protected static void printGeneratedIn(String outputDir)(Code)(Java Doc) protected static void println(String s)(Code)(Java Doc) public void process(String propertiesPath) throws Exception(Code)(Java Doc) public void process(String propertiesPath, String envPath) throws Exception(Code)(Java Doc) public void process(Map map) throws Exception(Code)(Java Doc) public void process(Map map, Properties env) throws Exception(Code)(Java Doc) public void process(LineStructBlock lineStructBlock) throws Exception(Code)(Java Doc) protected void processClassTemplate(Template template, Map templateObjectReference, MetaObjectReference metaObjectReference, MetaObjectModel metaObjectModel, MetaModelsExtractor.ExtractStruct extractStruct, boolean root, Writer writer, boolean generateClasses) throws TemplateException, IOException(Code)(Java Doc) protected void processClassTemplate0(Template template, Map templateObjectReference, Writer writer) throws TemplateException, IOException(Code)(Java Doc) protected void processComplex(MetaObjectReference metaObjectReference, Map templateObjectReference, MetaObjectModel metaObjectModel, ArrayList imports, MetaTable parentTable, String parentClassName, boolean classes, String objectKey, LineStruct classLineStruct, LineStruct intfLineStruct) throws ClassNotFoundException, InstantiationException, IllegalAccessException(Code)(Java Doc) protected void processComplexClass(MetaObjectReference metaObjectReference, Map templateObjectReference, MetaObjectModel metaObjectModel, ArrayList imports, MetaTable parentTable, String parentClassName, String objectKey, LineStruct classLineStruct, LineStruct intfLineStruct) throws ClassNotFoundException, InstantiationException, IllegalAccessException(Code)(Java Doc) protected void processComplexInterface(MetaObjectReference metaObjectReference, Map templateObjectReference, MetaObjectModel metaObjectModel, ArrayList imports, MetaTable parentTable, String parentClassName, String objectKey, LineStruct lineStruct) throws ClassNotFoundException, InstantiationException, IllegalAccessException(Code)(Java Doc) protected void processCompound(MetaObjectReference metaObjectReference, Map templateObjectReference, MetaObjectModel metaObjectModel, boolean classes, String objectKey, LineStruct classLineStruct, LineStruct intfLineStruct)(Code)(Java Doc) protected void processCompoundClass(MetaObjectReference metaObjectReference, Map templateObjectReference, MetaObjectModel metaObjectModel, String objectKey, LineStruct classLineStruct, LineStruct intfLineStruct)(Code)(Java Doc) protected void processCompoundInterface(MetaObjectReference metaObjectReference, Map templateObjectReference, MetaObjectModel metaObjectModel, String objectKey, LineStruct childLineStruct)(Code)(Java Doc) protected String resolveChildInterfaceName(MetaObjectReference metaObjectReference, Referencing child, MetaObjectModel metaObjectModel, String childClassName, String objectKey, LineStruct childLineStruct)(Code)(Java Doc) protected LineStruct resolveChildLineStruct(ComplexChildHandler handler, LineStruct intfLineStruct, LineStruct classLineStruct)(Code)(Java Doc) protected String resolveCollectionImpl(Class multiClass, ArrayList imports) throws IllegalAccessException, InstantiationException(Code)(Java Doc) protected String resolveType(Class multiClass, ArrayList imports, String type) throws InstantiationException, IllegalAccessException(Code)(Java Doc) protected String resolveType(Object instance, ArrayList imports)(Code)(Java Doc) public void setGenerateIntefaces(boolean generateIntefaces)(Code)(Java Doc) public void setLogger(Log logger)(Code)(Java Doc) protected LineStruct toLineStruct(PropertyMap propertyMap, boolean interfaces, boolean validatePoProperties) throws IOException(Code)(Java Doc) protected LineStruct toLineStruct(PropertyMap generic, PropertyMap classes, boolean interfaces, boolean validatePoProperties) throws IOException(Code)(Java Doc) protected String typedName(String childName, boolean mixedCase, Link.RelationshipType relationshipType)(Code)(Java Doc)
|
|
|