Class OracleNoSQLConnectionSpec
java.lang.Object
org.eclipse.persistence.eis.EISConnectionSpec
org.eclipse.persistence.nosql.adapters.sdk.OracleNoSQLConnectionSpec
- All Implemented Interfaces:
Serializable
,Cloneable
,Connector
Provides connection information to the Oracle NoSQL database.
- Since:
- EclipseLink 4.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic String
Cloud authorization mechanisms.static String
Compartment is an OCID.static String
NoSQL endpoint e.g.static String
Connection spec properties.Fields inherited from class org.eclipse.persistence.eis.EISConnectionSpec
connectionFactory, connectionSpec, context, log, name, PASSWORD, USER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconnectToDataSource
(EISAccessor accessor, Properties properties) Connect with the specified properties and return the Connection.Methods inherited from class org.eclipse.persistence.eis.EISConnectionSpec
clone, connect, getConnectionDetails, getConnectionFactory, getConnectionSpec, getContext, getLog, getName, getPasswordFromProperties, setConnectionFactory, setConnectionFactoryObject, setConnectionSpec, setConnectionSpecObject, setContext, setLog, setName, setName, toString, toString
-
Field Details
-
SERVICE
Connection spec properties. NoSQL service type.- cloud - Cloud service
- onprem - On-premise proxy and Oracle NoSQL Database instance
- cloudsim - Cloud simulator (for development)
-
END_POINT
NoSQL endpoint e.g.- eu-frankfurt-1 (for cloud nosql.service))
- http://localhost:8080 (for onprem nosql.service))
- http://localhost:8080 (for cloudsim nosql.service))
-
COMPARTMENT
Compartment is an OCID. This is required if using Instance Principal or Resource Principal authorization. It's walid for cloud, onprem nosql.service types. -
AUTHORIZATION_PRINCIPAL
Cloud authorization mechanisms. Possible values are.- user - Use User Principal authorization using a config file in $HOME/.oci/config
- instance - Create a SignatureProvider using an instance principal.
- resource - Create a SignatureProvider using a resource principal.
-
-
Constructor Details
-
OracleNoSQLConnectionSpec
public OracleNoSQLConnectionSpec()PUBLIC: Default constructor.
-
-
Method Details
-
connectToDataSource
public Connection connectToDataSource(EISAccessor accessor, Properties properties) throws DatabaseException, ValidationException Connect with the specified properties and return the Connection.- Overrides:
connectToDataSource
in classEISConnectionSpec
- Throws:
DatabaseException
ValidationException
-