Package org.geotools.geopkg
Class GeoPkgSchemaExtension
- Object
-
- GeoPkgExtension
-
- GeoPkgSchemaExtension
-
public class GeoPkgSchemaExtension extends GeoPkgExtension
The geopackage schema extension, allowing to declare more information about columns and eventually express constraints on them
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GeoPkgSchemaExtension.Factory
-
Nested classes/interfaces inherited from class GeoPkgExtension
GeoPkgExtension.Association, GeoPkgExtension.Scope
-
-
Field Summary
-
Fields inherited from class GeoPkgExtension
definition, geoPackage, name, scope
-
-
Constructor Summary
Constructors Constructor Description GeoPkgSchemaExtension(GeoPackage geoPackage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConstraint(Connection cx, DataColumnConstraint constraint)
void
addConstraint(DataColumnConstraint constraint)
void
addDataColumn(String tableName, DataColumn dataColumn)
DataColumnConstraint
getConstraint(String contraintName)
Returns the constraint by name, or sets to null if missingList<DataColumn>
getDataColumns(String tableName)
-
Methods inherited from class GeoPkgExtension
getAssociations, getConnection, getDefinition, getGeneratedKey, getName, getScope, isRegistered, isRegistered
-
-
-
-
Constructor Detail
-
GeoPkgSchemaExtension
public GeoPkgSchemaExtension(GeoPackage geoPackage)
-
-
Method Detail
-
getDataColumns
public List<DataColumn> getDataColumns(String tableName) throws IOException
- Throws:
IOException
-
getConstraint
public DataColumnConstraint getConstraint(String contraintName) throws IOException
Returns the constraint by name, or sets to null if missing- Parameters:
contraintName
-- Returns:
- Throws:
IOException
-
addDataColumn
public void addDataColumn(String tableName, DataColumn dataColumn) throws IOException
- Throws:
IOException
-
addConstraint
public void addConstraint(DataColumnConstraint constraint) throws SQLException
- Throws:
SQLException
-
addConstraint
public void addConstraint(Connection cx, DataColumnConstraint constraint) throws SQLException
- Throws:
SQLException
-
-