Mercurial > hg > Database > jungle-network
view src/alice/jungle/persistence/PersistentChangeSet.java @ 87:f142dd4abc74
Implemented getTreeName and uuid method in some classes
author | one |
---|---|
date | Tue, 05 Nov 2013 08:41:12 +0900 |
parents | e641f559559c |
children |
line wrap: on
line source
package alice.jungle.persistence; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.Node; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.persistent.ChangeList; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.ChangeSet; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.operations.TreeOperation; public class PersistentChangeSet implements ChangeSet { private final Node root; private final ChangeSet previous; private final ChangeList changeList; private final String uuid; private final long revision; private final String treeName; public PersistentChangeSet(Node _node,ChangeSet _prev,ChangeList _log,String _uuid, String _treeName, long _revision) { root = _node; previous = _prev; changeList = _log; uuid = _uuid; revision = _revision; treeName = _treeName; } @Override public Node getRoot() { return root; } @Override public ChangeSet prev() { return previous; } @Override public ChangeList getChangeList() { return changeList; } @Override public String uuid() { return uuid; } @Override public long revision() { return revision; } @Override public Iterable<TreeOperation> getOperations() { return changeList; } public String getTreeName() { return treeName; } }