Java Doc for G_Relation_ombEC2.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas » jtests » clients » entity » 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.jtests.clients.entity 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.objectweb.jonas.jtests.clients.entity.A_Cmp2Util
   org.objectweb.jonas.jtests.clients.entity.G_Relation_ombEC2

G_Relation_ombEC2
public class G_Relation_ombEC2 extends A_Cmp2Util (Code)
For testing one-to-many bidirectional relationships
author:
   Helene Joanin


Field Summary
static  Hashtablea2b
    
protected static  AHomeRemoteahome
    
static  String[][]b2a
    
protected static  BHomeRemotebhome
    
protected  booleanisInit
    

Constructor Summary
public  G_Relation_ombEC2(String name)
    

Method Summary
 booleaninitStateOK()
    
public static  voidmain(String args)
    
protected  voidsetUp()
    
public static  Testsuite()
    
public  voidtBasicGetEmptyA2B(int tx)
     Check that the bean 'as0' has no relation.
public  voidtBasicGetEmptyB2A(int tx)
     Check that the bean 'bs0' has no relation.
public  voidtBasicGetManyA2B(int tx)
     Check that the bean 'as2' has many relations with 'bs2_1', 'bs2_2', 'bs2_3'.
public  voidtBasicGetOneA2B(int tx)
     Check that the bean 'as1' has only one relation with 'bs1_1'.
public  voidtCohAddOneA2B(int tx)
     Add an element to a empty relation.
public  voidtCohAddOneInMultiA2B(int tx)
     Add an element to a relation A2B already multiple.
public  voidtCohBeanRemoveB(int tx)
     Remove a bean B which is in a relation.
public  voidtCohClearA2B(int tx)
     Set a A2B relation to empty by clearing the collection.
public  voidtCohRemoveB(int tx)
     Remove a bean B which is in a relation.
public  voidtCohRemoveInRelA2B(int tx)
     Remove an element in a relation.
public  voidtCohSet1B2A(int tx)
     Set a null B2A relation with 1 element.
public  voidtCohSet2B2A(int tx)
     Set a B2A relation with 1 element.
public  voidtCohSet3B2A(int tx)
     Set a B2A relation with 1 element.
public  voidtCohSetEmptyA2B(int tx)
     Set a A2B relation to empty.
public  voidtCohSetMultiA2B(int tx)
     Re-Set a relation with N element.
public  voidtCohSetMultiBisA2B(int tx)
    
public  voidtCohSetOne2A2B(int tx)
     Set a empty relation A2B with 1 element.
public  voidtCohSetOneA2B(int tx)
     Set an empty A2B relation with 1 element.
public  voidtestBasicGetEmptyA2BTxCall()
    
public  voidtestBasicGetEmptyA2BTxCont()
    
public  voidtestBasicGetEmptyA2BTxNo()
    
public  voidtestBasicGetEmptyB2ANoTx()
    
public  voidtestBasicGetEmptyB2ATxCall()
    
public  voidtestBasicGetEmptyB2ATxCont()
    

Field Detail
a2b
static Hashtable a2b(Code)



ahome
protected static AHomeRemote ahome(Code)



b2a
static String[][] b2a(Code)



bhome
protected static BHomeRemote bhome(Code)



isInit
protected boolean isInit(Code)




Constructor Detail
G_Relation_ombEC2
public G_Relation_ombEC2(String name)(Code)




Method Detail
initStateOK
boolean initStateOK() throws Exception(Code)
Check that we are in the same state as after the tables creation for thoses beans A and B (ie if it is the initial state)



main
public static void main(String args)(Code)



setUp
protected void setUp()(Code)



suite
public static Test suite()(Code)



tBasicGetEmptyA2B
public void tBasicGetEmptyA2B(int tx) throws Exception(Code)
Check that the bean 'as0' has no relation.



tBasicGetEmptyB2A
public void tBasicGetEmptyB2A(int tx) throws Exception(Code)
Check that the bean 'bs0' has no relation.



tBasicGetManyA2B
public void tBasicGetManyA2B(int tx) throws Exception(Code)
Check that the bean 'as2' has many relations with 'bs2_1', 'bs2_2', 'bs2_3'.



tBasicGetOneA2B
public void tBasicGetOneA2B(int tx) throws Exception(Code)
Check that the bean 'as1' has only one relation with 'bs1_1'.



tCohAddOneA2B
public void tCohAddOneA2B(int tx) throws Exception(Code)
Add an element to a empty relation. Same as tCohSetOneA2B except that we add the element in the collection instead of we set directly the collection. Before: as0 bs0 After: as0 <-> bs0 Check also the assignement rules for relationships.



tCohAddOneInMultiA2B
public void tCohAddOneInMultiA2B(int tx) throws Exception(Code)
Add an element to a relation A2B already multiple. The element was already in a relation. Check also the assignement rules for relationships. Before: a1 <-> b1_1 <-> b1_2 <-> b1_3 a3 <-> b3_1 Change: a1.addInB(b3_1) After: a1 <-> b1_1 <-> b1_2 <-> b1_3 <-> b3_1 a3 See Spec chapter 10.3.7.3, change example: a1.getB().add(b2m)



tCohBeanRemoveB
public void tCohBeanRemoveB(int tx) throws Exception(Code)
Remove a bean B which is in a relation. Same as tCohRemoveB except that the called remove method is on the bean instead of the home. Before: a3 <-> b3_1 change: B.remove(b3_1) After: a3



tCohClearA2B
public void tCohClearA2B(int tx) throws Exception(Code)
Set a A2B relation to empty by clearing the collection. Before: as1 <-> bs1_1 After: as1 bs1_1 Check also the assignement rules for relationships.



tCohRemoveB
public void tCohRemoveB(int tx) throws Exception(Code)
Remove a bean B which is in a relation. Before: a3 <-> b3_1 change: B.remove(b3_1) After: a3



tCohRemoveInRelA2B
public void tCohRemoveInRelA2B(int tx) throws Exception(Code)
Remove an element in a relation. Before: a3 <-> b3_1 Change: a3.retrieveB().remove(b3_1) After: a3 b3_1 See Spec chapter 10.3.7.3, change example: a1.getB().remove(b1n)



tCohSet1B2A
public void tCohSet1B2A(int tx) throws Exception(Code)
Set a null B2A relation with 1 element. This element was'nt already in an other relation. Before: b0 as0 After: b0 <-> as0 Check also the assignement rules for relationships.



tCohSet2B2A
public void tCohSet2B2A(int tx) throws Exception(Code)
Set a B2A relation with 1 element. This element wasn't already in an other relation. Before: bs1_1 <-> as1 as0 Change: bs1_1.assignA(as0); After: bs1_1 <-> as0 as1 Check also the assignement rules for relationships.



tCohSet3B2A
public void tCohSet3B2A(int tx) throws Exception(Code)
Set a B2A relation with 1 element. This element was already in an other relation. Before: bs1_1 <-> as1 b3_1 <-> a3 Change: bs1_1.assignA(b3_1.retrieveA()) After: bs1_1 <-> a3 b3_1 <-> as1 Check also the assignement rules for relationships. See Spec chapter 10.3.7.3, change example: b2m.setA(b1n.getA())



tCohSetEmptyA2B
public void tCohSetEmptyA2B(int tx) throws Exception(Code)
Set a A2B relation to empty. Before: as1 <-> bs1_1 After: as1 bs1_1 Check also the assignement rules for relationships.



tCohSetMultiA2B
public void tCohSetMultiA2B(int tx) throws Exception(Code)
Re-Set a relation with N element. Before: as1 <-> bs1_1 bs0 bs3 After: bs1_1 as1 <-> bs0 as1 <-> bs3



tCohSetMultiBisA2B
public void tCohSetMultiBisA2B(int tx) throws Exception(Code)



tCohSetOne2A2B
public void tCohSetOne2A2B(int tx) throws Exception(Code)
Set a empty relation A2B with 1 element. This added element was already in a other relation. Before: a0 a3 <-> b3_1 Change: a0.assignB({b3_1}) After: a0 <-> b3_1 a3



tCohSetOneA2B
public void tCohSetOneA2B(int tx) throws Exception(Code)
Set an empty A2B relation with 1 element. This added element was'nt already in an other relation. Before: as0 b0 After: as0 <-> b0 Check also the assignement rules for relationships.



testBasicGetEmptyA2BTxCall
public void testBasicGetEmptyA2BTxCall() throws Exception(Code)



testBasicGetEmptyA2BTxCont
public void testBasicGetEmptyA2BTxCont() throws Exception(Code)



testBasicGetEmptyA2BTxNo
public void testBasicGetEmptyA2BTxNo() throws Exception(Code)



testBasicGetEmptyB2ANoTx
public void testBasicGetEmptyB2ANoTx() throws Exception(Code)



testBasicGetEmptyB2ATxCall
public void testBasicGetEmptyB2ATxCall() throws Exception(Code)



testBasicGetEmptyB2ATxCont
public void testBasicGetEmptyB2ATxCont() throws Exception(Code)



Fields inherited from org.objectweb.jonas.jtests.clients.entity.A_Cmp2Util
final static int TX_CALL(Code)(Java Doc)
final static int TX_CONT(Code)(Java Doc)
final static int TX_NO(Code)(Java Doc)
final static int TX_RB(Code)(Java Doc)

Methods inherited from org.objectweb.jonas.jtests.clients.entity.A_Cmp2Util
void checkIsInitialState() throws Exception(Code)(Java Doc)
public static int getIntAfterDash(String s)(Code)(Java Doc)
public static String getStringBeforeDash(String s)(Code)(Java Doc)
abstract boolean initStateOK() throws Exception(Code)(Java Doc)
static boolean isCollectionEqual(Collection c1, Collection c2)(Code)(Java Doc)
protected void setUp()(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.