Class Database (2.24.1)

public class Database extends DatabaseInfo

Inheritance

java.lang.Object > DatabaseInfo > Database

Constructors

Database(DatabaseId arg0, DatabaseInfo.State arg1, DatabaseAdminClient arg2)

public Database(DatabaseId arg0, DatabaseInfo.State arg1, DatabaseAdminClient arg2)
Parameters
Name Description
arg0 DatabaseId
arg1 State
arg2 DatabaseAdminClient

Methods

backup(Backup arg0)

public OperationFuture<Backup,CreateBackupMetadata> backup(Backup arg0)
Parameter
Name Description
arg0 Backup
Returns
Type Description
OperationFuture<Backup,com.google.spanner.admin.database.v1.CreateBackupMetadata>

drop()

public void drop()
Exceptions
Type Description
SpannerException

exists()

public boolean exists()
Returns
Type Description
boolean

getDdl()

public Iterable<String> getDdl()
Returns
Type Description
Iterable<String>
Exceptions
Type Description
SpannerException

getIAMPolicy(int arg0)

public Policy getIAMPolicy(int arg0)
Parameter
Name Description
arg0 int
Returns
Type Description
com.google.cloud.Policy

listDatabaseOperations()

public Page<Operation> listDatabaseOperations()
Returns
Type Description
Page<Operation>

reload()

public Database reload()
Returns
Type Description
Database
Exceptions
Type Description
SpannerException

setIAMPolicy(Policy arg0)

public Policy setIAMPolicy(Policy arg0)
Parameter
Name Description
arg0 com.google.cloud.Policy
Returns
Type Description
com.google.cloud.Policy

testIAMPermissions(Iterable<String> arg0)

public Iterable<String> testIAMPermissions(Iterable<String> arg0)
Parameter
Name Description
arg0 Iterable<String>
Returns
Type Description
Iterable<String>

toProto()

public Database toProto()
Returns
Type Description
com.google.spanner.admin.database.v1.Database

updateDdl(Iterable<String> arg0, String arg1)

public OperationFuture<Void,UpdateDatabaseDdlMetadata> updateDdl(Iterable<String> arg0, String arg1)
Parameters
Name Description
arg0 Iterable<String>
arg1 String
Returns
Type Description
OperationFuture<Void,com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata>
Exceptions
Type Description
SpannerException