Class RTETests
java.lang.Object
org.opengis.cite.gpkg12.CommonFixture
org.opengis.cite.gpkg12.extensions.relatedtables.RTEBase
org.opengis.cite.gpkg12.extensions.relatedtables.RTETests
Defines test methods that apply to descriptive information about a GeoPackage's content
as it pertains to the schema extension.
Sources
- GeoPackage Related Tables Extension (OGC 18-000)
- Author:
- Jeff Yutzler
-
Field Summary
Fields inherited from class org.opengis.cite.gpkg12.CommonFixture
databaseConnection, dataSource, geopackageVersion, gpkgFile, ROOT_PKG_PATH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 org.opengis.cite.gpkg12.CommonFixture
checkPrimaryKey, close, getGeopackageVersion, getPrimaryKeyColumn, getTestName, initCommonFixture, isExtendedType, setTestName, validateClassEnabled
-
Constructor Details
-
RTETests
public RTETests()
-
-
Method Details
-
extensionsTableEntries
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
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
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
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
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
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
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
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:
-