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