Class SchemaTests

java.lang.Object
org.opengis.cite.gpkg12.CommonFixture
org.opengis.cite.gpkg12.extensions.schema.SchemaTests

public class SchemaTests extends CommonFixture
Defines test methods that apply to descriptive information about a GeoPackage's content as it pertains to the schema extension.

Sources

Author:
Jeff Yutzler
  • Constructor Details

    • SchemaTests

      public SchemaTests()
  • Method Details

    • activeExtension

      @BeforeClass public void activeExtension(org.testng.ITestContext testContext) throws SQLException
      Throws:
      SQLException
    • dataColumnsTableDefinition

      public void dataColumnsTableDefinition() throws SQLException
      A GeoPackage MAY contain a table or updateable view named gpkg_data_columns. If present it SHALL be defined per clause 2.3.2.1.1 Table Definition, Data Columns Table or View Definition and gpkg_data_columns Table Definition SQL.
      Throws:
      SQLException - If an SQL query causes an error
      See Also:
    • dataColumnsTableName

      public void dataColumnsTableName() throws SQLException
      Values of the gpkg_data_columns table table_name column value SHALL reference values in the gpkg_contents table_name column.
      Throws:
      SQLException - If an SQL query causes an error
      See Also:
    • dataColumnsColumnName

      public void dataColumnsColumnName() throws SQLException
      The `column_name` column value in a `gpkg_data_columns` table row SHALL contain the name of a column in the SQLite table or view identified by the `table_name` column value.
      Throws:
      SQLException - If an SQL query causes an error
      See Also:
    • dataColumnConstraintsTableDefinition

      public void dataColumnConstraintsTableDefinition() throws SQLException
      A GeoPackage MAY contain a table or updateable view named gpkg_data_column_constraints. If present it SHALL be defined per clause 2.3.3.1.1 Table Definition, Data Column Constraints Table or View Definition and gpkg_data_columns Table Definition SQL.
      Throws:
      SQLException - If an SQL query causes an error
      See Also:
    • dataColumnConstraintsType

      public void dataColumnConstraintsType() throws SQLException
      The gpkg_data_column_constraints table MAY be empty. If it contains data, the lowercase constraint_type column values SHALL be one of "range", "enum", or "glob".
      Throws:
      SQLException - If an SQL query causes an error
      See Also:
    • dataColumnConstraintsName

      public void dataColumnConstraintsName() throws SQLException
      gpkg_data_column_constraint constraint_name values for rows with constraint_type values of "range" and "glob" SHALL be unique.
      Throws:
      SQLException - If an SQL query causes an error
      See Also:
    • dataColumnConstraintsValue

      public void dataColumnConstraintsValue() throws SQLException
      The gpkg_data_column_constraints table MAY be empty. If it contains rows with constraint_type column values of "range", the value column values for those rows SHALL be NULL.
      Throws:
      SQLException - If an SQL query causes an error
      See Also:
    • dataColumnConstraintsMinMax

      public void dataColumnConstraintsMinMax() throws SQLException
      If the `gpkg_data_column_constraints` table contains rows with `constraint_type` column values of "range", the `min` column values for those rows SHALL be NOT NULL and less than the `max` column value which shall be NOT NULL.
      Throws:
      SQLException - If an SQL query causes an error
      See Also:
    • dataColumnConstraintsInclusive

      public void dataColumnConstraintsInclusive() throws SQLException
      If the `gpkg_data_column_constraints` table contains rows with `constraint_type` column values of "range", the `min_is_inclusive` and `max_is_inclusive` column values for those rows SHALL be 0 or 1.
      Throws:
      SQLException - If an SQL query causes an error
      See Also:
    • dataColumnConstraintsGlobMinMax

      public void dataColumnConstraintsGlobMinMax() throws SQLException
      If the `gpkg_data_column_constraints` table contains rows with `constraint_type` column values of "enum" or "glob", the `min`, `max`, `min_is_inclusive` and `max_is_inclusive` column values for those rows SHALL be NULL.
      Throws:
      SQLException - If an SQL query causes an error
      See Also:
    • dataColumnConstraintsGlobValue

      public void dataColumnConstraintsGlobValue() throws SQLException
      If the `gpkg_data_column_constraints` table contains rows with `constraint_type` column values of "enum" or "glob", the `value` column SHALL NOT be NULL.
      Throws:
      SQLException - If an SQL query causes an error
      See Also: