[jbosscache-issues] [JBoss JIRA] Commented: (JBCACHE-1501) Make JDBCCacheLoader easily subclassable

Manik Surtani (JIRA) jira-events at lists.jboss.org
Thu Apr 2 05:27:23 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBCACHE-1501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12460202#action_12460202 ] 

Manik Surtani commented on JBCACHE-1501:
----------------------------------------

I have made the constructXYZSql() methods as well as the table construction DDL generation methods protected rather than private in the abstract AdjListJDBCCacheLoaderConfig class.  This way your impl can simply extend JDBCCacheLoaderConfig and override the SQL generation for inserts and updates to add a timestamp.



> Make JDBCCacheLoader easily subclassable
> ----------------------------------------
>
>                 Key: JBCACHE-1501
>                 URL: https://jira.jboss.org/jira/browse/JBCACHE-1501
>             Project: JBoss Cache
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Cache loaders
>    Affects Versions: 3.0.3.GA
>            Reporter: Jorge Morales Pou
>            Assignee: Manik Surtani
>             Fix For: 3.1.0.GA
>
>
> We have a requisite to remove old data from datastore that has not been used for a long time, or for example, as a result of an scheduled task, for example, every midnight, or data that is in DB for longer than 6 hours.
> We are trying to subclass JDBCCacheLoader, to add a timestamp column, so we can remove old data from DB, but this class is not meant for subclassing, so we have to almost rewrite it completely, and also configs, and so on.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosscache-issues mailing list