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


java.lang.Object
   org.objectweb.speedo.metadata.SpeedoElement
      org.objectweb.speedo.metadata.SpeedoInheritance

SpeedoInheritance
public class SpeedoInheritance extends SpeedoElement (Code)
Defines a the Speedo meta information about the inheritance. There is 3 possible mappings - The first mapping is the horizontal. Each concrete class has its own table containg all fields (fields of the class + inherited fields). The strategy for this mapping is new-table for each class. In each class, all inherited field must be mapped included inherited field. This means that in a class all inherited fields must be mapped into the tables of the current class. (#remappedInheritedFields) - The second mapping is filtered. All classes are mapped into the same tables. The table name is defined on the parent class. The strategy of the children classes is 'superclass-table'. To distinguish classes, a discriminator is required. (#discriminator) - The third mapping is vertical.All classes have its own table containing only fields of the class (not the inherited fields). Each table of devrived classes must defines a join to its parent (#join). In a vertical mapping it is possible and advised to use a discriminator similary than the filtered mapping. The strategy of the children is 'new-table'.
author:
   S.Chassande-Barrioz


Field Summary
final public static  StringSPEEDO_DEFAULT_DISCRIMINENT_VALUE
    
final public static  intSTRATEGY_NEW_TABLE
    
final public static  intSTRATEGY_SUBCLASS_TABLE
    
final public static  intSTRATEGY_SUPERCLASS_TABLE
    
final public static  intSTRATEGY_UNKOWN
    
public  SpeedoClassclazz
     Is speedo meta object representing the class with inheritance.
public  SpeedoDiscriminatordiscriminator
     In case of filtered of vertical mapping, a discriminator permits to distinguish the classes of persistent instances.
public  MapdiscriminatorValues
     In case of there is discriminator, this fields defines the values of the discriminator parts.
public  SpeedoJoinjoin
     Is the meta object representing the join to herited table in case of vertical mapping.
public  MapremappedInheritedFields
     is the list of field inherited (SpeedoInheritedField) from ancestors.
public  intstrategy
     Is the inheritance strategy.
public  StringsuperClassName
     Super class name.

Constructor Summary
public  SpeedoInheritance()
    
public  SpeedoInheritance(SpeedoClass moClass)
    

Method Summary
public  voidadd(SpeedoInheritedField sif)
     Adds a SpeedoInheritedField for defining the mapping of an inherited field.
public  booleanisFilteredMapping()
    
public  booleanisHorizontalMapping()
    
public  booleanisVerticalMapping()
    
public  SpeedoInheritedFieldnewSpeedoInheritedField(String fieldName)
    
public  SpeedoInheritedFieldnewSpeedoInheritedField(SpeedoField sf)
    
final public static  intparseStrategy(String strategyName)
    
final public static  Stringstrategy2str(int s)
    

Field Detail
SPEEDO_DEFAULT_DISCRIMINENT_VALUE
final public static String SPEEDO_DEFAULT_DISCRIMINENT_VALUE(Code)



STRATEGY_NEW_TABLE
final public static int STRATEGY_NEW_TABLE(Code)



STRATEGY_SUBCLASS_TABLE
final public static int STRATEGY_SUBCLASS_TABLE(Code)



STRATEGY_SUPERCLASS_TABLE
final public static int STRATEGY_SUPERCLASS_TABLE(Code)



STRATEGY_UNKOWN
final public static int STRATEGY_UNKOWN(Code)



clazz
public SpeedoClass clazz(Code)
Is speedo meta object representing the class with inheritance. It is not the parent class but the class which has a parent. It must be defined at initialisation time. It must be not null.



discriminator
public SpeedoDiscriminator discriminator(Code)
In case of filtered of vertical mapping, a discriminator permits to distinguish the classes of persistent instances. This field can be null if there is no discriminator (horizontal mapping case for instance).



discriminatorValues
public Map discriminatorValues(Code)
In case of there is discriminator, this fields defines the values of the discriminator parts. key = discriminator part description (SpeedoField or SpeedoNoFieldColumn) value = the value of the discriminator part for the current class;
See Also:   SpeedoDiscriminator
See Also:   
See Also:   SpeedoDiscriminator.elements
See Also:   



join
public SpeedoJoin join(Code)
Is the meta object representing the join to herited table in case of vertical mapping. It can be null if the mapping is not 'vertical'.



remappedInheritedFields
public Map remappedInheritedFields(Code)
is the list of field inherited (SpeedoInheritedField) from ancestors. The mapping of these fields are redefined. Typical case whith inherited fields correspond to horizontal mapping of the inheritance (one table per class). key is the field name (could be fully qualified) value is a SpeedoInheritedField



strategy
public int strategy(Code)
Is the inheritance strategy. It must be defined at initialisation time.
See Also:   SpeedoInheritance.STRATEGY_NEW_TABLE
See Also:   SpeedoInheritance.STRATEGY_SUBCLASS_TABLE
See Also:   SpeedoInheritance.STRATEGY_SUPERCLASS_TABLE
See Also:   #see #STRATEGY_UNKOWN



superClassName
public String superClassName(Code)
Super class name.




Constructor Detail
SpeedoInheritance
public SpeedoInheritance()(Code)



SpeedoInheritance
public SpeedoInheritance(SpeedoClass moClass)(Code)




Method Detail
add
public void add(SpeedoInheritedField sif)(Code)
Adds a SpeedoInheritedField for defining the mapping of an inherited field.
Parameters:
  sif - is the field to add



isFilteredMapping
public boolean isFilteredMapping()(Code)



isHorizontalMapping
public boolean isHorizontalMapping()(Code)



isVerticalMapping
public boolean isVerticalMapping()(Code)



newSpeedoInheritedField
public SpeedoInheritedField newSpeedoInheritedField(String fieldName) throws SpeedoRuntimeException(Code)

Parameters:
  fieldName - is the a new SpeedoInheritedField corresponding to an existing persistentand inherited field.
throws:
  SpeedoRuntimeException - if the field has not been found or if thefield belong the current class (#clazz).



newSpeedoInheritedField
public SpeedoInheritedField newSpeedoInheritedField(SpeedoField sf) throws SpeedoRuntimeException(Code)



parseStrategy
final public static int parseStrategy(String strategyName)(Code)



strategy2str
final public static String strategy2str(int s)(Code)



Fields inherited from org.objectweb.speedo.metadata.SpeedoElement
public transient List jdoExtension(Code)(Java Doc)
public Personality personality(Code)(Java Doc)

Methods inherited from org.objectweb.speedo.metadata.SpeedoElement
public void addExtension(SpeedoExtension se)(Code)(Java Doc)
protected static Object[] addInArray(Object value, Object[] array, Class type)(Code)(Java Doc)
public SpeedoExtension getExtension(String vendor, String key)(Code)(Java Doc)
public SpeedoExtension getExtensionByKey(String key)(Code)(Java Doc)
public String getExtensionValueByKey(String key)(Code)(Java Doc)
protected static int indexOfInArray(Object[] array, Object element)(Code)(Java Doc)
protected static Object[] removeInArray(Object value, Object[] array, Class type)(Code)(Java Doc)
protected static Object[] setValueInArray(Object value, Object[] array, int pos, int arraySize)(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.