Class DatabaseInfo

  • Direct Known Subclasses:
    Database

    public class DatabaseInfo
    extends Object
    Represents a Cloud Spanner database.
    • Method Detail

      • getId

        public DatabaseId getId()
        Returns the database id.
      • getCreateTime

        public com.google.cloud.Timestamp getCreateTime()
        Returns the creation time of the database.
      • getVersionRetentionPeriod

        public String getVersionRetentionPeriod()
        Returns the version retention period of the database. This is the period for which Cloud Spanner retains all versions of data for the database. For instance, if set to 3 days, Cloud Spanner will retain data versions that are up to 3 days old.
      • getEarliestVersionTime

        public com.google.cloud.Timestamp getEarliestVersionTime()
        Returns the earliest version time of the database. This is the oldest timestamp that can be used to read old versions of the data.
      • getDefaultLeader

        @Nullable
        public String getDefaultLeader()
        The read-write region which contains the database's leader replicas. If this value was not explicitly set during a create database or update database ddl operations, it will be NULL.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object