Mercurial > hg > Database > jungle-network
comparison src/alice/jungle/persistence/PersistentChangeList.java @ 87:f142dd4abc74
Implemented getTreeName and uuid method in some classes
author | one |
---|---|
date | Tue, 05 Nov 2013 08:41:12 +0900 |
parents | bcaf28f8244d |
children | 0c98717f186e |
comparison
equal
deleted
inserted
replaced
86:bcaf28f8244d | 87:f142dd4abc74 |
---|---|
3 import java.util.Iterator; | 3 import java.util.Iterator; |
4 | 4 |
5 import alice.jungle.operations.NetworkTreeOperationLog; | 5 import alice.jungle.operations.NetworkTreeOperationLog; |
6 | 6 |
7 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.persistent.ChangeList; | 7 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.persistent.ChangeList; |
8 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.logger.TreeOperationLog; | |
8 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.operations.TreeOperation; | 9 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.operations.TreeOperation; |
9 | 10 |
10 public class PersistentChangeList implements ChangeList { | 11 public class PersistentChangeList implements ChangeList { |
11 | 12 |
12 public NetworkTreeOperationLog log; | 13 public NetworkTreeOperationLog log; |
13 public String treeName; | 14 public String treeName; |
14 public String uuid; | 15 public String uuid; |
15 | 16 |
17 public PersistentChangeList(String _uuid, String _treeName, TreeOperationLog _log) { | |
18 uuid = _uuid; | |
19 treeName = _treeName; | |
20 log = new NetworkTreeOperationLog(_log); | |
21 } | |
22 | |
16 public PersistentChangeList(NetworkTreeOperationLog _log) { | 23 public PersistentChangeList(NetworkTreeOperationLog _log) { |
17 log = _log; | 24 log = _log; |
18 treeName = _log.getTreeName(); | 25 treeName = _log.getTreeName(); |
19 uuid = _log.getUUID(); | 26 uuid = _log.getUUID(); |
20 } | 27 } |
36 | 43 |
37 public String getTreeName() { | 44 public String getTreeName() { |
38 return treeName; | 45 return treeName; |
39 } | 46 } |
40 | 47 |
41 public String getUUID() { | 48 public String uuid() { |
42 return uuid; | 49 return uuid; |
43 } | 50 } |
44 | 51 |
45 | 52 |
46 } | 53 } |