Class MongoConnectionSpec
java.lang.Object
org.eclipse.persistence.eis.EISConnectionSpec
org.eclipse.persistence.nosql.adapters.mongo.MongoConnectionSpec
- All Implemented Interfaces:
Serializable
,Cloneable
,Connector
- Direct Known Subclasses:
Mongo2ConnectionSpec
,Mongo3ConnectionSpec
Provides connection information to the Mongo database.
- Since:
- EclipseLink 2.4
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
Connection spec properties.static final String
static final String
static final String
static final String
static final String
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.protected ConnectionFactory
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
-
HOST
Connection spec properties.- See Also:
-
PORT
- See Also:
-
DB
- See Also:
-
OPTIONS
- See Also:
-
READ_PREFERENCE
- See Also:
-
WRITE_CONCERN
- See Also:
-
SERVER_SELECTION_TIMEOUT
- See Also:
-
AUTH_SOURCE
- See Also:
-
-
Constructor Details
-
MongoConnectionSpec
public MongoConnectionSpec()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
-
createMongoConnectionFactory
-