Class GeoPkgSchemaExtension


  • public class GeoPkgSchemaExtension
    extends GeoPkgExtension
    The geopackage schema extension, allowing to declare more information about columns and eventually express constraints on them
    • 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