public interface MongoCollection<KEY>
| Modifier and Type | Method and Description |
|---|---|
void |
addDocument(org.bson.BSONObject document) |
void |
addIndex(Index<KEY> index) |
int |
count() |
int |
count(org.bson.BSONObject query) |
int |
deleteDocuments(org.bson.BSONObject selector,
int limit) |
void |
drop() |
org.bson.BSONObject |
findAndModify(org.bson.BSONObject query) |
java.lang.String |
getCollectionName() |
java.lang.String |
getDatabaseName() |
java.lang.String |
getFullName() |
int |
getNumIndexes() |
org.bson.BSONObject |
getStats() |
org.bson.BSONObject |
handleDistinct(org.bson.BSONObject query) |
java.lang.Iterable<org.bson.BSONObject> |
handleQuery(org.bson.BSONObject query,
int numberToSkip,
int numberToReturn,
org.bson.BSONObject returnFieldSelector) |
int |
insertDocuments(java.util.List<org.bson.BSONObject> documents) |
void |
removeDocument(org.bson.BSONObject document) |
void |
renameTo(java.lang.String newDatabaseName,
java.lang.String newCollectionName) |
org.bson.BSONObject |
updateDocuments(org.bson.BSONObject selector,
org.bson.BSONObject update,
boolean isMulti,
boolean isUpsert) |
org.bson.BSONObject |
validate() |
java.lang.String getDatabaseName()
java.lang.String getFullName()
java.lang.String getCollectionName()
void addDocument(org.bson.BSONObject document)
throws MongoServerException
MongoServerExceptionvoid removeDocument(org.bson.BSONObject document)
throws MongoServerException
MongoServerExceptionjava.lang.Iterable<org.bson.BSONObject> handleQuery(org.bson.BSONObject query,
int numberToSkip,
int numberToReturn,
org.bson.BSONObject returnFieldSelector)
throws MongoServerException
MongoServerExceptionint insertDocuments(java.util.List<org.bson.BSONObject> documents)
throws MongoServerException
MongoServerExceptionorg.bson.BSONObject updateDocuments(org.bson.BSONObject selector,
org.bson.BSONObject update,
boolean isMulti,
boolean isUpsert)
throws MongoServerException
MongoServerExceptionint deleteDocuments(org.bson.BSONObject selector,
int limit)
throws MongoServerException
MongoServerExceptionorg.bson.BSONObject handleDistinct(org.bson.BSONObject query)
throws MongoServerException
MongoServerExceptionorg.bson.BSONObject getStats()
throws MongoServerException
MongoServerExceptionorg.bson.BSONObject validate()
throws MongoServerException
MongoServerExceptionorg.bson.BSONObject findAndModify(org.bson.BSONObject query)
throws MongoServerException
MongoServerExceptionint count(org.bson.BSONObject query) throws MongoServerException
MongoServerExceptionint count()
int getNumIndexes()
void drop()
void renameTo(java.lang.String newDatabaseName,
java.lang.String newCollectionName)