Database Class
- java.
lang. Object - com.
microsoft. azure. documentdb. JsonSerializable - com.
microsoft. azure. documentdb. Resource - com.
microsoft. azure. documentdb. Database
- com.
- com.
- com.
public final 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 | Description |
---|---|
Database() |
Initialize a database object. |
Database(String json |
Initialize a database object from json string. |
Database(JSONObject json |
Initialize a database object from json string. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
get Gets the self-link for collections in the database |
java.lang.String |
get Gets the self-link for users in the database. |
Methods inherited from JsonSerializable
Methods inherited from Resource
Database
public Database()
Initialize a database object.
Database
public Database(String jsonString)
Initialize a database object from json string.
Parameters:
Database
public Database(JSONObject jsonObject)
Initialize a database object from json string.
Parameters:
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:
Azure SDK for Java に関するフィードバック
Azure SDK for Java はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。