Class MetadataDao

    • Constructor Detail

    • Method Detail

      • create

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

        public int deleteCascade​(Metadata metadata)
                          throws SQLException
        Delete the Metadata, cascading
        Parameters:
        metadata - metadata
        Returns:
        deleted count
        Throws:
        SQLException - upon failure
      • deleteCascade

        public int deleteCascade​(Collection<Metadata> metadataCollection)
                          throws SQLException
        Delete the collection of Metadata, cascading
        Parameters:
        metadataCollection - metadata collection
        Returns:
        deleted count
        Throws:
        SQLException - upon failure
      • deleteCascade

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

        public int deleteByIdCascade​(Long id)
                              throws SQLException
        Delete a Metadata by id, cascading
        Parameters:
        id - id
        Returns:
        deleted count
        Throws:
        SQLException - upon failure
      • deleteIdsCascade

        public int deleteIdsCascade​(Collection<Long> idCollection)
                             throws SQLException
        Delete the Metadata with the provided ids, cascading
        Parameters:
        idCollection - id collection
        Returns:
        deleted count
        Throws:
        SQLException - upon failure