Java Doc for CompositeBeanGenerator.java in  » Database-ORM » ODAL » com » completex » objective » tools » generators » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database ORM » ODAL » com.completex.objective.tools.generators 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.completex.objective.tools.generators.CompositePoGenerator
      com.completex.objective.tools.generators.CompositeBeanGenerator

CompositeBeanGenerator
public class CompositeBeanGenerator extends CompositePoGenerator (Code)

author:
   Gennady Krizhevsky


Field Summary
final public static  StringDEFAULT_BEAN_TO_PO_MAPPER_CLASS
    
final public static  StringMAPPER
    
final protected static  StringTAG_BASIC_OBJECT
    


Method Summary
protected  voidaddBaseImports(Map templateObjectReference, MetaModelsExtractor.ExtractStructEntry baseEntry, BaseExtractHandler handler)
    
protected  voidaddCompoundExtraImports(Map baseTemplate, Map templateObjectReference)
    
protected  StringclassName(MetaObjectReference metaObjectReference, String objectKey, LineStruct lineStruct)
    
protected  voidgenerateMapper(LineStructBlock block)
    
protected  LinkedHashMapgetClassMap()
    
protected  StringgetDefaultBeanPoMapperTemplatePath()
    
protected  StringgetDefaultClassTemplatePath()
    
protected  StringgetDefaultInterfaceTemplatePath()
    
protected  ClassStructgetParentClassName(MetaObjectReference metaObjectReference, MetaObjectModel metaObjectModel, String objectKey, LineStruct classLineStruct, LineStruct intfLineStruct)
    
protected  ClassStructgetParentInterfaceName(MetaObjectReference metaObjectReference, MetaObjectModel metaObjectModel, String objectKey, LineStruct classLineStruct, LineStruct intfLineStruct)
    
protected  LineStructBlockinitializeFromSdl(Map properties)
    
protected  StringinterfaceName(MetaObjectReference metaObjectReference, String objectKey, LineStruct lineStruct)
    
protected  voidloadMetaObjectModel(String complexModelPath)
    
public static  voidmain(String[] args)
    
protected  voidpostGenerateAll(MetaObjectModel metaObjectModel, LineStructBlock block)
    
protected  voidpostGenerateClasses(MetaObjectModel metaObjectModel, LineStructBlock block)
    
protected  voidpostGenerateInterfaces(MetaObjectModel metaObjectModel, LineStructBlock block)
    
protected  voidprocessClassTemplate(Template template, Map templateObjectReference, MetaObjectReference metaObjectReference, MetaObjectModel metaObjectModel, MetaModelsExtractor.ExtractStruct extractStruct, boolean root, Writer writer, boolean classesGeneratingStage)
    
protected  StringresolveChildInterfaceName(MetaObjectReference metaObjectReference, Referencing child, MetaObjectModel metaObjectModel, String childClassName, String objectKey, LineStruct childLineStruct)
    
protected  LineStructresolveChildLineStruct(ComplexChildHandler handler, LineStruct intfLineStruct, LineStruct classLineStruct)
    
protected  StringresolveFixes(String className, LineStruct lineStruct)
    
protected  LineStructtoLineStruct(PropertyMap propertyMap, boolean interfaces, boolean validatePoProperties)
    
protected  LineStructtoRelatedLineStruct(PropertyMap generic, boolean interfaces, boolean validatePoProperties)
    
protected  StringtypedName(String childName, boolean mixedCase, Link.RelationshipType relationshipType)
    

Field Detail
DEFAULT_BEAN_TO_PO_MAPPER_CLASS
final public static String DEFAULT_BEAN_TO_PO_MAPPER_CLASS(Code)



MAPPER
final public static String MAPPER(Code)



TAG_BASIC_OBJECT
final protected static String TAG_BASIC_OBJECT(Code)





Method Detail
addBaseImports
protected void addBaseImports(Map templateObjectReference, MetaModelsExtractor.ExtractStructEntry baseEntry, BaseExtractHandler handler)(Code)



addCompoundExtraImports
protected void addCompoundExtraImports(Map baseTemplate, Map templateObjectReference)(Code)



className
protected String className(MetaObjectReference metaObjectReference, String objectKey, LineStruct lineStruct)(Code)



generateMapper
protected void generateMapper(LineStructBlock block) throws IOException, TemplateException(Code)



getClassMap
protected LinkedHashMap getClassMap()(Code)



getDefaultBeanPoMapperTemplatePath
protected String getDefaultBeanPoMapperTemplatePath()(Code)



getDefaultClassTemplatePath
protected String getDefaultClassTemplatePath()(Code)



getDefaultInterfaceTemplatePath
protected String getDefaultInterfaceTemplatePath()(Code)



getParentClassName
protected ClassStruct getParentClassName(MetaObjectReference metaObjectReference, MetaObjectModel metaObjectModel, String objectKey, LineStruct classLineStruct, LineStruct intfLineStruct)(Code)



getParentInterfaceName
protected ClassStruct getParentInterfaceName(MetaObjectReference metaObjectReference, MetaObjectModel metaObjectModel, String objectKey, LineStruct classLineStruct, LineStruct intfLineStruct)(Code)



initializeFromSdl
protected LineStructBlock initializeFromSdl(Map properties) throws IOException(Code)



interfaceName
protected String interfaceName(MetaObjectReference metaObjectReference, String objectKey, LineStruct lineStruct)(Code)



loadMetaObjectModel
protected void loadMetaObjectModel(String complexModelPath) throws IOException(Code)



main
public static void main(String[] args) throws Exception(Code)

Parameters:
  args -
throws:
  Exception -



postGenerateAll
protected void postGenerateAll(MetaObjectModel metaObjectModel, LineStructBlock block) throws IOException, TemplateException(Code)



postGenerateClasses
protected void postGenerateClasses(MetaObjectModel metaObjectModel, LineStructBlock block) throws IOException, TemplateException(Code)



postGenerateInterfaces
protected void postGenerateInterfaces(MetaObjectModel metaObjectModel, LineStructBlock block) throws IOException, TemplateException(Code)



processClassTemplate
protected void processClassTemplate(Template template, Map templateObjectReference, MetaObjectReference metaObjectReference, MetaObjectModel metaObjectModel, MetaModelsExtractor.ExtractStruct extractStruct, boolean root, Writer writer, boolean classesGeneratingStage) throws TemplateException, IOException(Code)



resolveChildInterfaceName
protected String resolveChildInterfaceName(MetaObjectReference metaObjectReference, Referencing child, MetaObjectModel metaObjectModel, String childClassName, String objectKey, LineStruct childLineStruct)(Code)



resolveChildLineStruct
protected LineStruct resolveChildLineStruct(ComplexChildHandler handler, LineStruct intfLineStruct, LineStruct classLineStruct)(Code)



resolveFixes
protected String resolveFixes(String className, LineStruct lineStruct)(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)



typedName
protected String typedName(String childName, boolean mixedCase, Link.RelationshipType relationshipType)(Code)



Fields inherited from com.completex.objective.tools.generators.CompositePoGenerator
final public static String CLASSES(Code)(Java Doc)
final public static String CLASS_NAME(Code)(Java Doc)
final public static String CLASS_PREFIX(Code)(Java Doc)
final public static String CLASS_SUFFIX(Code)(Java Doc)
final public static String CMP_CONFIG_PATH(Code)(Java Doc)
final public static String CMP_DESC_PATH(Code)(Java Doc)
final public static String COLLECTION_FACTORY_SUFFIX(Code)(Java Doc)
final public static String CPD_CHILD_PREFIX(Code)(Java Doc)
final public static String CPX_CHILD_PREFIX(Code)(Java Doc)
final protected static CollectionFactory DEFAULT_COLLECTION_FACTORY(Code)(Java Doc)
final public static String FILTER_PATTERN(Code)(Java Doc)
final public static String GENERATE_BEAN(Code)(Java Doc)
final public static String GENERATE_INTERFACES(Code)(Java Doc)
final public static String GENERATE_MAPPER(Code)(Java Doc)
final public static String GENERATE_TO_STRING(Code)(Java Doc)
final public static String GENERIC(Code)(Java Doc)
final public static String INTERFACES(Code)(Java Doc)
final public static String OUT_DIR(Code)(Java Doc)
final public static String PACKAGE(Code)(Java Doc)
final public static String PARENT_CLASS(Code)(Java Doc)
final public static String PO_CONFIG_PATH(Code)(Java Doc)
final public static String TAG_CLASS_NAME(Code)(Java Doc)
final public static String TAG_INTERFACE_NAME(Code)(Java Doc)
final public static String TAG_PACKAGE(Code)(Java Doc)
protected boolean debug(Code)(Java Doc)
protected SdlReader sdlReader(Code)(Java Doc)

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)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.