Join us Sept 17 at .local NYC! Use code WEB50 to save 50% on tickets. Learn more >
MongoDB Event
Docs Menu
Docs Home
/ /
Atlas Device SDK
/ / /

MongoDatabase 클래스

java.lang.Object
io.realm.mongodb.mongo.MongoDatabase

RemoteMongoDatabase는 문서 MongoCollection 에 대한 액세스를 제공합니다.

수정자 및 유형
메서드 및 설명
getCollection <DocumentT >(
String collectionName,
)

특정 기본 문서 클래스가 있는 컬렉션을 가져옵니다.

String collectionName
)

collection을 가져옵니다.

데이터베이스의 이름을 가져옵니다.

  • 클래스 java.lang.Object에서 getClasshashCodeequalsclonetoStringnotifynotifyAllwait상속된wait 메서드:,,,,,,,,, wait , finalize

public MongoCollection getCollection <DocumentT >(
String collectionName,
)

특정 기본 문서 클래스가 있는 컬렉션을 가져옵니다.

유형 매개변수

  • DocumentT - Document 대신 사용할 클래스 유형입니다.

매개변수

  • collectionName - 반환할 collection의 이름

  • documentClass - 데이터베이스에서 반환된 모든 문서를 캐스팅할 기본 클래스입니다.

반환

collection

String collectionName
)

collection을 가져옵니다.

매개변수

  • collectionName - 반환할 collection의 이름

반환

collection

public String getName ()

데이터베이스의 이름을 가져옵니다.

반환

데이터베이스 이름

돌아가기

MongoCollection

이 페이지의 내용