Class TableIndexDao

    • Constructor Detail

      • TableIndexDao

        public TableIndexDao​(ConnectionSource connectionSource,
                             Class<TableIndex> dataClass)
                      throws SQLException
        Constructor, required by ORMLite
        Parameters:
        connectionSource - connection source
        dataClass - data class
        Throws:
        SQLException - upon creation failure
    • Method Detail

      • create

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

        public int deleteCascade​(TableIndex tableIndex)
                          throws SQLException
        Delete the TableIndex, cascading
        Parameters:
        tableIndex - table index
        Returns:
        rows deleted
        Throws:
        SQLException - upon deletion error
      • deleteCascade

        public int deleteCascade​(Collection<TableIndex> tableIndexCollection)
                          throws SQLException
        Delete the collection of TableIndex, cascading
        Parameters:
        tableIndexCollection - table index collection
        Returns:
        rows deleted
        Throws:
        SQLException - upon deletion failure
      • deleteCascade

        public int deleteCascade​(PreparedQuery<TableIndex> preparedDelete)
                          throws SQLException
        Delete the TableIndex matching the prepared query, cascading
        Parameters:
        preparedDelete - prepared query
        Returns:
        rows deleted
        Throws:
        SQLException - upon deletion failure
      • deleteByIdCascade

        public int deleteByIdCascade​(String id)
                              throws SQLException
        Delete a TableIndex by id, cascading
        Parameters:
        id - id
        Returns:
        rows deleted
        Throws:
        SQLException - upon deletion failure
      • deleteIdsCascade

        public int deleteIdsCascade​(Collection<String> idCollection)
                             throws SQLException
        Delete the TableIndex with the provided ids, cascading
        Parameters:
        idCollection - id collection
        Returns:
        rows deleted
        Throws:
        SQLException - upon deletion failure
      • deleteTable

        public void deleteTable​(String table)
        Delete the table
        Parameters:
        table - table name
      • deleteAllCascade

        public int deleteAllCascade()
                             throws SQLException
        Delete all table indices, cascading to geometry indices
        Returns:
        rows deleted
        Throws:
        SQLException - upon deletion failure
        Since:
        1.1.5
      • deleteAll

        public int deleteAll()
                      throws SQLException
        Delete all table indices
        Returns:
        rows deleted
        Throws:
        SQLException - upon deletion failure
        Since:
        1.1.5