Class Schema

  • All Implemented Interfaces:
    Streamable

    public class Schema
    extends Object
    implements Streamable
    Represents the top-level database schema, as declared via Room @Entity-, @DatabaseView-, and @Database-annotated classes, and as emitted by the Room annotation processor in a JSON schema file. The structure of this class maps to the top-level object shown in the documentation of the Parser class.
    • Constructor Detail

      • Schema

        public Schema()
    • Method Detail

      • getDatabase

        public Database getDatabase()
        Returns the single Database instance of the schema, mapping to the database element of the JSON schema file.
      • setDatabase

        public void setDatabase​(Database database)
        Sets the value of the Database instance, as read from the JSON schema file.
        Parameters:
        database -