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


java.lang.Object
   org.objectweb.speedo.generation.jorm.rdb.RdbJORMMapping

RdbJORMMapping
public class RdbJORMMapping implements JormMIMappingBuilder,SpeedoProperties,Loggable(Code)
This class is an implementation of the JormMIMappingBuilder for the mapper rdb and its sub mappers. It defines the O/R mapping of persistent classes. It supports the mapping a of a class into several tables (multi table class mapping).
author:
   S.Chassande-Barrioz




Method Summary
public  voidcreateClassIdentifierNameDefMapping(ClassMapping cm, NameDef nd, SpeedoClass sc, MIBuilderHelper mibh)
     Maps the identifier fields.
public  ClassMappingcreateClassMapping(Class clazz, SpeedoClass sc, Mapping mapping)
     Defines the mapping the a class.
public  voidcreateClassRefNameDefMapping(ClassMapping cm, NameDef nd, SpeedoCommonField sf)
     Creates the mapping of the name def (JORM meta object) corresponding to a reference to a persistent class from a persistent class.
public  voidcreateClassRefNameDefMapping(GenClassMapping gcm, NameDef nd, SpeedoField sf)
     Creates the mapping of the name def (JORM meta object) corresponding to a reference to a persistent class from a generic persistent class. The class reference is always stored in into the table of the genric class.
public  PrimitiveElementMappingcreateFieldMapping(PrimitiveElement pe, SpeedoField sf, ClassMapping cm)
     Creates a PEM (PrimitiveElementMapping) for a PrimitiveElement.
public  PrimitiveElementMappingcreateFieldMapping(PrimitiveElement pe, SpeedoInheritedField sif, ClassMapping cm)
     Creates a PEM (PrimitiveElementMapping) for a PrimitiveElement.
public  PrimitiveElementMappingcreateFieldMapping(PrimitiveElement pe, SpeedoNoFieldColumn snfc, ClassMapping cm)
     Creates a PEM (PrimitiveElementMapping) for a PrimitiveElement.
public  PrimitiveElementMappingcreateGenClassElementMapping(PrimitiveElement pe, SpeedoField sf, GenClassMapping gcm)
     It creates the mapping of a primitive field (element of the generic class).
Parameters:
  pe - is the Jorm meta object representing a primitive field
Parameters:
  gcm - is the MappingStructure which will host the mapping of thefield
Parameters:
  sf - is the Speedo meta object representing the persistent fieldreferencing a generic class.
public  voidcreateGenClassIdentifierNameDefMapping(GenClassMapping gcm, NameDef nd, SpeedoField sf, MIBuilderHelper mibh)
     Creates the mapping of the name def (JORM meta object) corresponding to the identifier of a persistent generic class (collection, map, ...).
public  PrimitiveElementMappingcreateGenClassIndexMapping(PrimitiveElement pe, SpeedoField sf, GenClassMapping gcm)
     It creates the mapping of a primitive field used as index in the generic class.
Parameters:
  pe - is the Jorm meta object representing a primitive field
Parameters:
  gcm - is the MappingStructure which will host the mapping of thefield
Parameters:
  sf - is the Speedo meta object representing the persistent fieldreferencing a generic class.
public  GenClassMappingcreateGenClassMapping(GenClassRef gcr, SpeedoField sf, Mapping mapping)
     It builds a GenClassMapping, assignes it to the mapping and builds mapping structure for the class (RdbTable, directory name, ...).
Parameters:
  gcr - is the Jorm meta object representing the gen class which theGenClassMapping must be built.
Parameters:
  mapping - is the Mapping instance which will host the GenClassMapping.
Parameters:
  sf - is the SpeedoField corresponding to the generic class.
public  voidcreateGenClassRefNameDefMapping(ClassMapping cm, NameDef nd, SpeedoCommonField sf)
    
public  LoggergetLogger()
    
public  LoggerFactorygetLoggerFactory()
    
public  voidsetLogger(Logger logger)
    
public  voidsetLoggerFactory(LoggerFactory loggerFactory)
    



Method Detail
createClassIdentifierNameDefMapping
public void createClassIdentifierNameDefMapping(ClassMapping cm, NameDef nd, SpeedoClass sc, MIBuilderHelper mibh) throws PException, SpeedoException(Code)
Maps the identifier fields.
Parameters:
  cm - is the JORM meta object representing the mapping of a persistent class.
Parameters:
  nd - is the JORM meta object representing the name definition of thepersistent class.
Parameters:
  sc - is the Speedo meta object representing the persistent class
Parameters:
  mibh - is a helper for the building of the JORM meta information.



createClassMapping
public ClassMapping createClassMapping(Class clazz, SpeedoClass sc, Mapping mapping) throws PException, SpeedoException(Code)
Defines the mapping the a class. It creates the table(s) where the class is stored. When there are several tables (multitable mapping) or in case of vertical inheritance, this method bulds the join between the main table and the secondary table.
Parameters:
  clazz - is the JORM meta object representing the persistent class.
Parameters:
  sc - is the Speedo meta object representing the persistent class.
Parameters:
  mapping - is the JORM Meta object associated to the persistent class the JORM meta object of mapping corresponding to the class.



createClassRefNameDefMapping
public void createClassRefNameDefMapping(ClassMapping cm, NameDef nd, SpeedoCommonField sf) throws PException, SpeedoException(Code)
Creates the mapping of the name def (JORM meta object) corresponding to a reference to a persistent class from a persistent class. According to the mapping information hold by the SpeedoField, the Class Reference is mapped in the main table or in an external table. The external can be the table of the targeted class in case of One-One relationship. As the implementation of this method is a bit complex, it has been divided in two local methods: - createLocalClassRefNameDefMapping - createExternalClassRefNameDefMapping
Parameters:
  cm - is the MappingStructure which will host the mapping of the reference
Parameters:
  nd - is the namedef corresponding to the reference
Parameters:
  sf - is the Speedo meta object representing the persistent field.referencing a class.
See Also:   RdbJORMMapping.createLocalClassRefNameDefMapping(RdbClassMultiMapping,Class,SpeedoCommonField,NameDef,NameDef,SpeedoClass)
See Also:   RdbJORMMapping.createExternalClassRefNameDefMapping(RdbClassMultiMapping,Class,SpeedoCommonField,NameDef,RdbClassMultiMapping,NameDef,SpeedoClass)



createClassRefNameDefMapping
public void createClassRefNameDefMapping(GenClassMapping gcm, NameDef nd, SpeedoField sf) throws PException, SpeedoException(Code)
Creates the mapping of the name def (JORM meta object) corresponding to a reference to a persistent class from a generic persistent class. The class reference is always stored in into the table of the genric class. But it is important to check if the column used for the class reference can be reused for index or generic class identifier.
Parameters:
  gcm - is the MappingStructure which will host the mapping of the reference
Parameters:
  nd - is the namedef corresponding to the reference
Parameters:
  sf - is the Speedo meta object representing the persistent fieldreferencing a generic class.



createFieldMapping
public PrimitiveElementMapping createFieldMapping(PrimitiveElement pe, SpeedoField sf, ClassMapping cm) throws PException, SpeedoException(Code)
Creates a PEM (PrimitiveElementMapping) for a PrimitiveElement. The PEM is created only if the column does not already exist in the table
Parameters:
  pe - is the primitive element to map
Parameters:
  sf - is the persistent field holding column definition
Parameters:
  cm - is the RdbClassMapping correponding to the persistent classowning the field. It permits to find tha table where the field is mapped. the created or existing PEM corresponding to the specifiedcolumn name.



createFieldMapping
public PrimitiveElementMapping createFieldMapping(PrimitiveElement pe, SpeedoInheritedField sif, ClassMapping cm) throws PException, SpeedoException(Code)
Creates a PEM (PrimitiveElementMapping) for a PrimitiveElement. The PEM is created only if the column does not already exist in the table
Parameters:
  pe - is the primitive element to map
Parameters:
  sif - is the persistent field holding column definition
Parameters:
  cm - is the RdbClassMapping correponding to the persistent classowning the field. It permits to find tha table where the field is mapped. the created or existing PEM corresponding to the specifiedcolumn name.



createFieldMapping
public PrimitiveElementMapping createFieldMapping(PrimitiveElement pe, SpeedoNoFieldColumn snfc, ClassMapping cm) throws PException, SpeedoException(Code)
Creates a PEM (PrimitiveElementMapping) for a PrimitiveElement. The PEM is created only if the column does not already exist in the table
Parameters:
  pe - is the primitive element to map
Parameters:
  sif - is the persistent field holding column definition
Parameters:
  cm - is the RdbClassMapping correponding to the persistent classowning the field. It permits to find tha table where the field is mapped. the created or existing PEM corresponding to the specifiedcolumn name.



createGenClassElementMapping
public PrimitiveElementMapping createGenClassElementMapping(PrimitiveElement pe, SpeedoField sf, GenClassMapping gcm) throws PException, SpeedoException(Code)
It creates the mapping of a primitive field (element of the generic class).
Parameters:
  pe - is the Jorm meta object representing a primitive field
Parameters:
  gcm - is the MappingStructure which will host the mapping of thefield
Parameters:
  sf - is the Speedo meta object representing the persistent fieldreferencing a generic class. a PrimitiveElementMapping corresponding to the given primitivefield.
throws:
  PException - if it is not possible to build the mapping of theprimitive field.



createGenClassIdentifierNameDefMapping
public void createGenClassIdentifierNameDefMapping(GenClassMapping gcm, NameDef nd, SpeedoField sf, MIBuilderHelper mibh) throws PException, SpeedoException(Code)
Creates the mapping of the name def (JORM meta object) corresponding to the identifier of a persistent generic class (collection, map, ...).
Parameters:
  gcm - is the MappingStructure which will host the mapping of the generic class
Parameters:
  nd - is the namedef corresponding to the identifier of the generic class
Parameters:
  sf - is the Speedo meta object representing the persistent fieldreferencing a generic class.



createGenClassIndexMapping
public PrimitiveElementMapping createGenClassIndexMapping(PrimitiveElement pe, SpeedoField sf, GenClassMapping gcm) throws PException, SpeedoException(Code)
It creates the mapping of a primitive field used as index in the generic class.
Parameters:
  pe - is the Jorm meta object representing a primitive field
Parameters:
  gcm - is the MappingStructure which will host the mapping of thefield
Parameters:
  sf - is the Speedo meta object representing the persistent fieldreferencing a generic class. a PrimitiveElementMapping corresponding to the given primitivefield.
throws:
  PException - if it is not possible to build the mapping of theprimitive field.



createGenClassMapping
public GenClassMapping createGenClassMapping(GenClassRef gcr, SpeedoField sf, Mapping mapping) throws PException, SpeedoException(Code)
It builds a GenClassMapping, assignes it to the mapping and builds mapping structure for the class (RdbTable, directory name, ...).
Parameters:
  gcr - is the Jorm meta object representing the gen class which theGenClassMapping must be built.
Parameters:
  mapping - is the Mapping instance which will host the GenClassMapping.
Parameters:
  sf - is the SpeedoField corresponding to the generic class. the GenClassMapping instance built by the method (never null).
throws:
  PException - if it is not possible to build the GenClassMapping



createGenClassRefNameDefMapping
public void createGenClassRefNameDefMapping(ClassMapping cm, NameDef nd, SpeedoCommonField sf) throws PException, SpeedoException(Code)



getLogger
public Logger getLogger()(Code)



getLoggerFactory
public LoggerFactory getLoggerFactory()(Code)



setLogger
public void setLogger(Logger logger)(Code)



setLoggerFactory
public void setLoggerFactory(LoggerFactory loggerFactory)(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.