cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAY-1465) Triggering removeGroup on update/delete/insert query
Date Mon, 29 Sep 2014 19:52:36 GMT

     [ https://issues.apache.org/jira/browse/CAY-1465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrus Adamchik updated CAY-1465:
---------------------------------
    Fix Version/s:     (was: 3.1)
                   Undefined future

> Triggering removeGroup on update/delete/insert query
> ----------------------------------------------------
>
>                 Key: CAY-1465
>                 URL: https://issues.apache.org/jira/browse/CAY-1465
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Core Library
>    Affects Versions: 3.0, 3.1M1
>            Reporter: Evgeny Ryabitskiy
>             Fix For: Undefined future
>
>
> It can be useful for this case:
> I have 2 selects (NamedQueries) for table Artists, which have SHARED
> cache policy:
> MyArtistsSelectQuery1 from group ArtistsTableGroup:
> select * from Artists where isModern = 0
> MyArtistsSelectQuery2 from group ArtistsTableGroup:
> select * from Artists where isModern = 1
> And one insert:
> MyArtistsInsertQuery1
> insert into Artists values (....) .....
> Select NamedQueries are marked by properties in XML
>                <property name="cayenne.GenericSelectQuery.cacheStrategy"
> value="SHARED_CACHE"/>
>                <property name="cayenne.GenericSelectQuery.cacheGroups"
> value="ArtistsTableGroup"/>
> So, I would like to mark insert query as trigger for cache group
> removingin SHARED cache, like implicit execution of:
> domain.getQueryCache().removeGroup("ArtistsTableGroup");
> after successful insert.
> some property like:
>   <property name="cayenne.GenericSelectQuery.removeGroups"
> value="ArtistsTableGroup"/>
> I think it can be very useful.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message