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

CollectionTest
public class CollectionTest extends PBTestCase (Code)
Test case for collection handling. Main class Gatherer have five collections of type CollectibleBase, CollectibleB, CollectibleC, CollectibleD, CollectibleDD Class hierarchy: [CollectibleBaseIF <--] CollectibleBase <-- CollectibleB <-- CollectibleC <-- CollectibleCC | | CollectibleD <-- CollectibleDD CollectibleCCC in repository interface CollectibleBaseIF was declared with five extents (CollectibleBase, CollectibleB, CollectibleC, CollectibleD, CollectibleDD) CollectibleBase auto-retrieve, auto-update, auto-delete all true proxy false CollectibleB auto-retrieve, auto-update set true, auto-delete false proxy true CollectibleC auto-retrieve, auto-update, auto-delete set true, proxy true CollectibleC has a reference back to the Gatherer object (auto-retrieve, auto-update, auto-delete set false to avoid circular object creation) CollectibleCC auto-retrieve true, auto-update true, auto-delete set true, proxy false CollectibleCCC auto-retrieve false, auto-update true, auto-delete set true, proxy false CollectibleD auto-retrieve, auto-update, auto-delete all true proxy false CollectibleDD auto-retrieve, auto-update, auto-delete all true proxy true TODO: Need some refactoring and more structured tests of different auto_xyz/proxy settings
author:
   Armin Waibel
version:
   $Id: CollectionTest.java,v 1.11.2.7 2005/12/29 22:18:21 arminw Exp $

Inner Class :public static class CollectionClassDummy implements ManageableCollection
Inner Class :public static class Gatherer implements Serializable
Inner Class :public static interface CollectibleBaseIF extends Serializable
Inner Class :public static class CollectibleBase implements CollectibleBaseIF
Inner Class :public static interface CollectibleBIF extends CollectibleBaseIF
Inner Class :public static class CollectibleB extends CollectibleBase implements CollectibleBIF
Inner Class :public static interface CollectibleCIF extends CollectibleBIF
Inner Class :public static class CollectibleC extends CollectibleB implements CollectibleCIF
Inner Class :public static class CollectibleCC extends CollectibleC
Inner Class :public static class CollectibleC2 extends CollectibleC
Inner Class :public static interface CollectibleDIF extends CollectibleBaseIF
Inner Class :public static class CollectibleD extends CollectibleBase implements CollectibleDIF
Inner Class :public static interface CollectibleDDIF extends CollectibleBaseIF
Inner Class :public static class CollectibleDD extends CollectibleBase implements CollectibleDDIF
Inner Class :public static interface BookShelfIF
Inner Class :public static class BookShelf implements BookShelfIF
Inner Class :abstract public static class BookShelfItem
Inner Class :public static class DVD extends BookShelfItem
Inner Class :public static class Book extends BookShelfItem
Inner Class :public static class Candie

Field Summary
final static  intLINK
    
final static  intNONE
    
final static  intOBJECT
    


Method Summary
public static  voidmain(String[] args)
    
public  voidtestAddNewObjectsToExistingCollection()
     Add new reference objects to an existing collection reference (1:n) of a main object.
public  voidtestDeleteCollection()
    
public  voidtestDeleteMainObjectWithOneToNRelation()
    
public  voidtestMoveProxyCollectionFromOneToAnother()
    
public  voidtestOneBookShelfQueryByCollection()
    
public  voidtestOneBookShelfQueryByIterator()
    
public  voidtestReadProxyCollection()
    
public  voidtestRemovalAwareCollection()
    
public  voidtestRemovalAwareCollection2()
    
public  voidtestRemovalAwareCollectionProxy()
    
public  voidtestStoreCollectionObjectsWithBackReference()
     generate main object with collections and store main object to make all persistent.
public  voidtestStoreDeleteSimpleCollections()
    
public  voidtestStoreDeleteSimpleCollections_2()
    
public  voidtestStoreReadOfUserDefinedCollectionClass()
    
public  voidtestStoreReadOfUserDefinedCollectionClass_2()
    
public  voidtestStoreSimpleCollections()
    
public  voidtestUsingExtentWhichIsNotInheritedFromBaseClass()
    

Field Detail
LINK
final static int LINK(Code)



NONE
final static int NONE(Code)



OBJECT
final static int OBJECT(Code)





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



testAddNewObjectsToExistingCollection
public void testAddNewObjectsToExistingCollection()(Code)
Add new reference objects to an existing collection reference (1:n) of a main object.



testDeleteCollection
public void testDeleteCollection()(Code)
generate main object with collections and store main object to make all persistent



testDeleteMainObjectWithOneToNRelation
public void testDeleteMainObjectWithOneToNRelation()(Code)
generate main object with collections and store main object to make all persistent



testMoveProxyCollectionFromOneToAnother
public void testMoveProxyCollectionFromOneToAnother() throws Exception(Code)



testOneBookShelfQueryByCollection
public void testOneBookShelfQueryByCollection() throws Exception(Code)



testOneBookShelfQueryByIterator
public void testOneBookShelfQueryByIterator() throws Exception(Code)



testReadProxyCollection
public void testReadProxyCollection() throws Exception(Code)



testRemovalAwareCollection
public void testRemovalAwareCollection()(Code)
Test RemovalAwareCollection remove() and clear()



testRemovalAwareCollection2
public void testRemovalAwareCollection2()(Code)
Test RemovalAwareCollection remove() of non persistent obj



testRemovalAwareCollectionProxy
public void testRemovalAwareCollectionProxy()(Code)
Test RemovalAwareCollection remove() and clear()



testStoreCollectionObjectsWithBackReference
public void testStoreCollectionObjectsWithBackReference()(Code)
generate main object with collections and store main object to make all persistent. same like CollectionTest.testStoreSimpleCollections but now the collection objects have a reference back to main object. Curious but this test does not pass



testStoreDeleteSimpleCollections
public void testStoreDeleteSimpleCollections()(Code)
generate main object with collections and store main object to make all persistent



testStoreDeleteSimpleCollections_2
public void testStoreDeleteSimpleCollections_2()(Code)
generate main object with collections and store main object to make all persistent using ojbConcreteClass feature to map different objects to same table



testStoreReadOfUserDefinedCollectionClass
public void testStoreReadOfUserDefinedCollectionClass()(Code)



testStoreReadOfUserDefinedCollectionClass_2
public void testStoreReadOfUserDefinedCollectionClass_2()(Code)



testStoreSimpleCollections
public void testStoreSimpleCollections()(Code)



testUsingExtentWhichIsNotInheritedFromBaseClass
public void testUsingExtentWhichIsNotInheritedFromBaseClass() throws Exception(Code)
test for OJB-82



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.