io.realm.mongodb.mongo
The RemoteMongoDatabase provides access to its Document MongoCollection s.
Method Summary
Modifier and Type | Method and Description |
|---|---|
public MongoCollection | Gets a collection, with a specific default document class. |
public MongoCollection | Gets a collection. |
public String | getName () Gets the name of the database. |
Inherited Methods
Methods inherited from class java.lang.Object :
getClass,hashCode,equals,clone,toString,notify,notifyAll,wait,wait,wait,finalize
Method Detail
getCollection
public MongoCollection getCollection <DocumentT >( String collectionName, java.lang.Class<DocumentT> documentClass ) |
|---|
Gets a collection, with a specific default document class. Type Parameters
Parameters
Returns the collection |
Gets a collection. Parameters
Returns the collection |