Uses of Class
com.google.cloud.spanner.DatabaseId
-
Packages that use DatabaseId Package Description com.google.cloud.spanner A client for Cloud Spanner - A no-compromise relational database service.com.google.cloud.spanner.connection Internal API for Google Cloud Spanner. -
-
Uses of DatabaseId in com.google.cloud.spanner
Fields in com.google.cloud.spanner declared as DatabaseId Modifier and Type Field Description protected DatabaseIdDatabaseInfo.BuilderImpl. idMethods in com.google.cloud.spanner that return DatabaseId Modifier and Type Method Description DatabaseIdBackupInfo. getDatabase()Returns the id of the database that was used to create the backup.DatabaseIdRestore. getDestination()DatabaseIdDatabaseInfo. getId()Returns the database id.DatabaseIdRestoreInfo. getSourceDatabase()The source database that was used to create the backup.static DatabaseIdDatabaseId. of(InstanceId instanceId, String database)Creates aDatabaseIdgiven the instance identity and database id.static DatabaseIdDatabaseId. of(String name)Creates aDatabaseIdfrom the name of the database.static DatabaseIdDatabaseId. of(String project, String instance, String database)Creates aDatabaseIdgiven project, instance and database IDs.Methods in com.google.cloud.spanner with parameters of type DatabaseId Modifier and Type Method Description BatchClientSpanner. getBatchClient(DatabaseId db)Returns aBatchClientto do batch operations on Cloud Spanner databases.DatabaseClientSpanner. getDatabaseClient(DatabaseId db)Returns aDatabaseClientfor the given database.ExecuteSqlRequest.QueryOptionsSpannerOptions. getDefaultQueryOptions(DatabaseId databaseId)Returns the default query options to use for the specific database.Database.BuilderDatabaseAdminClient. newDatabaseBuilder(DatabaseId id)Returns a builder for aDatabaseobject with the given id.Restore.BuilderDatabaseAdminClient. newRestoreBuilder(BackupId source, DatabaseId destination)Returns a builder for aRestoreobject with the given source and destinationcom.google.api.gax.longrunning.OperationFuture<Database,RestoreDatabaseMetadata>Backup. restore(DatabaseId database)Restores this backup to the specified database.abstract BackupInfo.BuilderBackupInfo.Builder. setDatabase(DatabaseId database)Required for creating a new backup.SpannerOptions.BuilderSpannerOptions.Builder. setDefaultQueryOptions(DatabaseId database, ExecuteSqlRequest.QueryOptions defaultQueryOptions)Sets the defaultExecuteSqlRequest.QueryOptionsthat will be used for all queries on the specified database.Constructors in com.google.cloud.spanner with parameters of type DatabaseId Constructor Description Builder(BackupId source, DatabaseId destination)Database(DatabaseId id, DatabaseInfo.State state, DatabaseAdminClient dbClient)DatabaseInfo(DatabaseId id, DatabaseInfo.State state) -
Uses of DatabaseId in com.google.cloud.spanner.connection
Methods in com.google.cloud.spanner.connection that return DatabaseId Modifier and Type Method Description DatabaseIdConnectionOptions. getDatabaseId()The SpannerDatabaseIdthat thisConnectionOptionswill connect to
-