Issue Details (XML | Word | Printable)

Key: JDO-191
Type: Test Test
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Craig Russell
Reporter: Craig Russell
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JDO

Add test for PersistenceManager.getDataStoreConnection()

Created: 19/Oct/05 07:07 AM   Updated: 26/Mar/06 10:34 AM
Return to search
Component/s: tck2
Affects Version/s: JDO 2 beta
Fix Version/s: JDO 2 final

Time Tracking:
Not Specified

File Attachments:
  Size
Java Source File Licensed for inclusion in ASF works DataStoreConnection.java 2006-03-08 03:11 AM Craig Russell 5 kB
Java Source File Licensed for inclusion in ASF works DataStoreConnection.java 2006-03-07 01:30 PM Craig Russell 3 kB
Java Source File Licensed for inclusion in ASF works DataStoreConnectionThrows.java 2006-03-08 03:11 AM Craig Russell 6 kB
Environment: TCK

Resolution Date: 09/Mar/06 07:47 AM


 Description  « Hide
A12.16-1 [JDOConnection getDataStoreConnection(); If this method is called while a datastore transaction is active, the object returned will be enlisted in the current transaction. If called in an optimistic transaction before flush has been called, or outside an active transaction, the object returned will not be enlisted in any transaction.]]

The tests use the jdbc Connection.

The test needs to work with the jdbc library from the standard JDK 1.3 (JDBC 2.0).

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Craig Russell made changes - 04/Feb/06 04:27 AM
Field Original Value New Value
Affects Version/s JDO 2 beta [ 12310683 ]
Fix Version/s JDO 2 rc1 [ 12310771 ]
Craig Russell made changes - 25/Feb/06 07:41 AM
Fix Version/s JDO 2 final [ 12310830 ]
Fix Version/s JDO 2 rc1 [ 12310771 ]
Craig Russell made changes - 07/Mar/06 01:29 PM
Description A12.16-1 [JDOConnection getDataStoreConnection(); If this method is called while a datastore transaction is active, the object returned will be enlisted in the current transaction. If called in an optimistic transaction before flush has been called, or outside an active transaction, the object returned will not be enlisted in any transaction.]]

The tests use the PCPoint class and a jdbc Connection.

The first test verifies that an object inserted into the PCPoint table during a transaction is visible by getObjectById in the same transaction.

The second test verifies that an object inserted into the PCPoint table outside a transaction is visible in the next transaction.

The test needs to work with the jdbc library from the standard JDK 1.3 (JDBC 2.0).
A12.16-1 [JDOConnection getDataStoreConnection(); If this method is called while a datastore transaction is active, the object returned will be enlisted in the current transaction. If called in an optimistic transaction before flush has been called, or outside an active transaction, the object returned will not be enlisted in any transaction.]]

The tests use the jdbc Connection.

The test needs to work with the jdbc library from the standard JDK 1.3 (JDBC 2.0).
Craig Russell made changes - 07/Mar/06 01:30 PM
Attachment DataStoreConnection.java [ 12323842 ]
Craig Russell made changes - 08/Mar/06 03:11 AM
Attachment DataStoreConnectionThrows.java [ 12323878 ]
Attachment DataStoreConnection.java [ 12323877 ]
Craig Russell made changes - 08/Mar/06 03:14 AM
Comment [ There is no standard way to access data from the database using this API. The test will be limited to getting a jdbc Connection and making sure that it is operational via a simple API like getAutocommit(). ]
Craig Russell made changes - 09/Mar/06 07:47 AM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Craig Russell made changes - 13/Mar/06 02:40 AM
Assignee Craig Russell [ clr ]