Java Doc for A_omb.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.A_omb

All known Subclasses:   org.objectweb.jonas.jtests.clients.entity.F_omb_CRW_EC2,  org.objectweb.jonas.jtests.clients.entity.F_omb_CS_EC2,
A_omb
abstract public class A_omb extends A_Cmp2Util (Code)
For testing one-to-many bidirectional relationships
author:
   Ph. Durieux


Field Summary
protected static  StringBEAN_HOME_FRONT
    
static  Hashtablea2b
    
static  String[][]b2a
    
protected static  FrontHomefhome
    
protected  booleanisInit
    

Constructor Summary
public  A_omb(String name)
    

Method Summary
abstract public  AHomeRemotegetAHome()
    
abstract public  BHomeRemotegetBHome()
    
 booleaninitStateOK()
    
protected  voidsetUp()
    
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  voidtestBasicGetEmptyA2BTxRb()
    
public  voidtestBasicGetEmptyB2ANoTx()
    
public  voidtestBasicGetEmptyB2ATxCall()
    
public  voidtestBasicGetEmptyB2ATxCont()
    
public  voidtestBasicGetEmptyB2ATxRb()
    
public  voidtestBasicGetManyA2BTxCall()
    
public  voidtestBasicGetManyA2BTxCont()
    
public  voidtestBasicGetManyA2BTxNo()
    
public  voidtestBasicGetManyA2BTxRb()
    
public  voidtestBasicGetOneA2BTxCall()
    
public  voidtestBasicGetOneA2BTxCont()
    
public  voidtestBasicGetOneA2BTxNo()
    
public  voidtestBasicGetOneA2BTxRb()
    
public  voidtestCohAddOneA2BTxCall()
    
public  voidtestCohAddOneA2BTxCont()
    
public  voidtestCohAddOneA2BTxNo()
    
public  voidtestCohAddOneA2BTxRb()
    
public  voidtestCohAddOneInMultiA2BTxCall()
    
public  voidtestCohAddOneInMultiA2BTxCont()
    
public  voidtestCohAddOneInMultiA2BTxNo()
    
public  voidtestCohAddOneInMultiA2BTxRb()
    
public  voidtestCohBeanRemoveBTxCall()
    
public  voidtestCohBeanRemoveBTxNo()
    
public  voidtestCohBeanRemoveBTxRb()
    
public  voidtestCohClearA2BTxCall()
    
public  voidtestCohClearA2BTxCont()
    
public  voidtestCohClearA2BTxNo()
    
public  voidtestCohClearA2BTxRb()
    
public  voidtestCohRemoveBTxCall()
    
public  voidtestCohRemoveBTxNo()
    
public  voidtestCohRemoveBTxRb()
    
public  voidtestCohRemoveInRelA2BTxCall()
    
public  voidtestCohRemoveInRelA2BTxCont()
    
public  voidtestCohRemoveInRelA2BTxNo()
    
public  voidtestCohRemoveInRelA2BTxRb()
    
public  voidtestCohSet1B2ATxCall()
    
public  voidtestCohSet1B2ATxCont()
    
public  voidtestCohSet1B2ATxNo()
    
public  voidtestCohSet1B2ATxRb()
    
public  voidtestCohSet2B2ATxCall()
    
public  voidtestCohSet2B2ATxCont()
    
public  voidtestCohSet2B2ATxNo()
    
public  voidtestCohSet2B2ATxRb()
    
public  voidtestCohSet3B2ATxCall()
    
public  voidtestCohSet3B2ATxCont()
    
public  voidtestCohSet3B2ATxNo()
    
public  voidtestCohSet3B2ATxRb()
    
public  voidtestCohSetEmptyA2BTxCall()
    
public  voidtestCohSetEmptyA2BTxCont()
    
public  voidtestCohSetEmptyA2BTxNo()
    
public  voidtestCohSetEmptyA2BTxRb()
    
public  voidtestCohSetMultiA2BTxCall()
    
public  voidtestCohSetMultiA2BTxCont()
    
public  voidtestCohSetMultiA2BTxNo()
    
public  voidtestCohSetMultiA2BTxRb()
    
public  voidtestCohSetMultiBisA2BTxCall()
    
public  voidtestCohSetMultiBisA2BTxCont()
    
public  voidtestCohSetMultiBisA2BTxNo()
    
public  voidtestCohSetMultiBisA2BTxRb()
    
public  voidtestCohSetOne2A2BTxCall()
    
public  voidtestCohSetOne2A2BTxCont()
    
public  voidtestCohSetOne2A2BTxNo()
    
public  voidtestCohSetOne2A2BTxRb()
    
public  voidtestCohSetOneA2BTxCall()
    
public  voidtestCohSetOneA2BTxCont()
    
public  voidtestCohSetOneA2BTxNo()
    
public  voidtestCohSetOneA2BTxRb()
    
public  voidtestCreateFindTx()
     Test that we can create a bean and find it in the same transaction.
public  voidtestCreateFindTx2()
     Test that we can create a bean and find it in the same transaction, using a method in A bean.
public  voidtestNewArrayListOnCmr()
    
public  voidtestRemove1()
    
public  voidtestResetPkForbidden()
     This test check it isn't allowed to reset the pk and that the container throw the java.lang.IllegalStateException.

Field Detail
BEAN_HOME_FRONT
protected static String BEAN_HOME_FRONT(Code)



a2b
static Hashtable a2b(Code)



b2a
static String[][] b2a(Code)



fhome
protected static FrontHome fhome(Code)



isInit
protected boolean isInit(Code)




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




Method Detail
getAHome
abstract public AHomeRemote getAHome()(Code)



getBHome
abstract public BHomeRemote getBHome()(Code)



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)



setUp
protected void setUp()(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)



testBasicGetEmptyA2BTxRb
public void testBasicGetEmptyA2BTxRb() throws Exception(Code)



testBasicGetEmptyB2ANoTx
public void testBasicGetEmptyB2ANoTx() throws Exception(Code)



testBasicGetEmptyB2ATxCall
public void testBasicGetEmptyB2ATxCall() throws Exception(Code)



testBasicGetEmptyB2ATxCont
public void testBasicGetEmptyB2ATxCont() throws Exception(Code)



testBasicGetEmptyB2ATxRb
public void testBasicGetEmptyB2ATxRb() throws Exception(Code)



testBasicGetManyA2BTxCall
public void testBasicGetManyA2BTxCall() throws Exception(Code)



testBasicGetManyA2BTxCont
public void testBasicGetManyA2BTxCont() throws Exception(Code)



testBasicGetManyA2BTxNo
public void testBasicGetManyA2BTxNo() throws Exception(Code)



testBasicGetManyA2BTxRb
public void testBasicGetManyA2BTxRb() throws Exception(Code)



testBasicGetOneA2BTxCall
public void testBasicGetOneA2BTxCall() throws Exception(Code)



testBasicGetOneA2BTxCont
public void testBasicGetOneA2BTxCont() throws Exception(Code)



testBasicGetOneA2BTxNo
public void testBasicGetOneA2BTxNo() throws Exception(Code)



testBasicGetOneA2BTxRb
public void testBasicGetOneA2BTxRb() throws Exception(Code)



testCohAddOneA2BTxCall
public void testCohAddOneA2BTxCall() throws Exception(Code)



testCohAddOneA2BTxCont
public void testCohAddOneA2BTxCont() throws Exception(Code)



testCohAddOneA2BTxNo
public void testCohAddOneA2BTxNo() throws Exception(Code)



testCohAddOneA2BTxRb
public void testCohAddOneA2BTxRb() throws Exception(Code)



testCohAddOneInMultiA2BTxCall
public void testCohAddOneInMultiA2BTxCall() throws Exception(Code)



testCohAddOneInMultiA2BTxCont
public void testCohAddOneInMultiA2BTxCont() throws Exception(Code)



testCohAddOneInMultiA2BTxNo
public void testCohAddOneInMultiA2BTxNo() throws Exception(Code)



testCohAddOneInMultiA2BTxRb
public void testCohAddOneInMultiA2BTxRb() throws Exception(Code)



testCohBeanRemoveBTxCall
public void testCohBeanRemoveBTxCall() throws Exception(Code)



testCohBeanRemoveBTxNo
public void testCohBeanRemoveBTxNo() throws Exception(Code)



testCohBeanRemoveBTxRb
public void testCohBeanRemoveBTxRb() throws Exception(Code)



testCohClearA2BTxCall
public void testCohClearA2BTxCall() throws Exception(Code)



testCohClearA2BTxCont
public void testCohClearA2BTxCont() throws Exception(Code)



testCohClearA2BTxNo
public void testCohClearA2BTxNo() throws Exception(Code)



testCohClearA2BTxRb
public void testCohClearA2BTxRb() throws Exception(Code)



testCohRemoveBTxCall
public void testCohRemoveBTxCall() throws Exception(Code)



testCohRemoveBTxNo
public void testCohRemoveBTxNo() throws Exception(Code)



testCohRemoveBTxRb
public void testCohRemoveBTxRb() throws Exception(Code)



testCohRemoveInRelA2BTxCall
public void testCohRemoveInRelA2BTxCall() throws Exception(Code)



testCohRemoveInRelA2BTxCont
public void testCohRemoveInRelA2BTxCont() throws Exception(Code)



testCohRemoveInRelA2BTxNo
public void testCohRemoveInRelA2BTxNo() throws Exception(Code)



testCohRemoveInRelA2BTxRb
public void testCohRemoveInRelA2BTxRb() throws Exception(Code)



testCohSet1B2ATxCall
public void testCohSet1B2ATxCall() throws Exception(Code)



testCohSet1B2ATxCont
public void testCohSet1B2ATxCont() throws Exception(Code)



testCohSet1B2ATxNo
public void testCohSet1B2ATxNo() throws Exception(Code)



testCohSet1B2ATxRb
public void testCohSet1B2ATxRb() throws Exception(Code)



testCohSet2B2ATxCall
public void testCohSet2B2ATxCall() throws Exception(Code)



testCohSet2B2ATxCont
public void testCohSet2B2ATxCont() throws Exception(Code)



testCohSet2B2ATxNo
public void testCohSet2B2ATxNo() throws Exception(Code)



testCohSet2B2ATxRb
public void testCohSet2B2ATxRb() throws Exception(Code)



testCohSet3B2ATxCall
public void testCohSet3B2ATxCall() throws Exception(Code)



testCohSet3B2ATxCont
public void testCohSet3B2ATxCont() throws Exception(Code)



testCohSet3B2ATxNo
public void testCohSet3B2ATxNo() throws Exception(Code)



testCohSet3B2ATxRb
public void testCohSet3B2ATxRb() throws Exception(Code)



testCohSetEmptyA2BTxCall
public void testCohSetEmptyA2BTxCall() throws Exception(Code)



testCohSetEmptyA2BTxCont
public void testCohSetEmptyA2BTxCont() throws Exception(Code)



testCohSetEmptyA2BTxNo
public void testCohSetEmptyA2BTxNo() throws Exception(Code)



testCohSetEmptyA2BTxRb
public void testCohSetEmptyA2BTxRb() throws Exception(Code)



testCohSetMultiA2BTxCall
public void testCohSetMultiA2BTxCall() throws Exception(Code)



testCohSetMultiA2BTxCont
public void testCohSetMultiA2BTxCont() throws Exception(Code)



testCohSetMultiA2BTxNo
public void testCohSetMultiA2BTxNo() throws Exception(Code)



testCohSetMultiA2BTxRb
public void testCohSetMultiA2BTxRb() throws Exception(Code)



testCohSetMultiBisA2BTxCall
public void testCohSetMultiBisA2BTxCall() throws Exception(Code)



testCohSetMultiBisA2BTxCont
public void testCohSetMultiBisA2BTxCont() throws Exception(Code)



testCohSetMultiBisA2BTxNo
public void testCohSetMultiBisA2BTxNo() throws Exception(Code)



testCohSetMultiBisA2BTxRb
public void testCohSetMultiBisA2BTxRb() throws Exception(Code)



testCohSetOne2A2BTxCall
public void testCohSetOne2A2BTxCall() throws Exception(Code)



testCohSetOne2A2BTxCont
public void testCohSetOne2A2BTxCont() throws Exception(Code)



testCohSetOne2A2BTxNo
public void testCohSetOne2A2BTxNo() throws Exception(Code)



testCohSetOne2A2BTxRb
public void testCohSetOne2A2BTxRb() throws Exception(Code)



testCohSetOneA2BTxCall
public void testCohSetOneA2BTxCall() throws Exception(Code)



testCohSetOneA2BTxCont
public void testCohSetOneA2BTxCont() throws Exception(Code)



testCohSetOneA2BTxNo
public void testCohSetOneA2BTxNo() throws Exception(Code)



testCohSetOneA2BTxRb
public void testCohSetOneA2BTxRb() throws Exception(Code)



testCreateFindTx
public void testCreateFindTx() throws Exception(Code)
Test that we can create a bean and find it in the same transaction.



testCreateFindTx2
public void testCreateFindTx2() throws Exception(Code)
Test that we can create a bean and find it in the same transaction, using a method in A bean.



testNewArrayListOnCmr
public void testNewArrayListOnCmr() throws Exception(Code)
Reproduce the bug #300156: Error on creating Array from cmr-collection



testRemove1
public void testRemove1() throws Exception(Code)
Ensure the javax.ejb.EJBException is thrown when trying to invoke an accessor method on a deleted entitybean object



testResetPkForbidden
public void testResetPkForbidden() throws Exception(Code)
This test check it isn't allowed to reset the pk and that the container throw the java.lang.IllegalStateException. See spec 2.0, chapter 10.3.5, page 134.



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.