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

PersistenceBrokerTest
public class PersistenceBrokerTest extends PBTestCase (Code)
Junit test driver for elematary PB tests.



Constructor Summary
public  PersistenceBrokerTest(String name)
     BrokerTests constructor comment.

Method Summary
protected  ArticlecreateArticle(ProductGroup group, String name)
    
protected  CdArticlecreateCdArticle(ProductGroup group, String name)
    
protected  voiddeleteArticle(Integer id)
    
protected  voiddeleteArticle(Article articleToDelete)
    
public static  voidmain(String[] args)
    
protected  ArticlereadArticleByExample(Integer id)
    
protected  ArticlereadArticleByIdentity(Article article)
    
protected  ArticlereadArticleByIdentity(Integer id)
    
protected  voidstoreArticle(Article anArticle)
    
public  voidtestAutoIncrement()
    
public  voidtestChangeFieldsWhileStoringObject()
    
public  voidtestCountByReportQuery()
    
public  voidtestDelete()
     test the the PB delete() method.
public  voidtestDeleteByQuery()
     test the the PB deleteByQuery() method.
public  voidtestDoubleDelete()
    
public  voidtestDoubleStore()
    
public  voidtestDuplicateExtentQueries()
    
public  voidtestEscaping()
    
public  voidtestExtentAwareIteratorByQuery()
    
public  voidtestExtentWithOneConcreteClassWithOjbConcreteClass()
     performs a test of an extent with one concrete class that uses ojbConcreteClass identifier.
public  voidtestGetByExampleAndGetByIdentity()
    
public  voidtestGetCollectionByQuery()
     Insert the method's description here.
public  voidtestGetCollectionByQueryWithStartAndEnd()
    
public  voidtestGetDescriptor()
    
public  voidtestGetIteratorByQuery()
    
public  voidtestGetIteratorBySQL()
    
public  voidtestGetMultipleIteratorsByQuery()
    
public  voidtestGetObjectByQuery()
    
public  voidtestGetPKEnumerationByConstraints()
    
public  voidtestGetReportQueryIteratorBySQL()
    
public  voidtestGuidFieldConversion()
    
public  voidtestInsert()
    
public  voidtestIteratorSize()
    
public  voidtestLocalTransactionDemarcation()
    
public  voidtestMappingToOneTable()
     performs a test of the inheritance mapping to one table.
public  voidtestMappingToOneTableWithAbstractBaseClass()
     performs a test of the inheritance mapping to one table.
public  voidtestMultiKeyCount()
    
public  voidtestNull_0_Complex()
     PK fields with primitive data types interpret '0' value as 'null' by default.
public  voidtestNull_0_Complex_2()
     Object with autoincrement 'true' and a NON primitive data type for the PK field.
public  voidtestPBF()
    
public  voidtestPBisClosed()
    
public  voidtestPaging()
    
public  voidtestPagingEmptyIterator()
    
public  voidtestPagingEndIndexOutOfRange()
    
public  voidtestPagingIndicesOutOfRange()
    
public  voidtestPagingPosition()
    
public  voidtestReadUncommitedDataWithinSamePB()
    
public  voidtestRowReader()
    
public  voidtestSortedCollectionAttribute()
    
public  voidtestSorting()
    
public  voidtestUpdate()
    
public  voidtestUpdateReferencedProxy()
    
public  voidtestUpdateWithModification()
    


Constructor Detail
PersistenceBrokerTest
public PersistenceBrokerTest(String name)(Code)
BrokerTests constructor comment.
Parameters:
  name - java.lang.String




Method Detail
createArticle
protected Article createArticle(ProductGroup group, String name)(Code)



createCdArticle
protected CdArticle createCdArticle(ProductGroup group, String name)(Code)



deleteArticle
protected void deleteArticle(Integer id) throws PersistenceBrokerException(Code)



deleteArticle
protected void deleteArticle(Article articleToDelete) throws PersistenceBrokerException(Code)



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



readArticleByExample
protected Article readArticleByExample(Integer id) throws PersistenceBrokerException(Code)



readArticleByIdentity
protected Article readArticleByIdentity(Article article) throws PersistenceBrokerException(Code)



readArticleByIdentity
protected Article readArticleByIdentity(Integer id) throws PersistenceBrokerException(Code)



storeArticle
protected void storeArticle(Article anArticle) throws PersistenceBrokerException(Code)



testAutoIncrement
public void testAutoIncrement() throws Exception(Code)
Test the AutoIncrement facility



testChangeFieldsWhileStoringObject
public void testChangeFieldsWhileStoringObject()(Code)



testCountByReportQuery
public void testCountByReportQuery() throws Exception(Code)
do a count by report query



testDelete
public void testDelete() throws Exception(Code)
test the the PB delete() method.



testDeleteByQuery
public void testDeleteByQuery() throws Exception(Code)
test the the PB deleteByQuery() method.



testDoubleDelete
public void testDoubleDelete()(Code)



testDoubleStore
public void testDoubleStore()(Code)



testDuplicateExtentQueries
public void testDuplicateExtentQueries()(Code)
Test if only one query is executed for each extent.
If the same query is run multiple times the result will contain duplicates



testEscaping
public void testEscaping() throws Exception(Code)



testExtentAwareIteratorByQuery
public void testExtentAwareIteratorByQuery() throws Exception(Code)
extent aware iterator



testExtentWithOneConcreteClassWithOjbConcreteClass
public void testExtentWithOneConcreteClassWithOjbConcreteClass() throws Exception(Code)
performs a test of an extent with one concrete class that uses ojbConcreteClass identifier.



testGetByExampleAndGetByIdentity
public void testGetByExampleAndGetByIdentity() throws Exception(Code)



testGetCollectionByQuery
public void testGetCollectionByQuery() throws Exception(Code)
Insert the method's description here. Creation date: (06.12.2000 21:51:22)



testGetCollectionByQueryWithStartAndEnd
public void testGetCollectionByQueryWithStartAndEnd() throws Exception(Code)



testGetDescriptor
public void testGetDescriptor() throws Exception(Code)
performs a test to check if metadata can be read



testGetIteratorByQuery
public void testGetIteratorByQuery() throws Exception(Code)



testGetIteratorBySQL
public void testGetIteratorBySQL() throws Exception(Code)
Testing the getIteratorBySQL functionality



testGetMultipleIteratorsByQuery
public void testGetMultipleIteratorsByQuery() throws Exception(Code)



testGetObjectByQuery
public void testGetObjectByQuery() throws Exception(Code)



testGetPKEnumerationByConstraints
public void testGetPKEnumerationByConstraints() throws Exception(Code)



testGetReportQueryIteratorBySQL
public void testGetReportQueryIteratorBySQL()(Code)
Testing the getReportQueryIteratorBySQL functionality



testGuidFieldConversion
public void testGuidFieldConversion()(Code)
tests the FieldConversion facility



testInsert
public void testInsert() throws Exception(Code)



testIteratorSize
public void testIteratorSize()(Code)
Size returned by Iterator must be same as size of Collection



testLocalTransactionDemarcation
public void testLocalTransactionDemarcation()(Code)



testMappingToOneTable
public void testMappingToOneTable() throws Exception(Code)
performs a test of the inheritance mapping to one table.



testMappingToOneTableWithAbstractBaseClass
public void testMappingToOneTableWithAbstractBaseClass()(Code)
performs a test of the inheritance mapping to one table.



testMultiKeyCount
public void testMultiKeyCount() throws Exception(Code)



testNull_0_Complex
public void testNull_0_Complex() throws Exception(Code)
PK fields with primitive data types interpret '0' value as 'null' by default. But if we don't use primitive data types and read an object with 0 as PK value and store such an object without changes, nothing should happen.



testNull_0_Complex_2
public void testNull_0_Complex_2() throws Exception(Code)
Object with autoincrement 'true' and a NON primitive data type for the PK field. It should be allowed to set an new object with PK 0, because PK field is not primitive



testPBF
public void testPBF() throws Exception(Code)



testPBisClosed
public void testPBisClosed()(Code)



testPaging
public void testPaging()(Code)



testPagingEmptyIterator
public void testPagingEmptyIterator()(Code)



testPagingEndIndexOutOfRange
public void testPagingEndIndexOutOfRange()(Code)



testPagingIndicesOutOfRange
public void testPagingIndicesOutOfRange()(Code)



testPagingPosition
public void testPagingPosition()(Code)



testReadUncommitedDataWithinSamePB
public void testReadUncommitedDataWithinSamePB() throws Exception(Code)



testRowReader
public void testRowReader()(Code)
tests the RowReader mechanism



testSortedCollectionAttribute
public void testSortedCollectionAttribute()(Code)
testing the sorted collections feature.)



testSorting
public void testSorting() throws Exception(Code)



testUpdate
public void testUpdate() throws Exception(Code)



testUpdateReferencedProxy
public void testUpdateReferencedProxy() throws Exception(Code)
test if reference to Proxy is updated
throws:
  Exception -



testUpdateWithModification
public void testUpdateWithModification() throws Exception(Code)



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.