[jira] Commented: (JDO-442) Transaction.setRollbackOnly() :
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache JDO Project > [jira] Commented: (JDO-442) Transaction.setRollbackOnly() :




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    [jira] Commented: (JDO-442) Transaction.setRollbackOnly() :  
Craig Russell (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-29-07 06:13 AM


[ https://issues.apache.org/jira/brow...action_12531191 ]

Craig Russell commented on JDO-442:
-----------------------------------

The tck test AfterSetRollbackOnlyCommitFails.java checks for JDOFatalDataSto
reException.

The spec has already been updated...

> Transaction.setRollbackOnly() : difference between api20 and spec
> -----------------------------------------------------------------
>
>                 Key: JDO-442
>                 URL: https://issues.apache.org/jira/browse/JDO-442
>             Project: JDO
>          Issue Type: Bug
>          Components: api2, api2-legacy, specification
>    Affects Versions: JDO 2 final
>            Reporter: Andy Jefferson
>            Assignee: Craig Russell
>             Fix For: JDO 2 maintenance release 1
>
>
> in the JDO2-final spec 13.4.5
> <spec>
> Once a transaction has been marked for rollback via setRollbackOnly, the
> commit method will always fail with JDOFatalDataStoreException. The JDO
> implementation must not try to make any changes to the database during com
mit
> when the transaction has been marked for rollback.
> </spec>
> whereas in the javadocs for javax.jdo.Transaction "setRollbackOnly" we hav
e
> "Sets the rollback-only status of the transaction to <code>true</code>. Af
ter
> this flag is set to <code>true</code>, the transaction can no longer be
> committed, and any attempt to commit the transaction will throw
> <code>JDOUserException<code>."
> So which exception should be thrown here ... JDOFatalDataStoreException or
> JDOUserException ?

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:54 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register