### YamlMime:JavaType
uid: "com.microsoft.azure.documentdb.Database"
fullName: "com.microsoft.azure.documentdb.Database"
name: "Database"
nameWithType: "Database"
summary: "Represents a Database in the Azure Cosmos DB database service."
inheritances:
- ""
- ""
- ""
inheritedClassMethods:
- classRef: ""
methodsRef:
- "getCollection(java.lang.String,java.lang.Class)?alt=com.microsoft.azure.documentdb.JsonSerializable.getCollection&text=getCollection\" data-throw-if-not-resolved=\"False\" />"
- "getObject(java.lang.String,java.lang.Class)?alt=com.microsoft.azure.documentdb.JsonSerializable.getObject&text=getObject\" data-throw-if-not-resolved=\"False\" />"
- "set(java.lang.String,T)?alt=com.microsoft.azure.documentdb.JsonSerializable.set&text=set\" data-throw-if-not-resolved=\"False\" />"
- "toObject(java.lang.Class)?alt=com.microsoft.azure.documentdb.JsonSerializable.toObject&text=toObject\" data-throw-if-not-resolved=\"False\" />"
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ")?alt=com.microsoft.azure.documentdb.JsonSerializable.getObjectByPath&text=getObjectByPath\" data-throw-if-not-resolved=\"False\" />"
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- classRef: ""
methodsRef:
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- classRef: ""
methodsRef:
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
syntax: "public final class **Database** extends "
constructors:
- uid: "com.microsoft.azure.documentdb.Database.Database()"
fullName: "com.microsoft.azure.documentdb.Database.Database()"
name: "Database()"
nameWithType: "Database.Database()"
summary: "Initialize a database object."
syntax: "public Database()"
desc: "Initialize a database object."
- uid: "com.microsoft.azure.documentdb.Database.Database(java.lang.String)"
fullName: "com.microsoft.azure.documentdb.Database.Database(String jsonString)"
name: "Database(String jsonString)"
nameWithType: "Database.Database(String jsonString)"
summary: "Initialize a database object from json string."
parameters:
- description: "the json string."
name: "jsonString"
type: ""
syntax: "public Database(String jsonString)"
desc: "Initialize a database object from json string."
- uid: "com.microsoft.azure.documentdb.Database.Database(org.json.JSONObject)"
fullName: "com.microsoft.azure.documentdb.Database.Database(JSONObject jsonObject)"
name: "Database(JSONObject jsonObject)"
nameWithType: "Database.Database(JSONObject jsonObject)"
summary: "Initialize a database object from json string."
parameters:
- description: "the json object."
name: "jsonObject"
type: ""
syntax: "public Database(JSONObject jsonObject)"
desc: "Initialize a database object from json string."
methods:
- uid: "com.microsoft.azure.documentdb.Database.getCollectionsLink()"
fullName: "com.microsoft.azure.documentdb.Database.getCollectionsLink()"
name: "getCollectionsLink()"
nameWithType: "Database.getCollectionsLink()"
summary: "Gets the self-link for collections in the database"
syntax: "public String getCollectionsLink()"
desc: "Gets the self-link for collections in the database"
returns:
description: "the collections link."
type: ""
- uid: "com.microsoft.azure.documentdb.Database.getUsersLink()"
fullName: "com.microsoft.azure.documentdb.Database.getUsersLink()"
name: "getUsersLink()"
nameWithType: "Database.getUsersLink()"
summary: "Gets the self-link for users in the database."
syntax: "public String getUsersLink()"
desc: "Gets the self-link for users in the database."
returns:
description: "the users link."
type: ""
type: "class"
desc: "Represents a Database in the Azure Cosmos DB database service. A database manages users, permissions and a set of collections\n\nEach 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."
metadata: {}
package: "com.microsoft.azure.documentdb"
artifact: com.microsoft.azure:azure-documentdb:2.4.7