Skip to content

Commit 60afdb1

Browse files
hovoerehovoere
authored andcommitted
Updated version in pom files and fixed bugs in graph example
1 parent 2ff1f15 commit 60afdb1

7 files changed

Lines changed: 19 additions & 17 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,5 @@ doc/ref/examples/fromServlet
103103
tightdb_jni/src/java/lib/l*
104104
java/share/java/*.jar
105105

106+
107+
tightdb-java-test/sizefile

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>com.tightdb</groupId>
77
<artifactId>tightdb-parent</artifactId>
8-
<version>0.1.0</version>
8+
<version>0.1.1</version>
99
<packaging>pom</packaging>
1010

1111
<properties>

tightdb-java-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.tightdb</groupId>
77
<artifactId>tightdb-parent</artifactId>
8-
<version>0.1.0</version>
8+
<version>0.1.1</version>
99
</parent>
1010

1111
<artifactId>tightdb</artifactId>

tightdb-java-example/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.tightdb</groupId>
77
<artifactId>tightdb-parent</artifactId>
8-
<version>0.1.0</version>
8+
<version>0.1.1</version>
99
</parent>
1010

1111
<artifactId>tightdb-java-example</artifactId>
@@ -14,7 +14,7 @@
1414
<dependency>
1515
<groupId>com.tightdb</groupId>
1616
<artifactId>tightdb</artifactId>
17-
<version>0.1.0</version>
17+
<version>0.1.1</version>
1818
</dependency>
1919
</dependencies>
2020

@@ -41,7 +41,7 @@
4141
<dependency>
4242
<groupId>com.tightdb</groupId>
4343
<artifactId>tightdb-devkit</artifactId>
44-
<version>0.1.0</version>
44+
<version>0.1.1</version>
4545
</dependency>
4646
</dependencies>
4747
</plugin>

tightdb-java-example/src/main/java/com/tightdb/example/graph/TightdbGraphStore.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ boolean addLink(Link link) {
171171
// check if link already exists
172172
// we don't want to search over all links, so we go through the source node
173173
LinktypeQuery query = nodes.at(link.id1).getLink_out().
174-
where().type.eq(link.link_type);
174+
where().type.equalTo(link.link_type);
175175
for (LinktypeRow ref : query.findAll()) {
176176
LinkRow l = links.at(ref.getLink());
177177
if (l.getId2() == link.id2) {
@@ -225,15 +225,15 @@ boolean deleteLink(int id1, int link_type, int id2) {
225225

226226
// we don't want to search over all links, so we go through the source node
227227
NodeRow srcNode = nodes.at(id1);
228-
LinktypeQuery query = srcNode.getLink_out().where().type.eq(link_type);
228+
LinktypeQuery query = srcNode.getLink_out().where().type.equalTo(link_type);
229229
for (LinktypeRow ref : query.findAll()) {
230230
long refLink = ref.getLink();
231231
LinkRow l = links.at(refLink);
232232
if (l.getId2() == id2) {
233233
l.setDeleted(true);
234234
deleted_links.add((int) refLink);
235-
srcNode.getLink_out().where().type.eq(refLink).remove();
236-
nodes.at(id2).getLink_in().where().type.eq(link_type).link.eq(refLink).remove();
235+
srcNode.getLink_out().where().type.equalTo(refLink).remove();
236+
nodes.at(id2).getLink_in().where().type.equalTo(link_type).link.equalTo(refLink).remove();
237237
tr.commit();
238238
return true;
239239
}
@@ -252,7 +252,7 @@ ArrayList<Link> getLinkList(int id1, int link_type) {
252252
NodeTable nodes = new NodeTable(tr);
253253
LinkTable links = new LinkTable(tr);
254254

255-
LinktypeView view = nodes.at(id1).getLink_out().where().type.eq(link_type).findAll();
255+
LinktypeView view = nodes.at(id1).getLink_out().where().type.equalTo(link_type).findAll();
256256
for (LinktypeRow r : view) {
257257
LinkRow link = links.at(r.getLink());
258258
link_list.add(clone_link(link));
@@ -266,7 +266,7 @@ ArrayList<Link> getLinkList(int id1, int link_type) {
266266
long countLinks(int id1, int link_type) {
267267
ReadTransaction tr = db.beginRead();
268268
NodeTable nodes = new NodeTable(tr);
269-
long cnt = nodes.at(id1).getLink_out().where().type.eq(link_type).count();
269+
long cnt = nodes.at(id1).getLink_out().where().type.equalTo(link_type).count();
270270
tr.endRead();
271271
return cnt;
272272
}
@@ -279,7 +279,7 @@ ArrayList<Link> getBacklinkList(int id1, int link_type) {
279279
NodeTable nodes = new NodeTable(tr);
280280
LinkTable links = new LinkTable(tr);
281281

282-
LinktypeView view = nodes.at(id1).getLink_in().where().type.eq(link_type).findAll();
282+
LinktypeView view = nodes.at(id1).getLink_in().where().type.equalTo(link_type).findAll();
283283
for (LinktypeRow r : view) {
284284
LinkRow link = links.at(r.getLink());
285285
link_list.add(clone_link(link));

tightdb-java-generator/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.tightdb</groupId>
77
<artifactId>tightdb-parent</artifactId>
8-
<version>0.1.0</version>
8+
<version>0.1.1</version>
99
</parent>
1010

1111
<artifactId>tightdb-devkit</artifactId>
@@ -14,7 +14,7 @@
1414
<dependency>
1515
<groupId>com.tightdb</groupId>
1616
<artifactId>tightdb</artifactId>
17-
<version>0.1.0</version>
17+
<version>0.1.1</version>
1818
</dependency>
1919
<dependency>
2020
<groupId>commons-io</groupId>

tightdb-java-test/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.tightdb</groupId>
77
<artifactId>tightdb-parent</artifactId>
8-
<version>0.1.0</version>
8+
<version>0.1.1</version>
99
</parent>
1010

1111
<artifactId>tightdb-java-test</artifactId>
@@ -14,7 +14,7 @@
1414
<dependency>
1515
<groupId>com.tightdb</groupId>
1616
<artifactId>tightdb</artifactId>
17-
<version>0.1.0</version>
17+
<version>0.1.1</version>
1818
</dependency>
1919
</dependencies>
2020

@@ -43,7 +43,7 @@
4343
<dependency>
4444
<groupId>com.tightdb</groupId>
4545
<artifactId>tightdb-devkit</artifactId>
46-
<version>0.1.0</version>
46+
<version>0.1.1</version>
4747
</dependency>
4848
</dependencies>
4949
</plugin>

0 commit comments

Comments
 (0)