annotate src/main/java/jungle/app/bbs/CassandraBulletinBoard.java @ 105:f9e29a52efd3

Move some files
author one
date Tue, 26 Nov 2013 06:43:10 +0900
parents src/jungle/app/bbs/CassandraBulletinBoard.java@29127ac788a6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
66
29127ac788a6 move some files
one
parents: 38
diff changeset
1 package jungle.app.bbs;
38
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
2
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
3 import java.util.Collections;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
4 import java.util.List;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
5 import java.util.UUID;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
6
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
7 import org.apache.cassandra.locator.SimpleStrategy;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
8
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
9 import me.prettyprint.cassandra.serializers.StringSerializer;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
10 import me.prettyprint.cassandra.serializers.UUIDSerializer;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
11 import me.prettyprint.cassandra.service.CassandraHost;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
12 import me.prettyprint.cassandra.service.template.SuperCfResult;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
13 import me.prettyprint.cassandra.service.template.SuperCfUpdater;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
14 import me.prettyprint.cassandra.service.template.ThriftSuperCfTemplate;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
15 import me.prettyprint.cassandra.utils.TimeUUIDUtils;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
16 import me.prettyprint.hector.api.Cluster;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
17 import me.prettyprint.hector.api.Keyspace;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
18 import me.prettyprint.hector.api.beans.HSuperColumn;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
19 import me.prettyprint.hector.api.beans.OrderedSuperRows;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
20 import me.prettyprint.hector.api.beans.SuperRow;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
21 import me.prettyprint.hector.api.beans.SuperSlice;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
22 import me.prettyprint.hector.api.ddl.ColumnFamilyDefinition;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
23 import me.prettyprint.hector.api.ddl.ColumnType;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
24 import me.prettyprint.hector.api.ddl.ComparatorType;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
25 import me.prettyprint.hector.api.ddl.KeyspaceDefinition;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
26 import me.prettyprint.hector.api.factory.HFactory;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
27 import me.prettyprint.hector.api.query.QueryResult;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
28 import me.prettyprint.hector.api.query.RangeSuperSlicesQuery;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
29 import me.prettyprint.hector.api.query.SuperSliceQuery;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
30
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
31 public class CassandraBulletinBoard implements BulletinBoard
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
32 {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
33 private final String address;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
34 private final String clusterName;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
35 private final Cluster cluster;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
36 private final String keyspace;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
37
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
38 private static final String COLUMN_FAMILY_BOARD = "boards";
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
39
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
40 public CassandraBulletinBoard(String _clusterName,String _address,String _keyspaceName)
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
41 {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
42 address = _address;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
43 clusterName = _clusterName;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
44 keyspace = _keyspaceName;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
45 cluster = HFactory.getOrCreateCluster(clusterName,address);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
46
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
47 initialize();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
48 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
49
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
50 private void initialize()
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
51 {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
52 if(cluster.describeKeyspace(keyspace) == null){
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
53 KeyspaceDefinition keyspaceDefinition = HFactory.createKeyspaceDefinition(keyspace,
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
54 SimpleStrategy.class.getName(),1,Collections.<ColumnFamilyDefinition> emptyList());
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
55 cluster.addKeyspace(keyspaceDefinition,false);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
56 ColumnFamilyDefinition columnFamilyDefinition = HFactory.createColumnFamilyDefinition(keyspace,COLUMN_FAMILY_BOARD,ComparatorType.UUIDTYPE);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
57 columnFamilyDefinition.setColumnType(ColumnType.SUPER);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
58 cluster.addColumnFamily(columnFamilyDefinition);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
59 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
60 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
61
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
62 public Iterable<String> getBoards()
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
63 {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
64 Keyspace ksp = HFactory.createKeyspace(keyspace, cluster);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
65 RangeSuperSlicesQuery<String,UUID,String,String> query = HFactory.createRangeSuperSlicesQuery(ksp,StringSerializer.get(),
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
66 UUIDSerializer.get(),StringSerializer.get(),StringSerializer.get());
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
67 query.setColumnFamily(COLUMN_FAMILY_BOARD).setKeys(null,null).setRange(null,null,false,0);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
68
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
69 QueryResult<OrderedSuperRows<String,UUID,String,String>> result = query.execute();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
70 OrderedSuperRows<String,UUID,String,String> rows = result.get();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
71 List<SuperRow<String,UUID,String,String>> list = rows.getList();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
72
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
73 IterableConverter.Converter<String,SuperRow<String,UUID,String,String>> converter
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
74 = new IterableConverter.Converter<String, SuperRow<String,UUID,String,String>>(){
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
75 public String conv(SuperRow<String, UUID, String, String> _b) {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
76 return _b.getKey();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
77 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
78 };
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
79
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
80 return new IterableConverter<String,SuperRow<String,UUID,String,String>>(list,converter);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
81 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
82
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
83 private static final String COLUMN_MESSAGE_AUTHOR = "author";
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
84 private static final String COLUMN_MESSAGE_BODY = "message";
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
85 private static final String COLUMN_MESSAGE_EDIT_KEY = "edit";
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
86
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
87 public void createBoardMessage(UUID _time,String _name,String _author,String _message,String _editKey)
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
88 {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
89 Keyspace ksp = HFactory.createKeyspace(keyspace,cluster);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
90 ThriftSuperCfTemplate<String,UUID,String> template =
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
91 new ThriftSuperCfTemplate<String,UUID,String>(ksp,COLUMN_FAMILY_BOARD,StringSerializer.get(),
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
92 UUIDSerializer.get(),StringSerializer.get());
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
93
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
94 SuperCfUpdater<String,UUID,String> updater = template.createUpdater(_name,_time);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
95 updater.setString(COLUMN_MESSAGE_AUTHOR,_author);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
96 updater.setString(COLUMN_MESSAGE_BODY,_message);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
97 updater.setString(COLUMN_MESSAGE_EDIT_KEY,_editKey);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
98
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
99 template.update(updater);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
100 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
101
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
102 public void createBoards(String _name,String _author,String _initMessage,String _editKey)
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
103 {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
104 UUID time = TimeUUIDUtils.getTimeUUID(0);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
105 createBoardMessage(time,_name,_author,_initMessage,_editKey);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
106 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
107
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
108 public Iterable<BoardMessage> getMessages(String _boardName)
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
109 {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
110 Keyspace ksp = HFactory.createKeyspace(keyspace,cluster);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
111 SuperSliceQuery<String, UUID, String, String> query = HFactory.createSuperSliceQuery(ksp, StringSerializer.get(), UUIDSerializer.get(), StringSerializer.get(), StringSerializer.get());
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
112
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
113 UUID start = TimeUUIDUtils.getTimeUUID(0);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
114 query.setKey(_boardName).setColumnFamily(COLUMN_FAMILY_BOARD).setRange(start,null,false,100);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
115
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
116 QueryResult<SuperSlice<UUID, String, String>> result = query.execute();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
117 SuperSlice<UUID,String,String> ss = result.get();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
118 List<HSuperColumn<UUID,String,String>> list = ss.getSuperColumns();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
119
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
120 IterableConverter.Converter<BoardMessage,HSuperColumn<UUID,String,String>> converter =
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
121 new IterableConverter.Converter<BoardMessage,HSuperColumn<UUID,String,String>>(){
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
122 public BoardMessage conv(HSuperColumn<UUID, String, String> _b){
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
123 UUID uuid = _b.getName();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
124 String author = _b.getSubColumnByName(COLUMN_MESSAGE_AUTHOR).getValue();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
125 String message = _b.getSubColumnByName(COLUMN_MESSAGE_BODY).getValue();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
126 BoardMessageImpl bm = new BoardMessageImpl(author,message,uuid.toString());
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
127 return bm;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
128 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
129 };
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
130
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
131
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
132 return new IterableConverter<BoardMessage,HSuperColumn<UUID,String,String>>(list,converter);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
133 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
134
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
135 private static class BoardMessageImpl implements BoardMessage
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
136 {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
137 private final String author;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
138 private final String message;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
139 private final String uuid;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
140
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
141 public BoardMessageImpl(String _author,String _message,String _uuid)
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
142 {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
143 author = _author;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
144 message = _message;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
145 uuid = _uuid;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
146 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
147
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
148 public String getAuthor()
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
149 {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
150 return author;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
151 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
152
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
153 public String getMessage()
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
154 {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
155 return message;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
156 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
157
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
158 public String getUUID()
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
159 {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
160 return uuid;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
161 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
162 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
163
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
164 public void createBoardMessage(String _board, String _author, String _message,String _editKey)
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
165 {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
166 UUID time = TimeUUIDUtils.getUniqueTimeUUIDinMillis();
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
167 createBoardMessage(time,_board,_author,_message,_editKey);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
168 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
169
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
170 public void editMessage(String _board,String _uuid,String _author,String _message,String _editKey)
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
171 {
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
172 Keyspace ksp = HFactory.createKeyspace(keyspace, cluster);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
173 UUID time = UUID.fromString(_uuid);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
174 ThriftSuperCfTemplate<String,UUID,String> template =
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
175 new ThriftSuperCfTemplate<String,UUID,String>(ksp,COLUMN_FAMILY_BOARD,StringSerializer.get(),
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
176 UUIDSerializer.get(),StringSerializer.get());
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
177
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
178 SuperCfResult<String,UUID,String> result = template.querySuperColumn(_board,time);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
179 String editKey = result.getString(COLUMN_MESSAGE_EDIT_KEY);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
180 if(!editKey.equals(editKey)){
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
181 return;
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
182 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
183
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
184 SuperCfUpdater<String, UUID, String> updater = template.createUpdater(_board,time);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
185 updater.setString(COLUMN_MESSAGE_AUTHOR,_author);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
186 updater.setString(COLUMN_MESSAGE_BODY,_message);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
187 updater.setString(COLUMN_MESSAGE_EDIT_KEY,_editKey);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
188
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
189 template.update(updater);
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
190 }
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
191
d8ee57a1c2c6 add pom.xml and bbs
one
parents:
diff changeset
192 }