public class MongoConnectionSpec
extends org.eclipse.persistence.eis.EISConnectionSpec
Modifier and Type | Field and Description |
---|---|
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 |
Constructor and Description |
---|
MongoConnectionSpec()
PUBLIC:
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
javax.resource.cci.Connection |
connectToDataSource(org.eclipse.persistence.eis.EISAccessor accessor,
java.util.Properties properties)
Connect with the specified properties and return the Connection.
|
clone, connect, getConnectionDetails, getConnectionFactory, getConnectionSpec, getContext, getLog, getName, getPasswordFromProperties, setConnectionFactory, setConnectionFactoryObject, setConnectionSpec, setConnectionSpecObject, setContext, setLog, setName, setName, toString, toString
public static java.lang.String HOST
public static java.lang.String PORT
public static java.lang.String DB
public static java.lang.String OPTIONS
public static java.lang.String READ_PREFERENCE
public static java.lang.String WRITE_CONCERN
public javax.resource.cci.Connection connectToDataSource(org.eclipse.persistence.eis.EISAccessor accessor, java.util.Properties properties) throws org.eclipse.persistence.exceptions.DatabaseException, org.eclipse.persistence.exceptions.ValidationException
connectToDataSource
in class org.eclipse.persistence.eis.EISConnectionSpec
org.eclipse.persistence.exceptions.DatabaseException
org.eclipse.persistence.exceptions.ValidationException