Class Database (2.15.5)

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
NameDescription
arg0DatabaseId
arg1State
arg2DatabaseAdminClient

Methods

backup(Backup arg0)

public OperationFuture<Backup,CreateBackupMetadata> backup(Backup arg0)
Parameter
NameDescription
arg0Backup
Returns
TypeDescription
OperationFuture<Backup,com.google.spanner.admin.database.v1.CreateBackupMetadata>

drop()

public void drop()
Exceptions
TypeDescription
SpannerException

exists()

public boolean exists()
Returns
TypeDescription
boolean

getDdl()

public Iterable<String> getDdl()
Returns
TypeDescription
Iterable<String>
Exceptions
TypeDescription
SpannerException

getIAMPolicy(int arg0)

public Policy getIAMPolicy(int arg0)
Parameter
NameDescription
arg0int
Returns
TypeDescription
com.google.cloud.Policy

listDatabaseOperations()

public Page<Operation> listDatabaseOperations()
Returns
TypeDescription
Page<Operation>

reload()

public Database reload()
Returns
TypeDescription
Database
Exceptions
TypeDescription
SpannerException

setIAMPolicy(Policy arg0)

public Policy setIAMPolicy(Policy arg0)
Parameter
NameDescription
arg0com.google.cloud.Policy
Returns
TypeDescription
com.google.cloud.Policy

testIAMPermissions(Iterable<String> arg0)

public Iterable<String> testIAMPermissions(Iterable<String> arg0)
Parameter
NameDescription
arg0Iterable<String>
Returns
TypeDescription
Iterable<String>

toProto()

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

updateDdl(Iterable<String> arg0, String arg1)

public OperationFuture<Void,UpdateDatabaseDdlMetadata> updateDdl(Iterable<String> arg0, String arg1)
Parameters
NameDescription
arg0Iterable<String>
arg1String
Returns
TypeDescription
OperationFuture<Void,com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata>
Exceptions
TypeDescription
SpannerException