Class RemoteMongoDatabaseImpl

    • Method Detail

      • getCollection

        public <DocumentT> RemoteMongoCollection<DocumentT> getCollection​(String collectionName,
                                                                          Class<DocumentT> documentClass)
        Gets a collection, with a specific default document class.
        Specified by:
        getCollection in interface RemoteMongoDatabase
        Type Parameters:
        DocumentT - the type of the class to use instead of Document.
        Parameters:
        collectionName - the name of the collection to return
        documentClass - the default class to cast any documents returned from the database into.
        Returns:
        the collection