Java Doc for JormMIBuilder.java in  » Database-ORM » Speedo_1.4.5 » org » objectweb » speedo » generation » jorm » 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 » Speedo_1.4.5 » org.objectweb.speedo.generation.jorm 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.objectweb.speedo.generation.jorm.JormMIBuilder

JormMIBuilder
public class JormMIBuilder implements MIBuilderHelper,Loggable(Code)
This class is a builder of jorm meta information. Its entries are the following:
  • the jorm meta information manager,
  • A collection of SpeedoClass object,
  • the project name,
  • the mapper name,
  • a JormMIMappingBuilder instance able to build the mapping part for the mapper which the name is specified.

author:
   S.Chassande-Barrioz


Field Summary
final public static  StringDEFAULT_RDB_BUILDER
    
final public static  StringGENCLASS_ELM_PREFIX
    
final public static  StringGENCLASS_ID_PREFIX
    
final public static  StringLIST_INDEX
     is the name of the index field in the list (Genclass).
final public static  StringMAP_INDEX
    

Constructor Summary
public  JormMIBuilder()
     Builds a JormMIBuilder without a jorm meta information manager and a logger.
public  JormMIBuilder(Manager manager, Logger logger)
    
public  JormMIBuilder(Manager manager, NamingManagerFactory nmf, Logger logger)
    

Method Summary
public  CollectioncreateMI(List scs)
     Creates the jorm meta information for a set of persistent classes.
public  CollectioncreateMI(List scs, String projectName, String mapperName)
     Creates the jorm meta information for a set of persistent classes.
Parameters:
  scs - is a list of SpeedoClass instances.
Parameters:
  projectName - is the project name for which the mapping mustbe defined.
public  CollectioncreateMI(List scs, String projectName, String mapperName, JormMIMappingBuilder mb)
     Creates the jorm meta information for a set of persistent classes.
public  ScalarFieldcreateNameDefField(MetaObject mo, String fn, PType type, int size, int scale)
     It creates a field of a name def.
public  ScalarFieldcreateNameDefField(MetaObject mo, String fn, PType type)
     It creates a field of a name def.
public  StringgetErrorMessage(SpeedoClass sc, MetaObject mo, Reference ref)
     retrieves the start of a pretty error message.
public  LoggergetLogger()
    
public  LoggerFactorygetLoggerFactory()
    
public  ManagergetManager()
     retrieves the jorm meta information manager hosting the Class and CompositeName instances.
public  ManagergetManager(MetaObject mo)
    
public  StringgetNameDefFieldPrefix(Reference ref, boolean isIdentifier, boolean isInGenClass, SpeedoField sf)
     Calculates the prefix of a field use in a name def.
Parameters:
  ref - is the meta object of the reference if the namedef isused for a reference.
Parameters:
  isIdentifier - indicates if the namedef is used for an identifier(true) or if the namedef is used for a reference (false).
Parameters:
  isInGenClass - indicates if the namedef is used in a Generic class(true) or if the namedef is used in a class (false).
public  PrimitiveElementgetPrimitiveField(MetaObject mo, String name)
    
public  PTypegetPrimitivePType(Type t)
     Retrieves the jorm type matching to primitive type.
public  voidsetLogger(Logger logger)
    
public  voidsetLoggerFactory(LoggerFactory lf)
    
public  voidsetManager(Manager manager)
     retrieves the jorm meta information manager hosting the Class and CompositeName instances.

Field Detail
DEFAULT_RDB_BUILDER
final public static String DEFAULT_RDB_BUILDER(Code)



GENCLASS_ELM_PREFIX
final public static String GENCLASS_ELM_PREFIX(Code)
is the prefix of the fields used for the element of a generic class



GENCLASS_ID_PREFIX
final public static String GENCLASS_ID_PREFIX(Code)
is the prefix of the fields used to identify a generic class



LIST_INDEX
final public static String LIST_INDEX(Code)
is the name of the index field in the list (Genclass).



MAP_INDEX
final public static String MAP_INDEX(Code)




Constructor Detail
JormMIBuilder
public JormMIBuilder()(Code)
Builds a JormMIBuilder without a jorm meta information manager and a logger.



JormMIBuilder
public JormMIBuilder(Manager manager, Logger logger)(Code)
Builds a JormMIBuilder with a jorm meta information manager and a logger
Parameters:
  manager -



JormMIBuilder
public JormMIBuilder(Manager manager, NamingManagerFactory nmf, Logger logger)(Code)
Builds a JormMIBuilder with a jorm meta information manager and a logger
Parameters:
  manager -




Method Detail
createMI
public Collection createMI(List scs) throws SpeedoException, PException(Code)
Creates the jorm meta information for a set of persistent classes. Only the generic part will be created.
Parameters:
  scs - is a list of SpeedoClass instances. a Collection of jorm meta object composed by Class instances andCompositeName instances.



createMI
public Collection createMI(List scs, String projectName, String mapperName) throws SpeedoException, PException(Code)
Creates the jorm meta information for a set of persistent classes.
Parameters:
  scs - is a list of SpeedoClass instances.
Parameters:
  projectName - is the project name for which the mapping mustbe defined. If the value is null no mapping will be generated.
Parameters:
  mapperName - is the mapper name for which the mapping mustbe defined. If the value is null no mapping will be generated. a Collection of jorm meta object composed by Class instances andCompositeName instances.



createMI
public Collection createMI(List scs, String projectName, String mapperName, JormMIMappingBuilder mb) throws SpeedoException, PException(Code)
Creates the jorm meta information for a set of persistent classes.
Parameters:
  scs - is a list of SpeedoClass instances.
Parameters:
  projectName - is the project name for which the mapping mustbe defined
Parameters:
  mapperName - is the mapper name for which the mapping mustbe defined
Parameters:
  mb - is the build of the mapping part of the meta information a Collection of jorm meta object composed by Class instances andCompositeName instances.



createNameDefField
public ScalarField createNameDefField(MetaObject mo, String fn, PType type, int size, int scale) throws SpeedoException(Code)
It creates a field of a name def. This field will be hidden
Parameters:
  mo - is the jorm meta object hosting the field to create
Parameters:
  fn - is the name of the field to create
Parameters:
  type - is the type of the field to create
Parameters:
  size - is the size of the field to create the jorm meta object representing the namedef field



createNameDefField
public ScalarField createNameDefField(MetaObject mo, String fn, PType type) throws SpeedoException(Code)
It creates a field of a name def. This field will be hidden
Parameters:
  mo - is the jorm meta object hosting the field to create
Parameters:
  fn - is the name of the field to create
Parameters:
  type - is the type of the field to create the jorm meta object representing the namedef field



getErrorMessage
public String getErrorMessage(SpeedoClass sc, MetaObject mo, Reference ref)(Code)
retrieves the start of a pretty error message.



getLogger
public Logger getLogger()(Code)



getLoggerFactory
public LoggerFactory getLoggerFactory()(Code)



getManager
public Manager getManager()(Code)
retrieves the jorm meta information manager hosting the Class and CompositeName instances.



getManager
public Manager getManager(MetaObject mo)(Code)



getNameDefFieldPrefix
public String getNameDefFieldPrefix(Reference ref, boolean isIdentifier, boolean isInGenClass, SpeedoField sf) throws SpeedoException(Code)
Calculates the prefix of a field use in a name def.
Parameters:
  ref - is the meta object of the reference if the namedef isused for a reference.
Parameters:
  isIdentifier - indicates if the namedef is used for an identifier(true) or if the namedef is used for a reference (false).
Parameters:
  isInGenClass - indicates if the namedef is used in a Generic class(true) or if the namedef is used in a class (false). a string value (never null) representing the prefix of a namedef field.



getPrimitiveField
public PrimitiveElement getPrimitiveField(MetaObject mo, String name)(Code)



getPrimitivePType
public PType getPrimitivePType(Type t)(Code)
Retrieves the jorm type matching to primitive type. It converts a Type defined in ASM into a PType defined in Jorm. If the type is not a jorm primitive type then a null value is returned.



setLogger
public void setLogger(Logger logger)(Code)



setLoggerFactory
public void setLoggerFactory(LoggerFactory lf)(Code)



setManager
public void setManager(Manager manager)(Code)
retrieves the jorm meta information manager hosting the Class and CompositeName instances.



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.