Uploaded image for project: 'JDO'
  1. JDO
  2. JDO-259

Write tests for new persistent-nontransactional-dirty behavior assertions

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JDO 2 beta
    • JDO 2 final (2.0)
    • tck
    • None

    Description

      A5.6.2-4 [If a datastore transaction is begun, commit will write the changes to the datastore with no checking as to the current state of the instances in the datastore. That is, the changes made outside the transaction together with any changes made inside the transaction will overwrite the current state of the datastore.]

      A5.6.2-6 [If a datastore transaction is begun, rollback will not write any changes to the datastore.]

      A5.6.2-8 [If an optimistic transaction is begun, commit will write the changes to the datastore after checking as to the current state of the instances in the datastore. The changes made outside the transaction together with any changes made inside the transaction will update the current state of the datastore if the version checking is successful.]

      A5.6.2-10 [If an optimistic transaction is begun, rollback will not write any changes to the datastore. The persistent-nontransactional-dirty instances will transition according to the RestoreValues flag. ]

      Attachments

        1. NontransactionalWriteDatastoreCommit.java
          3 kB
          Craig L Russell
        2. NontransactionalWriteDatastoreCommitConflict.java
          3 kB
          Craig L Russell
        3. NontransactionalWriteDatastoreRollback.java
          3 kB
          Craig L Russell
        4. NontransactionalWriteOptimisticCommit.java
          3 kB
          Craig L Russell
        5. NontransactionalWriteOptimisticCommitConflict.java
          3 kB
          Craig L Russell
        6. NontransactionalWriteOptimisticRollback.java
          3 kB
          Craig L Russell
        7. NontransactionalWriteTest.java
          7 kB
          Craig L Russell
        8. NontransactionalWriteThrows.java
          3 kB
          Craig L Russell

        Activity

          People

            clr Craig L Russell
            mcaisse Michelle Caisse
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: