You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Craig Russell (JIRA)" <ji...@apache.org> on 2009/05/14 22:55:45 UTC

[jira] Created: (OPENJPA-1085) Add toString() method to PCState classes

Add toString() method to PCState classes
----------------------------------------

                 Key: OPENJPA-1085
                 URL: https://issues.apache.org/jira/browse/OPENJPA-1085
             Project: OpenJPA
          Issue Type: Improvement
          Components: kernel
            Reporter: Craig Russell
            Assignee: Craig Russell
            Priority: Trivial


Currently the subclasses of PCState don't implement a toString() method, so debug messages look like this:
FINEST: NdbOpenJPAStoreManager.beforeStateChange: objectId: 1 PCState: org.apache.openjpa.kernel.PNonTransState@96a21e
 from  PCState: org.apache.openjpa.kernel.PNonTransState@96a21e to  PCState: org.apache.openjpa.kernel.TransientState@51e0c4

I'd like to add toString() to these classes so the messages look like this:
FINEST: NdbOpenJPAStoreManager.beforeStateChange: objectId: 1 PCState: PNonTrans
 from  PCState: .PNonTrans to  PCState: Transient

So the toString() would return PNonTrans, or PNONTRANS or Persistent Nontransactional or some user-friendly string.



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


[jira] Resolved: (OPENJPA-1085) Add toString() method to PCState classes

Posted by "Pinaki Poddar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-1085?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pinaki Poddar resolved OPENJPA-1085.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0-M4

> Add toString() method to PCState classes
> ----------------------------------------
>
>                 Key: OPENJPA-1085
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1085
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: kernel
>            Reporter: Craig Russell
>            Assignee: Craig Russell
>            Priority: Trivial
>             Fix For: 2.0.0-M4
>
>
> Currently the subclasses of PCState don't implement a toString() method, so debug messages look like this:
> FINEST: NdbOpenJPAStoreManager.beforeStateChange: objectId: 1 PCState: org.apache.openjpa.kernel.PNonTransState@96a21e
>  from  PCState: org.apache.openjpa.kernel.PNonTransState@96a21e to  PCState: org.apache.openjpa.kernel.TransientState@51e0c4
> I'd like to add toString() to these classes so the messages look like this:
> FINEST: NdbOpenJPAStoreManager.beforeStateChange: objectId: 1 PCState: PNonTrans
>  from  PCState: .PNonTrans to  PCState: Transient
> So the toString() would return PNonTrans, or PNONTRANS or Persistent Nontransactional or some user-friendly string.

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