[jbosscache-commits] JBoss Cache SVN: r7963 - core/trunk/src/main/java/org/jboss/cache/loader.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Thu Apr 2 05:26:48 EDT 2009


Author: manik.surtani at jboss.com
Date: 2009-04-02 05:26:48 -0400 (Thu, 02 Apr 2009)
New Revision: 7963

Modified:
   core/trunk/src/main/java/org/jboss/cache/loader/AdjListJDBCCacheLoaderConfig.java
Log:
JBCACHE-1501 -  Make JDBCCacheLoader easily subclassable

Modified: core/trunk/src/main/java/org/jboss/cache/loader/AdjListJDBCCacheLoaderConfig.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/loader/AdjListJDBCCacheLoaderConfig.java	2009-04-02 04:39:45 UTC (rev 7962)
+++ core/trunk/src/main/java/org/jboss/cache/loader/AdjListJDBCCacheLoaderConfig.java	2009-04-02 09:26:48 UTC (rev 7963)
@@ -472,12 +472,12 @@
       connectionFactoryClass = props.getProperty("cache.jdbc.connection.factory", "org.jboss.cache.loader.NonManagedConnectionFactory");
    }
 
-   private String constructDropTableDDL()
+   protected String constructDropTableDDL()
    {
       return "DROP TABLE " + table;
    }
 
-   private String constructCreateTableDDL()
+   protected String constructCreateTableDDL()
    {
       // removed CONSTRAINT clause as this causes problems with some databases, like Informix.
       return "CREATE TABLE " + table + "(" + fqnColumn + " " + fqnType + " NOT NULL, " + nodeColumn + " " + nodeType +
@@ -556,37 +556,37 @@
       return (AdjListJDBCCacheLoaderConfig) super.clone();
    }
 
-   private String constructSelectNodeSql()
+   protected String constructSelectNodeSql()
    {
       return "SELECT " + nodeColumn + " FROM " + table + " WHERE " + fqnColumn + " = ?";
    }
 
-   private String constructUpdateNodeSql()
+   protected String constructUpdateNodeSql()
    {
       return "UPDATE " + table + " SET " + nodeColumn + " = ? WHERE " + fqnColumn + " = ?";
    }
 
-   private String constructDeleteAllSql()
+   protected String constructDeleteAllSql()
    {
       return "DELETE FROM " + table;
    }
 
-   private String constructDeleteNodeSql()
+   protected String constructDeleteNodeSql()
    {
       return "DELETE FROM " + table + " WHERE " + fqnColumn + " = ?";
    }
 
-   private String constructSelectChildNamesSql()
+   protected String constructSelectChildNamesSql()
    {
       return "SELECT " + fqnColumn + " FROM " + table + " WHERE " + parentColumn + " = ?";
    }
 
-   private String constructExistsSql()
+   protected String constructExistsSql()
    {
       return "SELECT '1' FROM " + table + " WHERE " + fqnColumn + " = ?";
    }
 
-   private String constructInsertNodeSql()
+   protected String constructInsertNodeSql()
    {
       // This SQL string takes in 4 params - fqn, node (serialized data), parent, and fqn AGAIN.
       // the benefit of this is is that it will run without failing even if the row already exists, so you don't need




More information about the jbosscache-commits mailing list