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

Sources

Author:
Jeff Yutzler
  • Field Summary

    Fields inherited from class org.opengis.cite.gpkg12.CommonFixture

    databaseConnection, dataSource, geopackageVersion, gpkgFile, ROOT_PKG_PATH
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    A GeoPackage that contains a row in the gpkg_extensions table for gpkgext_relations as described in Extensions Table Record SHALL comply with the Related Tables Extension as described by this document.
    void
    Each relation_name column in a gpkgext_relations row SHALL either match a relation_name from the Requirements Classes for User-Defined Related Data Tables in this or other OGC standards (e.g. media for [Media Requirement Class]), or be of the form x-{author}_{relation_name} where {author} indicates the person or organization that developed and maintains this set of User-Defined Related Tables.
    void
    A GeoPackage that contains a row in the gpkg_extensions table for gpkgext_relations SHALL contain at least one related table relationship.
    void
    A GeoPackage that complies with this extension SHALL contain a gpkgext_relations table as per Extended Relations Table Definition and Extended Relations Table Definition SQL (Normative).
    void
    For each row in gpkgext_relations, there SHALL be a table or view of the name referenced in base_table_name and that table or view SHALL have an entry in gpkg_contents.
    void
    For each row of a user-defined mapping table, the base_id column SHALL correlate to the primary key of the corresponding base table (as identified by the base_primary_column of the associated row in gpkgext_relations).
    void
    For each row of a user-defined mapping table, the related_id column SHALL correlate to the primary key of the corresponding related data table (as identified by the related_primary_column of the associated row in gpkgext_relations).
    void
    A user-defined mapping table or view SHALL contain all of the columns described in User-Defined Mapping Table Definition.

    Methods inherited from class org.opengis.cite.gpkg12.extensions.relatedtables.RTEBase

    activeExtension, testRelatedType, testRequirementsClassActive

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RTETests

      public RTETests()
  • Method Details

    • extensionsTableEntries

      public void extensionsTableEntries() throws SQLException
      A GeoPackage that contains a row in the gpkg_extensions table for gpkgext_relations as described in Extensions Table Record SHALL comply with the Related Tables Extension as described by this document.
      Throws:
      SQLException - On any SQL query error or test failure
      See Also:
    • relationsTableEntries

      public void relationsTableEntries() throws SQLException
      A GeoPackage that contains a row in the gpkg_extensions table for gpkgext_relations SHALL contain at least one related table relationship. A GeoPackage that complies with the Related Tables Extension SHALL contain rows in the gpkg_extensions table for each User Defined Mapping Table as described in Extensions Table Record.
      Throws:
      SQLException - On any SQL query error or test failure
      See Also:
    • relationsTableStructure

      public void relationsTableStructure() throws SQLException
      A GeoPackage that complies with this extension SHALL contain a gpkgext_relations table as per Extended Relations Table Definition and Extended Relations Table Definition SQL (Normative).
      Throws:
      SQLException - On any SQL query error or test failure
      See Also:
    • relationsTableValues

      public void relationsTableValues() throws SQLException
      For each row in gpkgext_relations, there SHALL be a table or view of the name referenced in base_table_name and that table or view SHALL have an entry in gpkg_contents. For each row in gpkgext_relations, there SHALL be a table or view of the name referenced in related_table_name and that table or view SHALL have an entry in gpkg_contents. For each row in gpkgext_relations, the mapping_table_name column SHALL contain the name of a user-defined mapping table or view as described by User-Defined Mapping Tables. Each relation_name column in a gpkgext_relations row SHALL either match a relation_name from the Requirements Classes for User-Defined Related Data Tables in this or other OGC standards (e.g. media for [Media Requirement Class]), or be of the form x-{author}_{relation_name} where {author} indicates the person or organization that developed and maintains this set of User-Defined Related Tables.
      Throws:
      SQLException - On any SQL query error or test failure
      See Also:
    • relationName

      public void relationName() throws SQLException
      Each relation_name column in a gpkgext_relations row SHALL either match a relation_name from the Requirements Classes for User-Defined Related Data Tables in this or other OGC standards (e.g. media for [Media Requirement Class]), or be of the form x-{author}_{relation_name} where {author} indicates the person or organization that developed and maintains this set of User-Defined Related Tables.
      Throws:
      SQLException - On any SQL query error or test failure
      See Also:
    • udmtTableStructure

      public void udmtTableStructure() throws SQLException
      A user-defined mapping table or view SHALL contain all of the columns described in User-Defined Mapping Table Definition.
      Throws:
      SQLException - On any SQL query error or test failure
      See Also:
    • udmtBaseIDs

      public void udmtBaseIDs() throws SQLException
      For each row of a user-defined mapping table, the base_id column SHALL correlate to the primary key of the corresponding base table (as identified by the base_primary_column of the associated row in gpkgext_relations).
      Throws:
      SQLException - On any SQL query error or test failure
      See Also:
    • udmtRelatedIDs

      public void udmtRelatedIDs() throws SQLException
      For each row of a user-defined mapping table, the related_id column SHALL correlate to the primary key of the corresponding related data table (as identified by the related_primary_column of the associated row in gpkgext_relations).
      Throws:
      SQLException - On any SQL query error or test failure
      See Also: