Skip to content

Commit 2935ab0

Browse files
author
Mark
committed
added javadoc
1 parent 83cc4f3 commit 2935ab0

38 files changed

+301
-126
lines changed

src/main/java/com/arangodb/entity/AqlExecutionExplainEntity.java

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

2525
/**
2626
* @author Mark - mark at arangodb.com
27+
*
28+
* @see <a href="https://docs.arangodb.com/current/HTTP/AqlQuery/index.html#explain-an-aql-query">API Documentation</a>
2729
*/
2830
public class AqlExecutionExplainEntity {
2931

src/main/java/com/arangodb/entity/AqlFunctionEntity.java

+10-9
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222

2323
/**
2424
* @author Mark - mark at arangodb.com
25-
*
25+
*
26+
* @see <a href=
27+
* "https://docs.arangodb.com/current/HTTP/AqlUserFunctions/index.html#return-registered-aql-user-functions">API
28+
* Documentation</a>
2629
*/
2730
public class AqlFunctionEntity {
2831

@@ -33,20 +36,18 @@ public AqlFunctionEntity() {
3336
super();
3437
}
3538

39+
/**
40+
* @return The fully qualified name of the user function
41+
*/
3642
public String getName() {
3743
return name;
3844
}
3945

40-
public void setName(final String name) {
41-
this.name = name;
42-
}
43-
46+
/**
47+
* @return A string representation of the function body
48+
*/
4449
public String getCode() {
4550
return code;
4651
}
4752

48-
public void setCode(final String code) {
49-
this.code = code;
50-
}
51-
5253
}

src/main/java/com/arangodb/entity/AqlParseEntity.java

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
/**
2626
* @author Mark - mark at arangodb.com
2727
*
28+
* @see <a href="https://docs.arangodb.com/current/HTTP/AqlQuery/index.html#parse-an-aql-query">API Documentation</a>
2829
*/
2930
public class AqlParseEntity {
3031

src/main/java/com/arangodb/entity/ArangoDBVersion.java

+10-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222

2323
/**
2424
* @author Mark - mark at arangodb.com
25-
*
25+
*
26+
* @see <a href="https://docs.arangodb.com/current/HTTP/MiscellaneousFunctions/index.html#return-server-version">API
27+
* Documentation</a>
2628
*/
2729
public class ArangoDBVersion {
2830

@@ -33,10 +35,17 @@ public ArangoDBVersion() {
3335
super();
3436
}
3537

38+
/**
39+
* @return will always contain arango
40+
*/
3641
public String getServer() {
3742
return server;
3843
}
3944

45+
/**
46+
* @return the server version string. The string has the format "major.minor.sub". major and minor will be numeric,
47+
* and sub may contain a number or a textual version.
48+
*/
4049
public String getVersion() {
4150
return version;
4251
}

src/main/java/com/arangodb/entity/CollectionEntity.java

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
/**
2424
* @author Mark - mark at arangodb.com
2525
*
26+
* @see <a href="https://docs.arangodb.com/current/HTTP/Collection/Creating.html">API Documentation</a>
2627
*/
2728
public class CollectionEntity {
2829

src/main/java/com/arangodb/entity/CollectionPropertiesEntity.java

+9
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
/**
2626
* @author Mark - mark at arangodb.com
2727
*
28+
* @see <a href= "https://docs.arangodb.com/current/HTTP/Collection/Getting.html#read-properties-of-a-collection">API
29+
* Documentation</a>
2830
*/
2931
public class CollectionPropertiesEntity extends CollectionEntity {
3032

@@ -80,6 +82,10 @@ public void setCount(final Long count) {
8082
this.count = count;
8183
}
8284

85+
/**
86+
* @return contains the names of document attributes that are used to determine the target shard for documents. Only
87+
* in a cluster setup
88+
*/
8389
public Integer getNumberOfShards() {
8490
return numberOfShards;
8591
}
@@ -88,6 +94,9 @@ public void setNumberOfShards(final Integer numberOfShards) {
8894
this.numberOfShards = numberOfShards;
8995
}
9096

97+
/**
98+
* @return the number of shards of the collection. Only in a cluster setup.
99+
*/
91100
public Collection<String> getShardKeys() {
92101
return shardKeys;
93102
}

src/main/java/com/arangodb/entity/CollectionRevisionEntity.java

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
/**
2424
* @author Mark - mark at arangodb.com
2525
*
26+
* @see <a href="https://docs.arangodb.com/current/HTTP/Collection/Getting.html#return-collection-revision-id">API
27+
* Documentation</a>
2628
*/
2729
public class CollectionRevisionEntity extends CollectionEntity {
2830

src/main/java/com/arangodb/entity/CursorEntity.java

+55-93
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,64 @@
2626

2727
/**
2828
* @author Mark - mark at arangodb.com
29-
*
29+
*
30+
* @see <a href="https://docs.arangodb.com/current/HTTP/AqlQueryCursor/AccessingCursors.html#create-cursor">API
31+
* Documentation</a>
3032
*/
3133
public class CursorEntity {
3234

35+
private String id;
36+
private Integer count;
37+
private Extras extra;
38+
private Boolean cached;
39+
private Boolean hasMore;
40+
private VPackSlice result;
41+
42+
public String getId() {
43+
return id;
44+
}
45+
46+
/**
47+
* @return the total number of result documents available (only available if the query was executed with the count
48+
* attribute set)
49+
*/
50+
public Integer getCount() {
51+
return count;
52+
}
53+
54+
/**
55+
* @return an optional object with extra information about the query result contained in its stats sub-attribute.
56+
* For data-modification queries, the extra.stats sub-attribute will contain the number of modified
57+
* documents and the number of documents that could not be modified due to an error (if ignoreErrors query
58+
* option is specified)
59+
*/
60+
public Extras getExtra() {
61+
return extra;
62+
}
63+
64+
/**
65+
* @return a boolean flag indicating whether the query result was served from the query cache or not. If the query
66+
* result is served from the query cache, the extra return attribute will not contain any stats
67+
* sub-attribute and no profile sub-attribute.
68+
*/
69+
public Boolean getCached() {
70+
return cached;
71+
}
72+
73+
/**
74+
* @return A boolean indicator whether there are more results available for the cursor on the server
75+
*/
76+
public Boolean getHasMore() {
77+
return hasMore;
78+
}
79+
80+
/**
81+
* @return an vpack-array of result documents (might be empty if query has no results)
82+
*/
83+
public VPackSlice getResult() {
84+
return result;
85+
}
86+
3387
public static class Warning {
3488

3589
private Integer code;
@@ -53,18 +107,10 @@ public Stats getStats() {
53107
return stats;
54108
}
55109

56-
public void setStats(final Stats stats) {
57-
this.stats = stats;
58-
}
59-
60110
public Collection<Warning> getWarnings() {
61111
return warnings;
62112
}
63113

64-
public void setWarnings(final Collection<Warning> warnings) {
65-
this.warnings = warnings;
66-
}
67-
68114
}
69115

70116
public static class Stats {
@@ -80,113 +126,29 @@ public Long getWritesExecuted() {
80126
return writesExecuted;
81127
}
82128

83-
public void setWritesExecuted(final Long writesExecuted) {
84-
this.writesExecuted = writesExecuted;
85-
}
86-
87129
public Long getWritesIgnored() {
88130
return writesIgnored;
89131
}
90132

91-
public void setWritesIgnored(final Long writesIgnored) {
92-
this.writesIgnored = writesIgnored;
93-
}
94-
95133
public Long getScannedFull() {
96134
return scannedFull;
97135
}
98136

99-
public void setScannedFull(final Long scannedFull) {
100-
this.scannedFull = scannedFull;
101-
}
102-
103137
public Long getScannedIndex() {
104138
return scannedIndex;
105139
}
106140

107-
public void setScannedIndex(final Long scannedIndex) {
108-
this.scannedIndex = scannedIndex;
109-
}
110-
111141
public Long getFiltered() {
112142
return filtered;
113143
}
114144

115-
public void setFiltered(final Long filtered) {
116-
this.filtered = filtered;
117-
}
118-
119145
public Long getFullCount() {
120146
return fullCount;
121147
}
122148

123-
public void setFullCount(final Long fullCount) {
124-
this.fullCount = fullCount;
125-
}
126-
127149
public Double getExecutionTime() {
128150
return executionTime;
129151
}
130152

131-
public void setExecutionTime(final Double executionTime) {
132-
this.executionTime = executionTime;
133-
}
134-
135-
}
136-
137-
private String id;
138-
private Integer count;
139-
private Extras extra;
140-
private Boolean cached;
141-
private Boolean hasMore;
142-
private VPackSlice result;
143-
144-
public String getId() {
145-
return id;
146-
}
147-
148-
public void setId(final String id) {
149-
this.id = id;
150-
}
151-
152-
public Integer getCount() {
153-
return count;
154-
}
155-
156-
public void setCount(final Integer count) {
157-
this.count = count;
158153
}
159-
160-
public Extras getExtra() {
161-
return extra;
162-
}
163-
164-
public void setExtra(final Extras extra) {
165-
this.extra = extra;
166-
}
167-
168-
public Boolean getCached() {
169-
return cached;
170-
}
171-
172-
public void setCached(final Boolean cached) {
173-
this.cached = cached;
174-
}
175-
176-
public Boolean getHasMore() {
177-
return hasMore;
178-
}
179-
180-
public void setHasMore(final Boolean hasMore) {
181-
this.hasMore = hasMore;
182-
}
183-
184-
public VPackSlice getResult() {
185-
return result;
186-
}
187-
188-
public void setResult(final VPackSlice result) {
189-
this.result = result;
190-
}
191-
192154
}

src/main/java/com/arangodb/entity/DatabaseEntity.java

+16-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222

2323
/**
2424
* @author Mark - mark at arangodb.com
25-
*
25+
*
26+
* @see <a href=
27+
* "https://docs.arangodb.com/current/HTTP/Database/DatabaseManagement.html#information-of-the-database">API
28+
* Documentation</a>
2629
*/
2730
public class DatabaseEntity {
2831

@@ -31,18 +34,30 @@ public class DatabaseEntity {
3134
private String path;
3235
private Boolean isSystem;
3336

37+
/**
38+
* @return the id of the database
39+
*/
3440
public String getId() {
3541
return id;
3642
}
3743

44+
/**
45+
* @return the name of the database
46+
*/
3847
public String getName() {
3948
return name;
4049
}
4150

51+
/**
52+
* @return the filesystem path of the database
53+
*/
4254
public String getPath() {
4355
return path;
4456
}
4557

58+
/**
59+
* @return whether or not the database is the _system database
60+
*/
4661
public Boolean getIsSystem() {
4762
return isSystem;
4863
}

src/main/java/com/arangodb/entity/DocumentCreateEntity.java

+5
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
/**
2626
* @author Mark - mark at arangodb.com
2727
*
28+
* @see <a href="https://docs.arangodb.com/current/HTTP/Document/WorkingWithDocuments.html#create-document">API
29+
* Documentation</a>
2830
*/
2931
public class DocumentCreateEntity<T> extends DocumentEntity {
3032

@@ -35,6 +37,9 @@ public DocumentCreateEntity() {
3537
super();
3638
}
3739

40+
/**
41+
* @return If the query parameter returnNew is true, then the complete new document is returned.
42+
*/
3843
public T getNew() {
3944
return newDocument;
4045
}

0 commit comments

Comments
 (0)