org.eclipse.persistence.nosql.adapters.mongo
Class MongoConnectionSpec
java.lang.Object
org.eclipse.persistence.eis.EISConnectionSpec
org.eclipse.persistence.nosql.adapters.mongo.MongoConnectionSpec
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Connector
public class MongoConnectionSpec
- extends EISConnectionSpec
Provides connection information to the Mongo database.
- See Also:
- Serialized Form
- Author:
- James
- Since:
- EclipseLink 2.4
Field Summary |
static java.lang.String |
DB
|
static java.lang.String |
HOST
Connection spec properties. |
static java.lang.String |
OPTIONS
|
static java.lang.String |
PORT
|
static java.lang.String |
READ_PREFERENCE
|
static java.lang.String |
WRITE_CONCERN
|
Method Summary |
javax.resource.cci.Connection |
connectToDataSource(EISAccessor accessor,
java.util.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 |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HOST
public static java.lang.String HOST
- Connection spec properties.
PORT
public static java.lang.String PORT
DB
public static java.lang.String DB
OPTIONS
public static java.lang.String OPTIONS
READ_PREFERENCE
public static java.lang.String READ_PREFERENCE
WRITE_CONCERN
public static java.lang.String WRITE_CONCERN
MongoConnectionSpec
public MongoConnectionSpec()
- PUBLIC:
Default constructor.
connectToDataSource
public javax.resource.cci.Connection connectToDataSource(EISAccessor accessor,
java.util.Properties properties)
throws DatabaseException,
ValidationException
- Connect with the specified properties and return the Connection.
- Overrides:
connectToDataSource
in class EISConnectionSpec
- Throws:
DatabaseException
ValidationException