Java Doc for OperationTest.java in  » JMX » je » com » sleepycat » persist » test » 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 » JMX » je » com.sleepycat.persist.test 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sleepycat.je.test.TxnTestCase
   com.sleepycat.persist.test.OperationTest

OperationTest
public class OperationTest extends TxnTestCase (Code)
Tests misc store and index operations that are not tested by IndexTest.
author:
   Mark Hayes

Inner Class :static class MyEntity
Inner Class :static class SharedSequenceEntity1
Inner Class :static class SharedSequenceEntity2
Inner Class :static class SeparateSequenceEntity1
Inner Class :static class SeparateSequenceEntity2
Inner Class :static class CompositeSequenceEntity1
Inner Class :static class CompositeSequenceEntity2
Inner Class :static class ToManyKey
Inner Class :static class ToManyKeyEntity
Inner Class :static class RelatedX
Inner Class :static class RelatedY



Method Summary
public static  Testsuite()
    
public  voidtearDown()
     The store must be closed before closing the environment.
public  voidtestAutoOpenRelatedEntity()
     When Y is opened and X has a key with relatedEntity=Y.class, X should be opened automatically.
public  voidtestCompositeSequence()
    
public  voidtestCursorCount()
    
public  voidtestCursorDelete()
    
public  voidtestCursorUpdate()
    
public  voidtestDeferredWrite()
    
public  voidtestDeleteFromSubIndex()
    
public  voidtestGetStoreNames()
    
public  voidtestOpenRawStoreReadOnly()
     When opening read-only, secondaries are not opened when the primary is opened, causing a different code path to be used for opening secondaries.
public  voidtestReadOnly()
    
public  voidtestSecondaryBulkLoad1()
    
public  voidtestSecondaryBulkLoad2()
    
public  voidtestSeparateSequence()
    
public  voidtestSharedSequence()
    
public  voidtestToManyKeyClass()
     When opening an X_TO_MANY secondary that has a persistent key class, the key class was not recognized as being persistent if it was never before referenced when getSecondaryIndex was called.
public  voidtestToManyReadOnly()
     Test a fix for a bug where opening a TO_MANY secondary index would fail fail with "IllegalArgumentException: Wrong secondary key class: ..." when the store was opened read-only.
public  voidtestUninitializedCursor()
    



Method Detail
suite
public static Test suite()(Code)



tearDown
public void tearDown() throws Exception(Code)
The store must be closed before closing the environment.



testAutoOpenRelatedEntity
public void testAutoOpenRelatedEntity() throws DatabaseException(Code)
When Y is opened and X has a key with relatedEntity=Y.class, X should be opened automatically. If X is not opened, foreign key constraints will not be enforced. [#15358]



testCompositeSequence
public void testCompositeSequence() throws DatabaseException(Code)



testCursorCount
public void testCursorCount() throws DatabaseException(Code)



testCursorDelete
public void testCursorDelete() throws DatabaseException(Code)



testCursorUpdate
public void testCursorUpdate() throws DatabaseException(Code)



testDeferredWrite
public void testDeferredWrite() throws DatabaseException(Code)



testDeleteFromSubIndex
public void testDeleteFromSubIndex() throws DatabaseException(Code)



testGetStoreNames
public void testGetStoreNames() throws DatabaseException(Code)



testOpenRawStoreReadOnly
public void testOpenRawStoreReadOnly() throws DatabaseException(Code)
When opening read-only, secondaries are not opened when the primary is opened, causing a different code path to be used for opening secondaries. For a RawStore in particular, this caused an unreported NullPointerException in JE 3.0.12. No SR was created because the use case is very obscure and was discovered by code inspection.



testReadOnly
public void testReadOnly() throws DatabaseException(Code)



testSecondaryBulkLoad1
public void testSecondaryBulkLoad1() throws DatabaseException(Code)



testSecondaryBulkLoad2
public void testSecondaryBulkLoad2() throws DatabaseException(Code)



testSeparateSequence
public void testSeparateSequence() throws DatabaseException(Code)



testSharedSequence
public void testSharedSequence() throws DatabaseException(Code)



testToManyKeyClass
public void testToManyKeyClass() throws DatabaseException(Code)
When opening an X_TO_MANY secondary that has a persistent key class, the key class was not recognized as being persistent if it was never before referenced when getSecondaryIndex was called. This was a bug in JE 3.0.12, reported on OTN. [#15103]



testToManyReadOnly
public void testToManyReadOnly() throws DatabaseException(Code)
Test a fix for a bug where opening a TO_MANY secondary index would fail fail with "IllegalArgumentException: Wrong secondary key class: ..." when the store was opened read-only. [#15156]



testUninitializedCursor
public void testUninitializedCursor() throws DatabaseException(Code)



Fields inherited from com.sleepycat.je.test.TxnTestCase
final public static String TXN_AUTO(Code)(Java Doc)
final public static String TXN_NULL(Code)(Java Doc)
final public static String TXN_USER(Code)(Java Doc)
protected Environment env(Code)(Java Doc)
protected EnvironmentConfig envConfig(Code)(Java Doc)
protected File envHome(Code)(Java Doc)
protected boolean isTransactional(Code)(Java Doc)
protected String txnType(Code)(Java Doc)

Methods inherited from com.sleepycat.je.test.TxnTestCase
public void closeEnv() throws DatabaseException(Code)(Java Doc)
public void openEnv() throws DatabaseException(Code)(Java Doc)
public void runTest() throws Throwable(Code)(Java Doc)
public void setUp() throws Exception(Code)(Java Doc)
public void tearDown() throws Exception(Code)(Java Doc)
protected void txnAbort(Transaction txn) throws DatabaseException(Code)(Java Doc)
protected Transaction txnBegin() throws DatabaseException(Code)(Java Doc)
protected Transaction txnBegin(Transaction parentTxn, TransactionConfig config) throws DatabaseException(Code)(Java Doc)
protected Transaction txnBeginCursor() throws DatabaseException(Code)(Java Doc)
protected Transaction txnBeginCursor(Transaction parentTxn, TransactionConfig config) throws DatabaseException(Code)(Java Doc)
protected void txnCommit(Transaction txn) throws DatabaseException(Code)(Java Doc)
public static TestSuite txnTestSuite(Class testCaseClass, EnvironmentConfig envConfig, String[] txnTypes)(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.