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