Database Class
- java.
lang. Object - JsonSerializable
- Resource
- com.
microsoft. azure. cosmosdb. Database
- com.
public class Database extends Resource
Represents a Database in the Azure Cosmos DB database service. A database manages users, permissions and a set of collections
Each Azure Cosmos DB Service is able to support multiple independent named databases, with the database being the logical container for data. Each Database consists of one or more collections, each of which in turn contain one or more documents. Since databases are an an administrative resource and the Service Master Key will be required in order to access and successfully complete any action using the User APIs.
Constructor Summary
Constructor | Description |
---|---|
Database() |
Initialize a database object. |
Database(String jsonString) |
Initialize a database object from json string. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getCollectionsLink()
Gets the self-link for collections in the database |
String |
getUsersLink()
Gets the self-link for users in the database. |
Inherited Members
Constructor Details
Database
public Database()
Initialize a database object.
Database
public Database(String jsonString)
Initialize a database object from json string.
Parameters:
Method Details
getCollectionsLink
public String getCollectionsLink()
Gets the self-link for collections in the database
Returns:
getUsersLink
public String getUsersLink()
Gets the self-link for users in the database.
Returns:
Applies to
Azure SDK for Java
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기