[jboss-cvs] JBossCache/src-50/org/jboss/cache/pojo/util ...
Manik Surtani
msurtani at jboss.com
Sat Dec 30 12:50:00 EST 2006
User: msurtani
Date: 06/12/30 12:50:00
Modified: src-50/org/jboss/cache/pojo/util CacheApiUtil.java
Log:
Major changes to restructure cache and node object model
Revision Changes Path
1.4 +7 -7 JBossCache/src-50/org/jboss/cache/pojo/util/CacheApiUtil.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CacheApiUtil.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src-50/org/jboss/cache/pojo/util/CacheApiUtil.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- CacheApiUtil.java 11 Dec 2006 00:37:34 -0000 1.3
+++ CacheApiUtil.java 30 Dec 2006 17:50:00 -0000 1.4
@@ -7,17 +7,17 @@
package org.jboss.cache.pojo.util;
-import org.jboss.cache.DataNode;
import org.jboss.cache.CacheSPI;
import org.jboss.cache.Fqn;
import org.jboss.cache.Node;
import java.util.Map;
-/** Utility for the 2.0 Cache API
+/**
+ * Utility for the 2.0 Cache API
*
* @author Ben Wang
- * @version $Id: CacheApiUtil.java,v 1.3 2006/12/11 00:37:34 bwang Exp $
+ * @version $Id: CacheApiUtil.java,v 1.4 2006/12/30 17:50:00 msurtani Exp $
*/
public class CacheApiUtil
{
@@ -25,7 +25,7 @@
{
// cache.getInvocationContext().getOptionOverrides().setBypassInterceptorChain(true);
Node node = cache.getRoot().getChild(fqn);
- if(node == null) return null;
+ if (node == null) return null;
// cache.getInvocationContext().getOptionOverrides().setBypassInterceptorChain(false);
return node;
@@ -33,15 +33,15 @@
public static boolean exists(CacheSPI cache, Fqn fqn, Object key)
{
- if(cache.getCacheLoader() != null)
+ if (cache.getCacheLoader() != null)
{
// Has cache loader
return (cache.get(fqn, key) != null) ? true : false;
}
Node node = cache.getRoot().getChild(fqn);
- if(node == null) return false;
+ if (node == null) return false;
Map map = node.getData();
- return (map.keySet().contains(key)) ? true: false;
+ return (map.keySet().contains(key)) ? true : false;
}
}
More information about the jboss-cvs-commits
mailing list