You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Craig Russell (JIRA)" <ji...@apache.org> on 2006/03/07 06:31:40 UTC

[jira] Updated: (JDO-191) Add test for PersistenceManager.getDataStoreConnection()

     [ http://issues.apache.org/jira/browse/JDO-191?page=all ]

Craig Russell updated JDO-191:
------------------------------

    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 jdbc Connection.

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

  was:
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).


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().

> Add test for PersistenceManager.getDataStoreConnection()
> --------------------------------------------------------
>
>          Key: JDO-191
>          URL: http://issues.apache.org/jira/browse/JDO-191
>      Project: JDO
>         Type: Test
>   Components: tck20
>     Versions: JDO 2 beta
>  Environment: TCK
>     Reporter: Craig Russell
>      Fix For: JDO 2 final
>  Attachments: DataStoreConnection.java
>
> 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).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira