[jboss-cvs] JBossCache/src/org/jboss/cache ...

Manik Surtani msurtani at jboss.com
Sat Nov 11 12:50:05 EST 2006


  User: msurtani
  Date: 06/11/11 12:50:05

  Modified:    src/org/jboss/cache  Tag: Branch_JBossCache_1_4_0
                        TreeCache.java
  Log:
  JBCACHE-843
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.195.2.22 +38 -1     JBossCache/src/org/jboss/cache/TreeCache.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: TreeCache.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/TreeCache.java,v
  retrieving revision 1.195.2.21
  retrieving revision 1.195.2.22
  diff -u -b -r1.195.2.21 -r1.195.2.22
  --- TreeCache.java	10 Nov 2006 20:03:34 -0000	1.195.2.21
  +++ TreeCache.java	11 Nov 2006 17:50:04 -0000	1.195.2.22
  @@ -99,7 +99,7 @@
    * @author <a href="mailto:manik at jboss.org">Manik Surtani (manik at jboss.org)</a>
    * @author Brian Stansberry
    * @author Daniel Huang (dhuang at jboss.org)
  - * @version $Id: TreeCache.java,v 1.195.2.21 2006/11/10 20:03:34 msurtani Exp $
  + * @version $Id: TreeCache.java,v 1.195.2.22 2006/11/11 17:50:04 msurtani Exp $
    *          <p/>
    * @see <a href="http://labs.jboss.com/portal/jbosscache/docs">JBossCache doc</a>
    */
  @@ -4322,6 +4322,43 @@
   
      /* --------------------- Callbacks -------------------------- */
   
  +
  +   /* ----- These are VERSIONED callbacks to facilitate JBCACHE-843.  Also see docs/design/DataVersion.txt --- */
  +
  +   public void _put(GlobalTransaction tx, Fqn fqn, Map data, boolean create_undo_ops, DataVersion dv) throws CacheException
  +   {
  +      _put(tx, fqn, data, create_undo_ops, false, dv);
  +   }
  +
  +   public void _put(GlobalTransaction tx, Fqn fqn, Map data, boolean create_undo_ops, boolean erase_contents, DataVersion dv) throws CacheException
  +   {
  +      _put(tx, fqn, data, create_undo_ops, erase_contents);
  +   }
  +
  +   public Object _put(GlobalTransaction tx, Fqn fqn, Object key, Object value, boolean create_undo_ops, DataVersion dv) throws CacheException
  +   {
  +      return _put(tx, fqn, key, value, create_undo_ops);
  +   }
  +
  +   public void _remove(GlobalTransaction tx, Fqn fqn, boolean create_undo_ops, DataVersion dv) throws CacheException
  +   {
  +      _remove(tx, fqn, create_undo_ops, true);
  +   }
  +
  +   public Object _remove(GlobalTransaction tx, Fqn fqn, Object key, boolean create_undo_ops, DataVersion dv) throws CacheException
  +   {
  +      return _remove(tx, fqn, key, create_undo_ops);
  +   }
  +
  +   public void _removeData(GlobalTransaction tx, Fqn fqn, boolean create_undo_ops, DataVersion dv) throws CacheException
  +   {
  +
  +      _removeData(tx, fqn, create_undo_ops, true);
  +   }
  +
  +   /* ----- End VERSIONED callbacks - Now for the NORMAL callbacks. -------- */
  +
  +
      /**
       * Internal put method.
       * Does the real work. Needs to acquire locks if accessing nodes, depending on
  
  
  



More information about the jboss-cvs-commits mailing list