Class ExtensionsDao

    • Constructor Detail

    • Method Detail

      • create

        public static ExtensionsDao create​(GeoPackageCore geoPackage)
        Create the DAO
        Parameters:
        geoPackage - GeoPackage
        Returns:
        dao
        Since:
        4.0.0
      • deleteByExtension

        public int deleteByExtension​(String extensionName)
                              throws SQLException
        Delete by extension name
        Parameters:
        extensionName - extension name
        Returns:
        deleted count
        Throws:
        SQLException - upon failure
      • deleteByExtension

        public int deleteByExtension​(String extensionName,
                                     String tableName)
                              throws SQLException
        Delete by extension name and table name
        Parameters:
        extensionName - extension name
        tableName - table name
        Returns:
        deleted count
        Throws:
        SQLException - upon failure
      • deleteByExtension

        public int deleteByExtension​(String extensionName,
                                     String tableName,
                                     String columnName)
                              throws SQLException
        Delete by extension name, table name, and column name
        Parameters:
        extensionName - extension name
        tableName - table name
        columnName - column name
        Returns:
        deleted count
        Throws:
        SQLException - upon failure
      • deleteByTableName

        public int deleteByTableName​(String tableName)
                              throws SQLException
        Delete by table name
        Parameters:
        tableName - table name
        Returns:
        rows deleted
        Throws:
        SQLException - upon failure
        Since:
        1.1.8
      • deleteAll

        public int deleteAll()
                      throws SQLException
        Delete all extensions
        Returns:
        rows deleted
        Throws:
        SQLException - upon failure
        Since:
        1.1.8
      • queryByExtension

        public List<Extensions> queryByExtension​(String extensionName)
                                          throws SQLException
        Query by extension name
        Parameters:
        extensionName - extension name
        Returns:
        extensions
        Throws:
        SQLException - upon failure
      • queryByExtension

        public List<Extensions> queryByExtension​(String extensionName,
                                                 String tableName)
                                          throws SQLException
        Query by extension name and table name
        Parameters:
        extensionName - extension name
        tableName - table name
        Returns:
        extensions
        Throws:
        SQLException - upon failure
      • queryByExtension

        public Extensions queryByExtension​(String extensionName,
                                           String tableName,
                                           String columnName)
                                    throws SQLException
        Query by extension name, table name, and column name
        Parameters:
        extensionName - extension name
        tableName - table name
        columnName - column name
        Returns:
        extensions
        Throws:
        SQLException - upon failure