public class MemoryDatabase extends Object
| Constructor and Description |
|---|
MemoryDatabase(MemoryBackend backend,
String databaseName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addNamespace(MongoCollection collection) |
protected void |
clearLastStatus(org.jboss.netty.channel.Channel channel) |
String |
getDatabaseName() |
void |
handleClose(org.jboss.netty.channel.Channel channel) |
org.bson.BSONObject |
handleCommand(org.jboss.netty.channel.Channel channel,
String command,
org.bson.BSONObject query) |
void |
handleDelete(MongoDelete delete) |
void |
handleInsert(MongoInsert insert) |
Iterable<org.bson.BSONObject> |
handleQuery(MongoQuery query) |
void |
handleUpdate(MongoUpdate update) |
boolean |
isEmpty() |
String |
toString() |
public MemoryDatabase(MemoryBackend backend, String databaseName) throws MongoServerException
MongoServerExceptionpublic boolean isEmpty()
public Iterable<org.bson.BSONObject> handleQuery(MongoQuery query) throws MongoServerException
MongoServerExceptionpublic void handleClose(org.jboss.netty.channel.Channel channel)
protected void clearLastStatus(org.jboss.netty.channel.Channel channel)
public void handleInsert(MongoInsert insert) throws MongoServerException
MongoServerExceptionprotected void addNamespace(MongoCollection collection) throws MongoServerException
MongoServerExceptionpublic void handleDelete(MongoDelete delete) throws MongoServerException
MongoServerExceptionpublic void handleUpdate(MongoUpdate update) throws MongoServerException
MongoServerExceptionpublic org.bson.BSONObject handleCommand(org.jboss.netty.channel.Channel channel,
String command,
org.bson.BSONObject query)
throws MongoServerException
MongoServerExceptionpublic final String getDatabaseName()
getDatabaseName in interface MongoDatabaseCopyright © 2013. All Rights Reserved.