Class TransactionChanges


  • public class TransactionChanges
    extends java.lang.Object
    Records the set of changes which will happen as part of a transaction
    Author:
    bratseth
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addCreate​(java.lang.String path)
      Adds creation of an absolute path to the set of changes made by this
      void addDelete​(java.lang.String path)
      Adds deletion of an absolute path to the set of changes made by this
      boolean create​(java.lang.String path)
      Returns whether the changes include creating this absolute path
      boolean createsChildrenOf​(java.lang.String parentPath)
      Returns whether the changes include creating any (proper) children of the given path
      boolean delete​(java.lang.String path)
      Returns whether the changes include deleting this absolute path
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TransactionChanges

        public TransactionChanges()
    • Method Detail

      • create

        public boolean create​(java.lang.String path)
        Returns whether the changes include creating this absolute path
      • createsChildrenOf

        public boolean createsChildrenOf​(java.lang.String parentPath)
        Returns whether the changes include creating any (proper) children of the given path
      • addCreate

        public void addCreate​(java.lang.String path)
        Adds creation of an absolute path to the set of changes made by this
      • delete

        public boolean delete​(java.lang.String path)
        Returns whether the changes include deleting this absolute path
      • addDelete

        public void addDelete​(java.lang.String path)
        Adds deletion of an absolute path to the set of changes made by this
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object