Class SchemaTests
java.lang.Object
org.opengis.cite.gpkg12.CommonFixture
org.opengis.cite.gpkg12.extensions.schema.SchemaTests
Defines test methods that apply to descriptive information about a GeoPackage's content
as it pertains to the schema extension.
Sources
- GeoPackage Encoding Standard - F.9. Schema (OGC 12-128r13)
- 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
activeExtension
(org.testng.ITestContext testContext) void
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.void
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.void
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.void
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.void
gpkg_data_column_constraint constraint_name values for rows with constraint_type values of "range" and "glob" SHALL be unique.void
A GeoPackage MAY contain a table or updateable view named gpkg_data_column_constraints.void
The gpkg_data_column_constraints table MAY be empty.void
The gpkg_data_column_constraints table MAY be empty.void
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.void
A GeoPackage MAY contain a table or updateable view named gpkg_data_columns.void
Values of the gpkg_data_columns table table_name column value SHALL reference values in the gpkg_contents table_name column.Methods inherited from class org.opengis.cite.gpkg12.CommonFixture
checkPrimaryKey, close, getGeopackageVersion, getPrimaryKeyColumn, getTestName, initCommonFixture, isExtendedType, setTestName, validateClassEnabled
-
Constructor Details
-
SchemaTests
public SchemaTests()
-
-
Method Details
-
activeExtension
- Throws:
SQLException
-
dataColumnsTableDefinition
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
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
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
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
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
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
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
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
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
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
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:
-