Java Doc for PersistentObjectGenerator.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.PersistentObjectGenerator

PersistentObjectGenerator
public class PersistentObjectGenerator implements MetaModelsExtractor(Code)
Args[0]: persistent-object-config.properties Args[1]: env.properties
author:
   Gennady Krizhevsky


Field Summary
final public static  StringCLASSES
    
final public static  StringCLASS_PREFIX
    
final public static  StringCLASS_SUFFIX
    
final public static  StringCOL_PREFIX
    
final public static  StringCTL_PREFIX
    
final public static  StringCTL_SUFFIX
    
final public static  StringDEBUG
    
final public static  StringEXTERNAL_DESC_PATH
    
final public static  StringFILTER_PATTERN
    
final public static  StringGENERATE_BEAN
    
final public static  StringGENERATE_INTERFACES
    
final public static  StringGENERATE_LIFE_CYCLE_CTL
    
final public static  StringGENERIC
    
final public static  StringICOL_PREFIX
    
final public static  StringINTERFACES
    
final public static  StringINTERNAL_DESC_PATH
    
final public static  StringJDBC_TYPE_PREFIX
    
final public static  StringLIFE_CYCLE_CTL
    
final public static  StringOUT_DIR
    
final public static  StringPACKAGE
    
final public static  StringTAG_CLASS_NAME
    
final public static  StringTAG_GENERATE_TO_STRING
    
final public static  StringTAG_IMPORTS
    
final public static  StringTAG_INTERFACES
    
final public static  StringTAG_INTERFACE_NAME
    
final public static  StringTAG_META_ASSEMBLY_CLASS_PREFIX
    
final public static  StringTAG_META_ASSEMBLY_CLASS_SUFFIX
    
final public static  StringTAG_META_ASSEMBLY_TEMPLATE_PATH
    
final public static  StringTAG_PACKAGE
    
final public static  StringTCOL_PREFIX
    
final public static  StringTEMPLATE_PATH
    
protected  booleandebug
    
protected  LifeCycleControllerGeneratorlifeCycleControllerGenerator
    
protected  SdlReadersdlReader
    

Constructor Summary
public  PersistentObjectGenerator()
    

Method Summary
static  StringclassOrInterfaceName(String coreName, LineStruct intfStruct)
    
static  StringclassOrInterfaceName(MetaTable table, LineStruct intfStruct)
    
static  StringclassOrInterfaceName(MetaTable table, boolean mainPattern, LineStruct intfStruct)
    
static  StringclassOrInterfaceName(String coreName, boolean mainPattern, LineStruct intfStruct)
    
protected static  PropertyMapenv(String envPath)
    
public  ExtractStructextractMetaModels(String propertiesPath)
    
public  ExtractStructextractMetaModels(String propertiesPath, Properties env)
    
public  MapextractProperties(String propertiesPath)
    
public static  MapextractProperties(String propertiesPath, SdlReader sdlReader)
    
public static  MapextractProperties(String propertiesPath, SdlReader sdlReader, Properties env)
    
protected  voidgenerateClasses(MetaModel model, LineStructBlock block)
    
public  LoggetLogger()
    
public static  StringgetOrIs(MetaColumn column)
    
public static  MapgetType2JavaMap()
    
static  booleanisClassMainPattern(MetaTable table)
    
static  booleanisClassMainPattern(String name)
    
static  booleanisMixedCase(String name)
    
public static  StringjavaConstName(String prefix, String name)
    
public static  StringjavaName(String name, String prefix, String suffix, boolean calitalizeFirstChar)
    
public  StringjavaType(ColumnType type)
    
public static  StringlowerFirstChar(String name)
    
public static  voidmain(String[] args)
    
public  MapprepareClassTableTemplateMap(MetaTable table, LineStruct classStruct, LineStruct intfStruct)
    
public  MapprepareInterfaceTableMap(MetaTable table, LineStruct intfStruct)
    
protected static  voidprintGeneratedClassFileInfo(String classFileName)
    
protected static  voidprintGeneratedClassFileInfo(String classFileName, String outputDir)
    
protected static  voidprintGeneratedIn(String outputDir)
    
protected static  voidprintln(String s)
    
public  voidprocess(String propertiesPath, String envPath)
    
public  voidprocess(Map properties)
    
public  voidprocess(Map properties, Properties env)
    
public  voidprocess(MetaModel model, LineStructBlock block)
    
protected  voidregisterExtraTypes()
    
protected  voidregisterType(ColumnType type)
    
public  voidsetLogger(Log logger)
    
public  MetaModelsetup(String inFilePath, String exFilePath, String filterPattern)
    
protected  voidunregisterType(ColumnType type)
    
protected  voidverifyModels(MetaModel[] metaModels, ExtractStruct extractStruct)
    

Field Detail
CLASSES
final public static String CLASSES(Code)



CLASS_PREFIX
final public static String CLASS_PREFIX(Code)



CLASS_SUFFIX
final public static String CLASS_SUFFIX(Code)



COL_PREFIX
final public static String COL_PREFIX(Code)



CTL_PREFIX
final public static String CTL_PREFIX(Code)



CTL_SUFFIX
final public static String CTL_SUFFIX(Code)



DEBUG
final public static String DEBUG(Code)



EXTERNAL_DESC_PATH
final public static String EXTERNAL_DESC_PATH(Code)



FILTER_PATTERN
final public static String FILTER_PATTERN(Code)



GENERATE_BEAN
final public static String GENERATE_BEAN(Code)



GENERATE_INTERFACES
final public static String GENERATE_INTERFACES(Code)



GENERATE_LIFE_CYCLE_CTL
final public static String GENERATE_LIFE_CYCLE_CTL(Code)



GENERIC
final public static String GENERIC(Code)



ICOL_PREFIX
final public static String ICOL_PREFIX(Code)



INTERFACES
final public static String INTERFACES(Code)



INTERNAL_DESC_PATH
final public static String INTERNAL_DESC_PATH(Code)



JDBC_TYPE_PREFIX
final public static String JDBC_TYPE_PREFIX(Code)



LIFE_CYCLE_CTL
final public static String LIFE_CYCLE_CTL(Code)



OUT_DIR
final public static String OUT_DIR(Code)



PACKAGE
final public static String PACKAGE(Code)



TAG_CLASS_NAME
final public static String TAG_CLASS_NAME(Code)



TAG_GENERATE_TO_STRING
final public static String TAG_GENERATE_TO_STRING(Code)



TAG_IMPORTS
final public static String TAG_IMPORTS(Code)



TAG_INTERFACES
final public static String TAG_INTERFACES(Code)



TAG_INTERFACE_NAME
final public static String TAG_INTERFACE_NAME(Code)



TAG_META_ASSEMBLY_CLASS_PREFIX
final public static String TAG_META_ASSEMBLY_CLASS_PREFIX(Code)



TAG_META_ASSEMBLY_CLASS_SUFFIX
final public static String TAG_META_ASSEMBLY_CLASS_SUFFIX(Code)



TAG_META_ASSEMBLY_TEMPLATE_PATH
final public static String TAG_META_ASSEMBLY_TEMPLATE_PATH(Code)



TAG_PACKAGE
final public static String TAG_PACKAGE(Code)



TCOL_PREFIX
final public static String TCOL_PREFIX(Code)



TEMPLATE_PATH
final public static String TEMPLATE_PATH(Code)



debug
protected boolean debug(Code)



lifeCycleControllerGenerator
protected LifeCycleControllerGenerator lifeCycleControllerGenerator(Code)



sdlReader
protected SdlReader sdlReader(Code)




Constructor Detail
PersistentObjectGenerator
public PersistentObjectGenerator()(Code)




Method Detail
classOrInterfaceName
static String classOrInterfaceName(String coreName, LineStruct intfStruct)(Code)



classOrInterfaceName
static String classOrInterfaceName(MetaTable table, LineStruct intfStruct)(Code)



classOrInterfaceName
static String classOrInterfaceName(MetaTable table, boolean mainPattern, LineStruct intfStruct)(Code)



classOrInterfaceName
static String classOrInterfaceName(String coreName, boolean mainPattern, LineStruct intfStruct)(Code)



env
protected static PropertyMap env(String envPath) throws IOException(Code)



extractMetaModels
public ExtractStruct extractMetaModels(String propertiesPath) throws Exception(Code)



extractMetaModels
public ExtractStruct extractMetaModels(String propertiesPath, Properties env) throws Exception(Code)



extractProperties
public Map extractProperties(String propertiesPath) throws IOException(Code)



extractProperties
public static Map extractProperties(String propertiesPath, SdlReader sdlReader) throws IOException(Code)



extractProperties
public static Map extractProperties(String propertiesPath, SdlReader sdlReader, Properties env) throws IOException(Code)



generateClasses
protected void generateClasses(MetaModel model, LineStructBlock block) throws IOException, TemplateException(Code)



getLogger
public Log getLogger()(Code)



getOrIs
public static String getOrIs(MetaColumn column)(Code)



getType2JavaMap
public static Map getType2JavaMap()(Code)



isClassMainPattern
static boolean isClassMainPattern(MetaTable table)(Code)



isClassMainPattern
static boolean isClassMainPattern(String name)(Code)



isMixedCase
static boolean isMixedCase(String name)(Code)



javaConstName
public static String javaConstName(String prefix, String name)(Code)



javaName
public static String javaName(String name, String prefix, String suffix, boolean calitalizeFirstChar)(Code)



javaType
public String javaType(ColumnType type)(Code)



lowerFirstChar
public static String lowerFirstChar(String name)(Code)



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

Parameters:
  args -
throws:
  Exception -



prepareClassTableTemplateMap
public Map prepareClassTableTemplateMap(MetaTable table, LineStruct classStruct, LineStruct intfStruct)(Code)



prepareInterfaceTableMap
public Map prepareInterfaceTableMap(MetaTable table, LineStruct intfStruct)(Code)



printGeneratedClassFileInfo
protected static void printGeneratedClassFileInfo(String classFileName)(Code)



printGeneratedClassFileInfo
protected static void printGeneratedClassFileInfo(String classFileName, String outputDir)(Code)



printGeneratedIn
protected static void printGeneratedIn(String outputDir)(Code)



println
protected static void println(String s)(Code)



process
public void process(String propertiesPath, String envPath) throws Exception(Code)



process
public void process(Map properties) throws Exception(Code)



process
public void process(Map properties, Properties env) throws Exception(Code)



process
public void process(MetaModel model, LineStructBlock block) throws Exception, TemplateException(Code)



registerExtraTypes
protected void registerExtraTypes()(Code)



registerType
protected void registerType(ColumnType type)(Code)



setLogger
public void setLogger(Log logger)(Code)



setup
public MetaModel setup(String inFilePath, String exFilePath, String filterPattern) throws Exception, SQLException(Code)



unregisterType
protected void unregisterType(ColumnType type)(Code)



verifyModels
protected void verifyModels(MetaModel[] metaModels, ExtractStruct extractStruct)(Code)



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.