public class MongoDB extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
MONGODB_DB |
static String |
MONGODB_HOST |
static String |
MONGODB_PASSWORD |
static String |
MONGODB_PORT |
static String |
MONGODB_USER |
static String |
MONGODB_WRITE_CONCERN |
| Constructor and Description |
|---|
MongoDB(ch.agent.crnickl.api.Database database,
ch.agent.crnickl.api.DatabaseConfiguration configuration)
Construct a MongoDB session.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close(boolean ignoreException)
Close the MongoDB connection if it is open.
|
void |
commit()
Operation not supported by MongoDB.
|
com.mongodb.DBCollection |
getAttributes() |
com.mongodb.DBCollection |
getChronicles() |
com.mongodb.DBCollection |
getCollection(ch.agent.crnickl.api.Surrogate s) |
static MongoDB |
getInstance()
Return the MongoDB connection.
|
com.mongodb.DBCollection |
getProperties() |
com.mongodb.DBCollection |
getSchemas() |
com.mongodb.DBCollection |
getSeries() |
String |
getUser() |
com.mongodb.DBCollection |
getValueTypes() |
void |
rollback()
Operation not supported by MongoDB.
|
String |
toString()
Return a string displaying the session with the connection and the user id.
|
public static final String MONGODB_HOST
public static final String MONGODB_PORT
public static final String MONGODB_DB
public static final String MONGODB_WRITE_CONCERN
public static final String MONGODB_USER
public static final String MONGODB_PASSWORD
public MongoDB(ch.agent.crnickl.api.Database database,
ch.agent.crnickl.api.DatabaseConfiguration configuration)
throws ch.agent.crnickl.T2DBException
configuration - a database configurationch.agent.crnickl.T2DBExceptionpublic static MongoDB getInstance()
public void close(boolean ignoreException)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic void commit()
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic void rollback()
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic String getUser()
public com.mongodb.DBCollection getValueTypes()
public com.mongodb.DBCollection getProperties()
public com.mongodb.DBCollection getSchemas()
public com.mongodb.DBCollection getChronicles()
public com.mongodb.DBCollection getSeries()
public com.mongodb.DBCollection getAttributes()
public com.mongodb.DBCollection getCollection(ch.agent.crnickl.api.Surrogate s)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionCopyright © 2013. All Rights Reserved.