You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://www.arangodb.com/[ArangoDB] is a native multi-model database with flexible data models for documents, graphs, and key-values.
1062
-
Build high performance applications using a convenient SQL-like query language or JavaScript extensions.
1063
-
1064
-
This API offers support for **Document** and **Key-Value** types.
1061
+
https://www.oracle.com/database/nosql/technologies/nosql/[Oracle NoSQL Database] is a native multi-model database that provides flexible data models for documents, graphs, and key values. You can develop high-performance applications using a user-friendly SQL-like query language or JavaScript extensions.
1065
1062
1063
+
This API offers support for *Document* and *Key-Value* data types.
1066
1064
1067
1065
=== How To Install
1068
1066
@@ -1079,60 +1077,56 @@ You can use either the Maven or Gradle dependencies:
1079
1077
1080
1078
=== Configuration
1081
1079
1082
-
This API provides the ```ArangoDBConfigurations``` class to programmatically establish the credentials.
1080
+
This API provides the ```OracleNoSQLConfigurations``` class to programmatically establish the credentials.
1083
1081
Please note that you can establish properties using the https://microprofile.io/microprofile-config/[MicroProfile Config] specification.
1084
1082
1085
-
[cols="Arango Properties"]
1083
+
[cols="Oracle NoSQL Properties"]
1086
1084
|===
1087
-
|Configuration property |Description
1085
+
| Property Name | Description
1088
1086
1089
-
|`jnosql.jnosql.arangodb.host`
1090
-
|The database host, where you need to put the port split by colons. E.g.: jnosql.jnosql.arangodb.host=localhost:8529
1087
+
| `jnosql.oracle.nosql.host` | Specifies the hostname or IP address of the Oracle NoSQL database server.
1091
1088
1092
-
|`jnosql.arangodb.user`
1093
-
|The user's userID.
1089
+
| `jnosql.oracle.nosql.user` | Specifies the username used to authenticate with the Oracle NoSQL database.
1094
1090
1095
-
|`jnosql.arangodb.password`
1096
-
|The user's password
1091
+
| `jnosql.oracle.nosql.password` | Specifies the password used to authenticate with the Oracle NoSQL database.
1097
1092
1098
-
|`jnosql.arangodb.timeout`
1099
-
|The connection and request timeout in milliseconds.
1093
+
| `jnosql.oracle.nosql.table.read.limit` | Specifies the desired throughput of read operations when creating a table using Eclipse JNoSQL.
1100
1094
1101
-
|`jnosql.arangodb.chunk.size`
1102
-
|The chunk size when Protocol is used.
1095
+
| `jnosql.oracle.nosql.table.write.limit` | Specifies the desired throughput of write operations when creating a table using Eclipse JNoSQL.
1103
1096
1104
-
|`jnosql.arangodb.userSsl`
1105
-
|The true SSL will be used when connecting to an ArangoDB server.
1097
+
| `jnosql.oracle.nosql.table.storage.gb` | Specifies the maximum storage, in gigabytes, to be consumed by a table created using Eclipse JNoSQL.
1106
1098
1107
-
|`jnosql.arangodb.load.balancing.strategy`
1108
-
|The com.arangodb.entity.LoadBalancingStrategy as String.
1099
+
| `jnosql.oracle.nosql.table.wait.millis` | Specifies the total amount of time to wait, in milliseconds, when creating a table.
1109
1100
1110
-
|`jnosql.arangodb.protocol`
1111
-
|The com.arangodb.Protocol as String
1101
+
| `jnosql.oracle.nosql.table.delay.millis` | Specifies the amount of time to wait, in milliseconds, between polling attempts when creating a table.
1112
1102
1113
-
|`jnosql.arangodb.connections.max`
1114
-
|The maximum number of connections the built-in connection pool will open per host.
1103
+
| `jnosql.oracle.nosql.deployment` | Specifies the deployment type for Oracle NoSQL database.
1115
1104
1116
-
|`jnosql.arangodb.acquire.host.list`
1117
-
|Set hosts split by comma
1105
+
| `jnosql.oracle.nosql.tenant.id` | Specifies the Oracle NoSQL database tenant ID for Cloud deployment.
1106
+
1107
+
| `jnosql.oracle.nosql.fingerprint` | Specifies the fingerprint for authentication with Oracle NoSQL database for Cloud deployment.
1108
+
1109
+
| `jnosql.oracle.nosql.private.key` | Specifies the private key for authentication with Oracle NoSQL database for Cloud deployment.
1118
1110
|===
1119
1111
1120
-
This is an example using ArangoDB's Document API with MicroProfile Config.
1112
+
1113
+
1114
+
This is an example using Oracle NoSQL's Document API with MicroProfile Config.
The config settings are the default behavior; nevertheless, there is an option to do it programmatically. Create a class that implements the `Supplier<ArangoDBDocumentManager>` and then defines it as an `@Alternative` and the `Priority`.
@@ -1142,13 +1136,13 @@ The config settings are the default behavior; nevertheless, there is an option t
1142
1136
@ApplicationScoped
1143
1137
@Alternative
1144
1138
@Priority(Interceptor.Priority.APPLICATION)
1145
-
public class ManagerSupplier implements Supplier<ArangoDBDocumentManager> {
1139
+
public class ManagerSupplier implements Supplier<OracleNoSQLDocumentManager> {
@@ -1157,61 +1151,32 @@ public class ManagerSupplier implements Supplier<ArangoDBDocumentManager> {
1157
1151
1158
1152
=== Repository
1159
1153
1160
-
The ```ArangoDBRepository``` interface is an extension of the Repository interface that allows execution of AQL via the ```@AQL``` annotation. Also, it's possible to combine with ```@Param``` annotation to execute parameterized AQL queries:
1154
+
The ```OracleNoSQLRepository``` interface is an extension of the Repository interface that allows execution of SQL via the ```@SQL``` annotation. Also, it's possible to combine with ```@Param``` annotation to execute parameterized SQL queries:
The ```@AQL``` annotation is a mapping annotation that allows to define dynamic queries following link:https://www.arangodb.com/docs/stable/aql/[ArangoDB Query Languange] on ```ArangoDBRepository```.
For parameterized queries, use the ```@Param``` annotation for binding the target argument to the parameter informing the named parameter like the below example:
The ```ArangoDBTemplate``` interface is a specialization of the ```DocumentTemplate``` interface that allows using both synchronous and asynchronous AQL.
1172
+
The ```OracleNoSQLTemplate``` interface is a specialization of the ```DocumentTemplate``` interface that allows using synchronous SQL operation.
1208
1173
1209
1174
[source,java]
1210
1175
----
1211
1176
@Inject
1212
-
private ArangoDBTemplate template;
1177
+
private OracleNoSQLTemplate template;
1213
1178
...
1214
-
List<Person> people = template.aql("FOR p IN Person FILTER p.name = @name RETURN p", params);
1179
+
List<Person> people = template.sql("select * from people where people.content.name =?", "Ada");
0 commit comments