EclipseLink 2.4.0, build 'v20120608-r11652' API Reference

org.eclipse.persistence.nosql.adapters.mongo
Class MongoConnectionSpec

java.lang.Object
  extended by org.eclipse.persistence.eis.EISConnectionSpec
      extended by 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
           
 
Fields inherited from class org.eclipse.persistence.eis.EISConnectionSpec
connectionFactory, connectionSpec, context, log, name, PASSWORD, USER
 
Constructor Summary
MongoConnectionSpec()
          PUBLIC: Default constructor.
 
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
 

Field Detail

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
Constructor Detail

MongoConnectionSpec

public MongoConnectionSpec()
PUBLIC: Default constructor.

Method Detail

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

EclipseLink 2.4.0, build 'v20120608-r11652' API Reference