[jboss-cvs] JBossAS SVN: r59566 - trunk/hibernate-int/src/main/org/jboss/hibernate/cache.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Jan 11 21:38:47 EST 2007


Author: bstansberry at jboss.com
Date: 2007-01-11 21:38:46 -0500 (Thu, 11 Jan 2007)
New Revision: 59566

Modified:
   trunk/hibernate-int/src/main/org/jboss/hibernate/cache/JBCCache.java
Log:
Move to JBoss Cache Alpha2

Modified: trunk/hibernate-int/src/main/org/jboss/hibernate/cache/JBCCache.java
===================================================================
--- trunk/hibernate-int/src/main/org/jboss/hibernate/cache/JBCCache.java	2007-01-12 02:37:47 UTC (rev 59565)
+++ trunk/hibernate-int/src/main/org/jboss/hibernate/cache/JBCCache.java	2007-01-12 02:38:46 UTC (rev 59566)
@@ -114,7 +114,7 @@
 
     public void remove(Object key) throws CacheException {
         try {
-            cache.remove( new Fqn( regionFqn, key ) );
+            cache.removeNode( new Fqn( regionFqn, key ) );
         }
         catch (Exception e) {
             throw new CacheException(e);
@@ -123,7 +123,7 @@
 
     public void clear() throws CacheException {
         try {
-            cache.remove( regionFqn );
+            cache.removeNode( regionFqn );
         }
         catch (Exception e) {
             throw new CacheException(e);
@@ -212,7 +212,7 @@
     private Set getChildrenNames()
     {
        try {
-          Node base = cache.getChild( regionFqn );
+          Node base = cache.getRoot().getChild( regionFqn );
           return (base == null ? null : base.getChildrenNames());
        }
        catch (Exception e) {




More information about the jboss-cvs-commits mailing list