-
1. Re: Custom column in jbosscache table and Custom Loading fro
manik May 6, 2009 7:31 AM (in response to challasreedhar)Sure - you could have your own cache loader impl that does that.
-
2. Re: Custom column in jbosscache table and Custom Loading fro
jorgemoralespou_2 May 8, 2009 5:08 AM (in response to challasreedhar)Hi,
Since JBC 3.1.0.GA JDBCCacheLoader is easily subclassable per this request, So you only need to subclass JDBCCacheLoader and JDBCCacheLoaderConfig, and redefine the methods you need, like:
JDBCCacheLoaderConfig.constructCreateTableDDL()
JDBCCacheLoaderConfig.constructUpdateNodeSql()
JDBCCacheLoaderConfig.constructInsertNodeSql()
JDBCCacheLoader.processConfig()
JDBCCacheLoader.populatePreparedStatementForInsert()
JDBCCacheLoader.updateNode()
Hope this helps. We are doing almost the same -
3. Re: Custom column in jbosscache table and Custom Loading fro
ghurdyl Mar 23, 2010 6:36 AM (in response to jorgemoralespou_2)Hello,
I am new in JBoss Cache world and I am looking for a way to write my own jdbcCacheLoader.
Jorge's previous message gave me some hint but it is still blurry to me.
Is there any tutorial or example of such customized cache loader?
I especially have trouble to see how my jdbcCacheLoader will use my jdbcCacheLoaderConfig and how this jdbcCacheLoaderConfig il initialized and also if I will have to hard-code additionnal columns or if the mapping can be automatic through the configuration file.
I need to store geo-referenced images. Right now the whole object (image binary and infos) is stored as a blob but I would like to separate the different fields (coordinates, creation date and so one).
Thanks for any input.
Nicolas
Gillet
P.S. sorry to unbury old topics