Java Doc for M2NTest.java in  » Database-ORM » db-ojb » org » apache » ojb » broker » 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 » db ojb » org.apache.ojb.broker 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.ojb.junit.PBTestCase
   org.apache.ojb.broker.M2NTest

M2NTest
public class M2NTest extends PBTestCase (Code)
Test (non-decomposed) M:N relations. IMPORTANT NOTE: The global runtime metadata changes made by this test case are NOT recommended in multithreaded environments, because they are global and each thread will be affected.
author:
   Armin Waibel
version:
   $Id: M2NTest.java,v 1.7.2.11 2005/11/26 02:37:03 arminw Exp $

Inner Class :public static class MovieManageableCollection implements ManageableCollection
Inner Class :public static class Actor
Inner Class :public static interface Movie
Inner Class :public static class MovieImpl implements Movie
Inner Class :public static class Role
Inner Class :public static class Producer

Field Summary
final static  intLINK
    
final static  intNONE
    
final static  intOBJECT
    
 intactorCount
    
 intmovieCount
    


Method Summary
public  voidYYYtestStoreAddUpdateDeleteTLLF()
    
public  voidYYYtestStoreAddUpdateDeleteTLLT()
    
 ActorbuildActorWithMovies(String postfixId, int movieCount)
    
 ActorbuildActorWithMovies(String postfixId)
    
 MoviebuildMovieWithActors(String postfixId)
    
 MoviebuildMovieWithActors(String postfixId, int actorCount)
    
 MoviebuildMovieWithActorsAndBackReferences(String postfixId)
    
public  voiddoTestAddNewEntries()
    
public  voiddoTestStoreAddUpdateDeleteTLLX(Movie movie, String postfix)
    
public  voiddoTestStoreFFFX(Movie movie, String postfix)
    
public  voiddoTestStoreTFFX()
    
public  voiddoTestStoreTTXX()
    
public  voiddoTestStoreTTXX_2()
    
public  voiddoTestStoreUpdateTTXX()
    
public static  voidmain(String[] args)
    
 QueryqueryActor(String postfix)
    
 QueryqueryMovie(String postfix)
    
 QueryqueryRole(Actor actor, Movie movie)
    
 QueryroleQueryActorOrMovieMatch(Actor actor, Movie movie)
    
public  voidtearDown()
    
public  voidtestAddNewEntriesTTTF()
    
public  voidtestAddNewEntriesTTTT()
    
public  voidtestAutoUpdateDeleteSettings()
    
public  voidtestMassStoreUpdateAutomatic()
    
public  voidtestMassStoreUpdateLinking()
    
public  voidtestSimpleStore_1()
    
public  voidtestSimpleStore_2()
    
public  voidtestStoreFFFF()
    
public  voidtestStoreFFFF_2()
     All auto-xxx settings are false, thus expect that all thing must be done by hand.
public  voidtestStoreFFFT()
    
public  voidtestStoreFFFT_2()
     All auto-xxx settings are false, thus expect that all thing must be done by hand, proxy true should not affect anything.
public  voidtestStoreTFFF()
     auto-retrieve is true, other false.
public  voidtestStoreTFFT()
     auto-retrieve is true, other false.
public  voidtestStoreTTFF()
    
public  voidtestStoreTTFT()
    
public  voidtestStoreTTFT_2()
    
public  voidtestStoreUpdateActorTTFF()
    
public  voidtestStoreUpdateTTFF()
    
public  voidtestStoreUpdateTTFF_2()
    
public  voidtestStoreWithSharedIndirectionTableColumn()
    

Field Detail
LINK
final static int LINK(Code)



NONE
final static int NONE(Code)



OBJECT
final static int OBJECT(Code)



actorCount
int actorCount(Code)



movieCount
int movieCount(Code)





Method Detail
YYYtestStoreAddUpdateDeleteTLLF
public void YYYtestStoreAddUpdateDeleteTLLF()(Code)



YYYtestStoreAddUpdateDeleteTLLT
public void YYYtestStoreAddUpdateDeleteTLLT()(Code)



buildActorWithMovies
Actor buildActorWithMovies(String postfixId, int movieCount)(Code)
Returns 1 movie object with 3 actor objects



buildActorWithMovies
Actor buildActorWithMovies(String postfixId)(Code)



buildMovieWithActors
Movie buildMovieWithActors(String postfixId)(Code)
Returns 1 movie object with 3 actor objects in actors-collection and 2 actor objects in actors2-collection



buildMovieWithActors
Movie buildMovieWithActors(String postfixId, int actorCount)(Code)
Returns 1 movie object with 3 actor objects



buildMovieWithActorsAndBackReferences
Movie buildMovieWithActorsAndBackReferences(String postfixId)(Code)
Returns 1 movie object with 3 actor objects and one actor object with back-reference to movie object + 2 new movies



doTestAddNewEntries
public void doTestAddNewEntries()(Code)



doTestStoreAddUpdateDeleteTLLX
public void doTestStoreAddUpdateDeleteTLLX(Movie movie, String postfix)(Code)



doTestStoreFFFX
public void doTestStoreFFFX(Movie movie, String postfix)(Code)



doTestStoreTFFX
public void doTestStoreTFFX()(Code)



doTestStoreTTXX
public void doTestStoreTTXX()(Code)



doTestStoreTTXX_2
public void doTestStoreTTXX_2()(Code)



doTestStoreUpdateTTXX
public void doTestStoreUpdateTTXX()(Code)



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



queryActor
Query queryActor(String postfix)(Code)



queryMovie
Query queryMovie(String postfix)(Code)



queryRole
Query queryRole(Actor actor, Movie movie)(Code)



roleQueryActorOrMovieMatch
Query roleQueryActorOrMovieMatch(Actor actor, Movie movie)(Code)



tearDown
public void tearDown() throws Exception(Code)



testAddNewEntriesTTTF
public void testAddNewEntriesTTTF()(Code)



testAddNewEntriesTTTT
public void testAddNewEntriesTTTT()(Code)



testAutoUpdateDeleteSettings
public void testAutoUpdateDeleteSettings()(Code)
Test deprecated auto Settings



testMassStoreUpdateAutomatic
public void testMassStoreUpdateAutomatic()(Code)



testMassStoreUpdateLinking
public void testMassStoreUpdateLinking()(Code)



testSimpleStore_1
public void testSimpleStore_1()(Code)



testSimpleStore_2
public void testSimpleStore_2()(Code)



testStoreFFFF
public void testStoreFFFF()(Code)
All auto-xxx settings are false, thus expect that all thing must be done by hand



testStoreFFFF_2
public void testStoreFFFF_2()(Code)
All auto-xxx settings are false, thus expect that all thing must be done by hand. Actors has a collection of movies too - should be ignored in this case.



testStoreFFFT
public void testStoreFFFT()(Code)
All auto-xxx settings are false, thus expect that all thing must be done by hand, proxy true should not affect anything



testStoreFFFT_2
public void testStoreFFFT_2()(Code)
All auto-xxx settings are false, thus expect that all thing must be done by hand, proxy true should not affect anything. Actors has a collection of movies too - should be ignored in this case.



testStoreTFFF
public void testStoreTFFF()(Code)
auto-retrieve is true, other false. proxy true/false should not affect anything.



testStoreTFFT
public void testStoreTFFT()(Code)
auto-retrieve is true, other false. proxy true/false should not affect anything.



testStoreTTFF
public void testStoreTTFF()(Code)



testStoreTTFT
public void testStoreTTFT()(Code)



testStoreTTFT_2
public void testStoreTTFT_2()(Code)
movies with back-references auto-update = OBJECT



testStoreUpdateActorTTFF
public void testStoreUpdateActorTTFF()(Code)



testStoreUpdateTTFF
public void testStoreUpdateTTFF()(Code)



testStoreUpdateTTFF_2
public void testStoreUpdateTTFF_2()(Code)



testStoreWithSharedIndirectionTableColumn
public void testStoreWithSharedIndirectionTableColumn()(Code)
Test for OJB-76



Fields inherited from org.apache.ojb.junit.PBTestCase
public PersistenceBroker broker(Code)(Java Doc)

Methods inherited from org.apache.ojb.junit.PBTestCase
public String getPlatformClass()(Code)(Java Doc)
public void pbPersist(Object obj)(Code)(Java Doc)
public void setUp() throws Exception(Code)(Java Doc)
public void tearDown() throws Exception(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.