private void validateRelationship ( String baseTableName , String relatedTableName , RelationType relationType ) { if ( relationType != null ) { if ( ! geoPackage . isTableType ( relationType . getDataType ( ) , relatedTableName ) ) { throw new GeoPackageException ( "The related table must be a " + relationType . getDataType ( ) + " table. Related Table: " + relatedTableName + ", Type: " + geoPackage . getTableType ( relatedTableName ) ) ; } } }
Determine if the relation type is valid between the base and related table