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.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.
1061
+
[Oracle NoSQL Database](https://www.oracle.com/database/nosql/technologies/nosql/) is a versatile multi-model database offering flexible data models for documents, graphs, and key-value pairs. It empowers developers to build high-performance applications using a user-friendly SQL-like query language or JavaScript extensions.
1062
1062
1063
-
This API offers support for *Document* and *Key-Value* data types.
1063
+
This API provides support for *Document* and *Key-Value* data types.
1064
1064
1065
-
=== How To Install
1065
+
=== Installation
1066
1066
1067
-
You can use either the Maven or Gradle dependencies:
1067
+
You can include Oracle NoSQL as a dependency using either Maven or Gradle:
1068
1068
1069
1069
[source,xml]
1070
1070
----
@@ -1077,41 +1077,60 @@ You can use either the Maven or Gradle dependencies:
1077
1077
1078
1078
=== Configuration
1079
1079
1080
-
This API provides the ```OracleNoSQLConfigurations``` class to programmatically establish the credentials.
1081
-
Please note that you can establish properties using the https://microprofile.io/microprofile-config/[MicroProfile Config] specification.
1080
+
The API offers the `OracleNoSQLConfigurations` class to programmatically set up credentials. It also supports configuration via the [MicroProfile Config](https://microprofile.io/microprofile-config/) specification.
1082
1081
1083
1082
[cols="Oracle NoSQL Properties"]
1084
1083
|===
1085
1084
| Property Name | Description
1086
1085
1087
-
| `jnosql.oracle.nosql.host` | Specifies the hostname or IP address of the Oracle NoSQL database server.
1086
+
| `jnosql.oracle.nosql.host` | Hostname or IP address of the Oracle NoSQL database server.
1088
1087
1089
-
| `jnosql.oracle.nosql.user` | Specifies the username used to authenticate with the Oracle NoSQL database.
1088
+
| `jnosql.oracle.nosql.user` | Username for Oracle NoSQL database authentication.
1090
1089
1091
-
| `jnosql.oracle.nosql.password` | Specifies the password used to authenticate with the Oracle NoSQL database.
1090
+
| `jnosql.oracle.nosql.password` | Password for Oracle NoSQL database authentication.
1092
1091
1093
-
| `jnosql.oracle.nosql.table.read.limit` | Specifies the desired throughput of read operations when creating a table using Eclipse JNoSQL.
1092
+
| `jnosql.oracle.nosql.table.read.limit` | Desired throughput of read operations when creating tables with Eclipse JNoSQL.
1094
1093
1095
-
| `jnosql.oracle.nosql.table.write.limit` | Specifies the desired throughput of write operations when creating a table using Eclipse JNoSQL.
1094
+
| `jnosql.oracle.nosql.table.write.limit` | Desired throughput of write operations when creating tables with Eclipse JNoSQL.
1096
1095
1097
-
| `jnosql.oracle.nosql.table.storage.gb` | Specifies the maximum storage, in gigabytes, to be consumed by a table created using Eclipse JNoSQL.
1096
+
| `jnosql.oracle.nosql.table.storage.gb` | Maximum storage in gigabytes for tables created with Eclipse JNoSQL.
1098
1097
1099
-
| `jnosql.oracle.nosql.table.wait.millis` | Specifies the total amount of time to wait, in milliseconds, when creating a table.
1098
+
| `jnosql.oracle.nosql.table.wait.millis` | Total waiting time in milliseconds when creating a table.
1100
1099
1101
-
| `jnosql.oracle.nosql.table.delay.millis` | Specifies the amount of time to wait, in milliseconds, between polling attempts when creating a table.
1100
+
| `jnosql.oracle.nosql.table.delay.millis` | Time between polling attempts in milliseconds when creating a table.
1102
1101
1103
-
| `jnosql.oracle.nosql.deployment` | Specifies the deployment type for Oracle NoSQL database.
1102
+
| `jnosql.oracle.nosql.tenant.id` | Tenant ID for Oracle NoSQL database in a Cloud deployment.
1104
1103
1105
-
| `jnosql.oracle.nosql.tenant.id` | Specifies the Oracle NoSQL database tenant ID for Cloud deployment.
1104
+
| `jnosql.oracle.nosql.fingerprint` | Fingerprint for authentication with Oracle NoSQL database in a Cloud deployment.
1106
1105
1107
-
| `jnosql.oracle.nosql.fingerprint` | Specifies the fingerprint for authentication with Oracle NoSQL database for Cloud deployment.
1106
+
| `jnosql.oracle.nosql.private.key` | Private key for authentication with Oracle NoSQL database in a Cloud deployment.
1108
1107
1109
-
| `jnosql.oracle.nosql.private.key` | Specifies the private key for authentication with Oracle NoSQL database for Cloud deployment.
1110
-
|===
1108
+
| `jnosql.oracle.nosql.compartment` | Compartment name in Oracle Cloud Infrastructure.
1109
+
1110
+
| `jnosql.oracle.nosql.namespace` | Namespace name in Oracle NoSQL on-premises.
1111
+
1112
+
| `jnosql.oracle.nosql.profile.name` | Specifies the profile name used to load session token in Oracle NoSQL cloud.
1113
+
1114
+
| `jnosql.oracle.nosql.config.file` | Specifies the path of configuration file used to load session token in Oracle NoSQL cloud.
1115
+
1116
+
| `jnosql.oracle.nosql.deployment` | Specifies the deployment type for Oracle NoSQL database. You can choose from the following options:
1111
1117
1118
+
- `ON_PREMISES`: Represents an on-premises deployment where software solutions are deployed and managed within an organization's physical premises or data centers.
1112
1119
1120
+
- `CLOUD_API_KEY`: Represents a cloud deployment using API key for authentication and authorization.
1113
1121
1114
-
This is an example using Oracle NoSQL's Document API with MicroProfile Config.
1122
+
- `CLOUD_INSTANCE_PRINCIPAL`: Represents a cloud deployment using instance principal for authentication and authorization.
1123
+
1124
+
- `CLOUD_RESOURCE_PRINCIPAL`: Represents a cloud deployment using resource principal for authentication and authorization.
1125
+
1126
+
- `CLOUD_INSTANCE_OBO_USER`: Represents a cloud deployment using instance principal for delegation with an OBO token.
1127
+
1128
+
- `CLOUD_SECURITY_TOKEN`: Represents a "Cloud" deployment using resource principal for delegation with an OBO token.
1129
+
|===
1130
+
1131
+
Below are examples using Oracle NoSQL's Document API and Key-Value 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`.
1151
+
Although these are the default configuration settings, you have the option to configure them programmatically. Create a class that implements `Supplier<OracleNoSQLDocumentManager>`, annotate it with `@Alternative`, and set the priority using `@Priority`.
1133
1152
1134
1153
[source,java]
1135
1154
----
@@ -1151,7 +1170,7 @@ public class ManagerSupplier implements Supplier<OracleNoSQLDocumentManager> {
1151
1170
1152
1171
=== Repository
1153
1172
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:
1173
+
The `OracleNoSQLRepository` interface extends the Repository interface and allows executing SQL queries using the `@SQL` annotation. You can also combine it with the `@Param` annotation for parameterized SQL queries:
Copy file name to clipboardExpand all lines: jnosql-nosql-oracle/src/main/java/org/eclipse/jnosql/databases/oracle/communication/DefaultOracleNoSQLDocumentManager.java
Copy file name to clipboardExpand all lines: jnosql-nosql-oracle/src/main/java/org/eclipse/jnosql/databases/oracle/communication/NoSQLHandleConfigConfiguration.java
0 commit comments