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 "Michael Bouschen (JIRA)" <ji...@apache.org> on 2007/09/28 17:08:50 UTC

[jira] Created: (JDO-535) Add method evictAll taking a class instance to PersistenceManager interface

Add method evictAll taking a class instance to PersistenceManager interface
---------------------------------------------------------------------------

                 Key: JDO-535
                 URL: https://issues.apache.org/jira/browse/JDO-535
             Project: JDO
          Issue Type: New Feature
          Components: api2, api2-legacy
    Affects Versions: JDO 2 maintenance release 1
            Reporter: Michael Bouschen
            Assignee: Michael Bouschen
             Fix For: JDO 2 maintenance release 1


The PersistenceManager interface does not provide an evictAll method taking a class instance, while the DataStoreCache interface does define this method to evict instances from the second level cache. This allows to evict instances for a particluar class. 

I propose to add the following method to the PersisteneManager interface:
   void evictAll (Class pcClass, boolean subclasses);




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


[jira] Commented: (JDO-535) Add method evictAll taking a class instance to PersistenceManager interface

Posted by "Andy Jefferson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JDO-535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12531228 ] 

Andy Jefferson commented on JDO-535:
------------------------------------

JPOX CVS has this method already added, so applying the patch would cause us no problems.

> Add method evictAll taking a class instance to PersistenceManager interface
> ---------------------------------------------------------------------------
>
>                 Key: JDO-535
>                 URL: https://issues.apache.org/jira/browse/JDO-535
>             Project: JDO
>          Issue Type: New Feature
>          Components: api2, api2-legacy
>    Affects Versions: JDO 2 maintenance release 1
>            Reporter: Michael Bouschen
>            Assignee: Michael Bouschen
>             Fix For: JDO 2 maintenance release 1
>
>         Attachments: JDO-535.patch
>
>
> The PersistenceManager interface does not provide an evictAll method taking a class instance, while the DataStoreCache interface does define this method to evict instances from the second level cache. This allows to evict instances for a particluar class. 
> I propose to add the following method to the PersisteneManager interface:
>    void evictAll (Class pcClass, boolean subclasses);

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


[jira] Commented: (JDO-535) Add method evictAll taking a class instance to PersistenceManager interface

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JDO-535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12531138 ] 

Craig Russell commented on JDO-535:
-----------------------------------

Looks good.

> Add method evictAll taking a class instance to PersistenceManager interface
> ---------------------------------------------------------------------------
>
>                 Key: JDO-535
>                 URL: https://issues.apache.org/jira/browse/JDO-535
>             Project: JDO
>          Issue Type: New Feature
>          Components: api2, api2-legacy
>    Affects Versions: JDO 2 maintenance release 1
>            Reporter: Michael Bouschen
>            Assignee: Michael Bouschen
>             Fix For: JDO 2 maintenance release 1
>
>         Attachments: JDO-535.patch
>
>
> The PersistenceManager interface does not provide an evictAll method taking a class instance, while the DataStoreCache interface does define this method to evict instances from the second level cache. This allows to evict instances for a particluar class. 
> I propose to add the following method to the PersisteneManager interface:
>    void evictAll (Class pcClass, boolean subclasses);

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


[jira] Resolved: (JDO-535) Add method evictAll taking a class instance to PersistenceManager interface

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

Michael Bouschen resolved JDO-535.
----------------------------------

    Resolution: Fixed

Checked in the patch (see revsion 580741).

> Add method evictAll taking a class instance to PersistenceManager interface
> ---------------------------------------------------------------------------
>
>                 Key: JDO-535
>                 URL: https://issues.apache.org/jira/browse/JDO-535
>             Project: JDO
>          Issue Type: New Feature
>          Components: api2, api2-legacy
>    Affects Versions: JDO 2 maintenance release 1
>            Reporter: Michael Bouschen
>            Assignee: Michael Bouschen
>             Fix For: JDO 2 maintenance release 1
>
>         Attachments: JDO-535.patch
>
>
> The PersistenceManager interface does not provide an evictAll method taking a class instance, while the DataStoreCache interface does define this method to evict instances from the second level cache. This allows to evict instances for a particluar class. 
> I propose to add the following method to the PersisteneManager interface:
>    void evictAll (Class pcClass, boolean subclasses);

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


[jira] Updated: (JDO-535) Add method evictAll taking a class instance to PersistenceManager interface

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

Michael Bouschen updated JDO-535:
---------------------------------

    Attachment: JDO-535.patch

Attached you find a patch for review adding method evictAll and adapting the signature file.

> Add method evictAll taking a class instance to PersistenceManager interface
> ---------------------------------------------------------------------------
>
>                 Key: JDO-535
>                 URL: https://issues.apache.org/jira/browse/JDO-535
>             Project: JDO
>          Issue Type: New Feature
>          Components: api2, api2-legacy
>    Affects Versions: JDO 2 maintenance release 1
>            Reporter: Michael Bouschen
>            Assignee: Michael Bouschen
>             Fix For: JDO 2 maintenance release 1
>
>         Attachments: JDO-535.patch
>
>
> The PersistenceManager interface does not provide an evictAll method taking a class instance, while the DataStoreCache interface does define this method to evict instances from the second level cache. This allows to evict instances for a particluar class. 
> I propose to add the following method to the PersisteneManager interface:
>    void evictAll (Class pcClass, boolean subclasses);

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