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


org.apache.ojb.junit.ODMGTestCase
   org.apache.ojb.odmg.M2NTest

M2NTest
public class M2NTest extends ODMGTestCase (Code)
Test m:n relation handling with the odmg-api. The mandatory auto-update/auto-delete setting are 'false' in that case equals to 'LINK'.

TODO: we need more tests doing delete/update operations on M:N relations
author:
   Armin Waibel
version:
   $Id: M2NTest.java,v 1.3.2.6 2005/06/04 17:35:19 arminw Exp $


Inner Class :public static interface MovieManageableCollection extends ManageableCollection
Inner Class :public static class MovieManageableCollectionImpl implements MovieManageableCollection
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 County
Inner Class :public static interface OfficeProfile
Inner Class :public static class OfficeProfileImpl implements OfficeProfile

Field Summary
final static  intLINK
    
final static  intNONE
    
final static  intOBJECT
    
 booleanoldImpliciteWriteLock
    


Method Summary
 OQLQueryactorQuery(String postfix)
    
 ActorbuildActorWithMovies(String postfixId)
    
 MoviebuildMovieWithActors(String postfixId)
    
 MoviebuildMovieWithActorsAndBackReferences(String postfixId)
    
 voidchangeActorCollectionDescriptorTo(boolean autoRetrieve, int autoUpdate, int autoDelete, boolean proxy)
    
 voidchangeMovieCollectionDescriptorTo(boolean autoRetrieve, int autoUpdate, int autoDelete, boolean proxy)
    
public  voiddoTestRemoveAssociation()
    
public  voiddoTestStore()
    
public  voiddoTestStoreComplex()
    
public  voiddoTestStoreComplex_2()
    
public  voiddoTestStoreDelete()
    
public  voiddoTestStore_2()
    
public static  voidmain(String[] args)
    
 OQLQuerymovieQuery(String postfix)
    
 OQLQueryroleQuery(Actor actor, Movie movie)
    
protected  voidsetUp()
    
protected  voidtearDown()
    
public  voidtestOnetoNViaIndirectionTable()
    
public  voidtestRemoveAssociation()
    
public  voidtestRemoveAssociationWithProxy()
    
public  voidtestStore()
    
public  voidtestStoreComplex()
    
public  voidtestStoreComplexWithProxy()
    
public  voidtestStoreComplex_2()
    
public  voidtestStoreComplex_2_WithProxy()
    
public  voidtestStoreDelete()
    
public  voidtestStoreDeleteCascade()
     Use auto-delete="object" to enable cascading delete.
public  voidtestStoreDeleteWithProxy()
    
public  voidtestStoreWithProxy()
    
public  voidtestStore_2()
    
public  voidtestTwoMtoNRelationsInOneClass()
    

Field Detail
LINK
final static int LINK(Code)



NONE
final static int NONE(Code)



OBJECT
final static int OBJECT(Code)



oldImpliciteWriteLock
boolean oldImpliciteWriteLock(Code)





Method Detail
actorQuery
OQLQuery actorQuery(String postfix) throws QueryException(Code)



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



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



changeActorCollectionDescriptorTo
void changeActorCollectionDescriptorTo(boolean autoRetrieve, int autoUpdate, int autoDelete, boolean proxy)(Code)



changeMovieCollectionDescriptorTo
void changeMovieCollectionDescriptorTo(boolean autoRetrieve, int autoUpdate, int autoDelete, boolean proxy)(Code)



doTestRemoveAssociation
public void doTestRemoveAssociation() throws Exception(Code)



doTestStore
public void doTestStore() throws Exception(Code)



doTestStoreComplex
public void doTestStoreComplex() throws Exception(Code)



doTestStoreComplex_2
public void doTestStoreComplex_2() throws Exception(Code)



doTestStoreDelete
public void doTestStoreDelete() throws Exception(Code)



doTestStore_2
public void doTestStore_2() throws Exception(Code)



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



movieQuery
OQLQuery movieQuery(String postfix) throws QueryException(Code)



roleQuery
OQLQuery roleQuery(Actor actor, Movie movie) throws QueryException(Code)



setUp
protected void setUp() throws Exception(Code)



tearDown
protected void tearDown() throws Exception(Code)



testOnetoNViaIndirectionTable
public void testOnetoNViaIndirectionTable() throws Exception(Code)



testRemoveAssociation
public void testRemoveAssociation() throws Exception(Code)



testRemoveAssociationWithProxy
public void testRemoveAssociationWithProxy() throws Exception(Code)



testStore
public void testStore() throws Exception(Code)



testStoreComplex
public void testStoreComplex() throws Exception(Code)



testStoreComplexWithProxy
public void testStoreComplexWithProxy() throws Exception(Code)



testStoreComplex_2
public void testStoreComplex_2() throws Exception(Code)



testStoreComplex_2_WithProxy
public void testStoreComplex_2_WithProxy() throws Exception(Code)



testStoreDelete
public void testStoreDelete() throws Exception(Code)



testStoreDeleteCascade
public void testStoreDeleteCascade() throws Exception(Code)
Use auto-delete="object" to enable cascading delete.



testStoreDeleteWithProxy
public void testStoreDeleteWithProxy() throws Exception(Code)



testStoreWithProxy
public void testStoreWithProxy() throws Exception(Code)



testStore_2
public void testStore_2() throws Exception(Code)



testTwoMtoNRelationsInOneClass
public void testTwoMtoNRelationsInOneClass() throws Exception(Code)



Fields inherited from org.apache.ojb.junit.ODMGTestCase
public Database database(Code)(Java Doc)
public ImplementationExt odmg(Code)(Java Doc)

Methods inherited from org.apache.ojb.junit.ODMGTestCase
protected void setUp() throws Exception(Code)(Java Doc)
protected 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.