Java Doc for EjbRelationshipRoleDesc.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas_ejb » deployment » api » 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 » J2EE » JOnAS 4.8.6 » org.objectweb.jonas_ejb.deployment.api 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc

EjbRelationshipRoleDesc
public class EjbRelationshipRoleDesc (Code)
Class to hold meta-information related to an ejb-relation-role Created on July 7, 2002
author:
   Christophe Ney [cney@batisseurs.com] : Initial developer
author:
   Helene Joanin on May 2003: code cleanup
author:
   Helene Joanin on May 2003: complement for legacy first version


Field Summary
final public static  byteINDEX
     This constant can be used to represent an index of a gen class.
final public static  byteMMB
    
final public static  byteMMU
    
final public static  byteMOB
    
final public static  byteMOU
    
final public static  byteOMB
    
final public static  byteOMU
    
final public static  byteOOB
    
final public static  byteOOU
    
final public static  byteSOURCE
     This constant can be used to represent the source of the relation, ie the element which references the other.
final public static  byteTARGET
     This constant can be used to represent the target of the relation, ie the element which is referenced by the other.
protected  StringcmrFieldName
    
protected  ClasscmrFieldType
    
protected  booleanisJOnASCMR
    

Constructor Summary
public  EjbRelationshipRoleDesc(EjbRelationDesc rd, String name, EjbRelationshipRole role, JonasEjbRelationshipRole jrole, EjbRelationshipRole opposite, boolean isSlave, Logger logger)
     constructor to be used by parent node
Parameters:
  rd - parent node = EjbRelationDesc
Parameters:
  role - this role (standard EjbRelationshipRole)
Parameters:
  jrole - this Jonas role (JonasEjbRelationshipRole).

Method Summary
protected  voidfillMappingInfo()
     Fills the mapping information of this relation-ship role with the values defined in jonas DD.
protected  voidfillMappingInfoWithDefault()
     Fills the mapping information of this relation-ship role with default values if the mapping information is not already initialized.
public  StringgetCmrFieldName()
     get the name of the cmr-field.
public  ClassgetCmrFieldType()
     get the type of the cmr-field when set in the deployment descriptor. Collection or Set for multiple rel.
public  StringgetForeignKeyJdbcName(String jdbcFieldName)
    
Parameters:
  jdbcFieldName - a primary key column name of the table associated tothe target bean.
public  StringgetName()
     return the name of this relationship role.
public  EjbRelationshipRoleDescgetOppositeRelationshipRole()
     get the opposite relation-ship-role of this relation-ship-role.
public  EjbRelationDescgetRelation()
     get the parent ejb relation of this relation-ship-role.
public  bytegetRelationType()
     This method depends on static values OOB,OOU,...
public  EntityCmp2DescgetSourceBean()
     Get the ejb involved in this relation-ship-role.
public  StringgetSourceBeanName()
     Get the name of the ejb involved in this relation-ship-role.
public  EntityCmp2DescgetTargetBean()
     It retrieves the EntityCmp2Desc which is linked to the EntityCmp2Desc associated to this EjbRelationshipRoleDesc.
public  booleanhasCmrField()
    
public  booleanhasJdbcMapping()
    
public  booleanisJOnASCmrField()
     It returns a boolean value which indicates if the cmr has been added by JOnAS (true) or if the user has specified a cmr field in the descriptor.
public  booleanisSlave()
     In M-N relationships, only 1 role will write data on DB.
public  booleanisSourceMultiple()
     Get state of opposite relationship-role is relation multiple.
public  booleanisTargetMultiple()
     Get state of this relationship-role is relation multiple.
public  booleanmustCascade()
    
protected  voidsetCmrFieldName(String name)
    
protected  voidsetCmrFieldType(String type)
    
protected  voidsetIsJOnASCmrField()
    
protected  voidsetSourceBean(EntityCmp2Desc led)
     set the source bean of this relation-ship role.
protected  voidsetTargetBean(EntityCmp2Desc led)
     set the target bean of this relation-ship role.
public  StringtoString()
    

Field Detail
INDEX
final public static byte INDEX(Code)
This constant can be used to represent an index of a gen class.



MMB
final public static byte MMB(Code)



MMU
final public static byte MMU(Code)



MOB
final public static byte MOB(Code)



MOU
final public static byte MOU(Code)



OMB
final public static byte OMB(Code)



OMU
final public static byte OMU(Code)



OOB
final public static byte OOB(Code)



OOU
final public static byte OOU(Code)
Don't change these values without looking at getRelationType() !



SOURCE
final public static byte SOURCE(Code)
This constant can be used to represent the source of the relation, ie the element which references the other.



TARGET
final public static byte TARGET(Code)
This constant can be used to represent the target of the relation, ie the element which is referenced by the other.



cmrFieldName
protected String cmrFieldName(Code)



cmrFieldType
protected Class cmrFieldType(Code)



isJOnASCMR
protected boolean isJOnASCMR(Code)




Constructor Detail
EjbRelationshipRoleDesc
public EjbRelationshipRoleDesc(EjbRelationDesc rd, String name, EjbRelationshipRole role, JonasEjbRelationshipRole jrole, EjbRelationshipRole opposite, boolean isSlave, Logger logger) throws DeploymentDescException(Code)
constructor to be used by parent node
Parameters:
  rd - parent node = EjbRelationDesc
Parameters:
  role - this role (standard EjbRelationshipRole)
Parameters:
  jrole - this Jonas role (JonasEjbRelationshipRole). This param maybe null.
Parameters:
  opposite - opposite role in the relation (standardEjbRelationshipRole)
throws:
  DeploymentDescException - in error case.




Method Detail
fillMappingInfo
protected void fillMappingInfo() throws DeploymentDescException(Code)
Fills the mapping information of this relation-ship role with the values defined in jonas DD.
throws:
  DeploymentDescException - in error case.



fillMappingInfoWithDefault
protected void fillMappingInfoWithDefault()(Code)
Fills the mapping information of this relation-ship role with default values if the mapping information is not already initialized.



getCmrFieldName
public String getCmrFieldName()(Code)
get the name of the cmr-field. the String name of the cmr-field.



getCmrFieldType
public Class getCmrFieldType()(Code)
get the type of the cmr-field when set in the deployment descriptor. Collection or Set for multiple rel. and null for non multiplerel.



getForeignKeyJdbcName
public String getForeignKeyJdbcName(String jdbcFieldName)(Code)

Parameters:
  jdbcFieldName - a primary key column name of the table associated tothe target bean. the foreign key column name associated to the given primary keycolumn name.



getName
public String getName()(Code)
return the name of this relationship role. the String name of this relationship role.



getOppositeRelationshipRole
public EjbRelationshipRoleDesc getOppositeRelationshipRole()(Code)
get the opposite relation-ship-role of this relation-ship-role. the opposite EjbRelationshipRoleDesc of this relation-ship-role.



getRelation
public EjbRelationDesc getRelation()(Code)
get the parent ejb relation of this relation-ship-role. the EjbRelationDesc of this relation-ship-role.



getRelationType
public byte getRelationType()(Code)
This method depends on static values OOB,OOU,... defined upper ! the type of the relation: OO-u, OO-b, OM-u, ....



getSourceBean
public EntityCmp2Desc getSourceBean()(Code)
Get the ejb involved in this relation-ship-role. this is the source bean of this relation. the EntityCmp2Desc of the source bean.



getSourceBeanName
public String getSourceBeanName()(Code)
Get the name of the ejb involved in this relation-ship-role. This is the source bean name of this relation. the String ejb-name of the source bean.



getTargetBean
public EntityCmp2Desc getTargetBean()(Code)
It retrieves the EntityCmp2Desc which is linked to the EntityCmp2Desc associated to this EjbRelationshipRoleDesc. This is the target bean of this relationship role the EntityCmp2Desc of the target bean.



hasCmrField
public boolean hasCmrField()(Code)
It retrieves true if the EntityCmp2Desc associated to this EjbRelationshipRoleDesc has a cmr field to the linked EntityCmp2Desc true if the relation-ship-role has a CMR field.



hasJdbcMapping
public boolean hasJdbcMapping()(Code)
Is a jdbc mapping is defined for this relationship role ? true if a jdbc mapping is defined for this relationship role.



isJOnASCmrField
public boolean isJOnASCmrField()(Code)
It returns a boolean value which indicates if the cmr has been added by JOnAS (true) or if the user has specified a cmr field in the descriptor. A CMR field is be added to manage the coherence of the relation OXu true if the CMR field is not a bean's programmer CMR field.



isSlave
public boolean isSlave()(Code)
In M-N relationships, only 1 role will write data on DB. true if role will not write MN relations on database



isSourceMultiple
public boolean isSourceMultiple()(Code)
Get state of opposite relationship-role is relation multiple. true if the opposite relationship-role is relation multiple.



isTargetMultiple
public boolean isTargetMultiple()(Code)
Get state of this relationship-role is relation multiple. (get state of field is relation multiple). true if the relationship-role is relation multiple.



mustCascade
public boolean mustCascade()(Code)
true if this bean must cascade delete the other bean in thisrelation.



setCmrFieldName
protected void setCmrFieldName(String name) throws DeploymentDescException(Code)



setCmrFieldType
protected void setCmrFieldType(String type) throws DeploymentDescException(Code)



setIsJOnASCmrField
protected void setIsJOnASCmrField()(Code)
mark the cmr as added by JOnAS



setSourceBean
protected void setSourceBean(EntityCmp2Desc led)(Code)
set the source bean of this relation-ship role.
Parameters:
  led - EntityCmp2Desc for the source bean of this relation-ship role.



setTargetBean
protected void setTargetBean(EntityCmp2Desc led)(Code)
set the target bean of this relation-ship role.
Parameters:
  led - EntityCmp2Desc for the target bean of this relation-ship role.



toString
public String toString()(Code)
String representation of the object for test purpose String representation of this object



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.