Class GeoPackageImpl

    • Constructor Detail

      • GeoPackageImpl

        protected GeoPackageImpl​(String name,
                                 File file,
                                 GeoPackageConnection database)
        Constructor
        Parameters:
        name - GeoPackage name
        file - GeoPackage file
        database - connection
      • GeoPackageImpl

        protected GeoPackageImpl​(String name,
                                 File file,
                                 GeoPackageConnection database,
                                 boolean writable)
        Constructor
        Parameters:
        name - GeoPackage name
        file - GeoPackage file
        database - connection
        writable - true if writable
        Since:
        6.3.1
      • GeoPackageImpl

        protected GeoPackageImpl​(String name,
                                 String path,
                                 GeoPackageConnection database)
        Constructor
        Parameters:
        name - GeoPackage name
        path - GeoPackage path
        database - connection
      • GeoPackageImpl

        protected GeoPackageImpl​(String name,
                                 String path,
                                 GeoPackageConnection database,
                                 boolean writable)
        Constructor
        Parameters:
        name - GeoPackage name
        path - GeoPackage path
        database - connection
        writable - true if writable
        Since:
        6.3.1
    • Method Detail

      • getFeatureDao

        public FeatureDao getFeatureDao​(GeometryColumns geometryColumns)
        Get a Feature DAO from Geometry Columns
        Specified by:
        getFeatureDao in interface GeoPackage
        Parameters:
        geometryColumns - geometry columns
        Returns:
        feature dao
      • getFeatureDao

        public FeatureDao getFeatureDao​(Contents contents)
        Get a Feature DAO from Contents
        Specified by:
        getFeatureDao in interface GeoPackage
        Parameters:
        contents - contents
        Returns:
        feature dao
      • getFeatureDao

        public FeatureDao getFeatureDao​(String tableName)
        Get a Feature DAO from a table name
        Specified by:
        getFeatureDao in interface GeoPackage
        Parameters:
        tableName - table name
        Returns:
        feature dao
      • getTileDao

        public TileDao getTileDao​(TileMatrixSet tileMatrixSet)
        Get a Tile DAO from Tile Matrix Set
        Specified by:
        getTileDao in interface GeoPackage
        Parameters:
        tileMatrixSet - tile matrix set
        Returns:
        tile dao
      • getTileDao

        public TileDao getTileDao​(Contents contents)
        Get a Tile DAO from Contents
        Specified by:
        getTileDao in interface GeoPackage
        Parameters:
        contents - contents
        Returns:
        tile dao
      • getTileDao

        public TileDao getTileDao​(TileTable table)
        Get a Tile DAO from a table
        Specified by:
        getTileDao in interface GeoPackage
        Parameters:
        table - tile table
        Returns:
        tile dao
      • getTileDao

        public TileDao getTileDao​(String tableName)
        Get a Tile DAO from a table name
        Specified by:
        getTileDao in interface GeoPackage
        Parameters:
        tableName - table name
        Returns:
        tile dao
      • getAttributesDao

        public AttributesDao getAttributesDao​(String tableName)
        Get an Attributes DAO from a table name
        Specified by:
        getAttributesDao in interface GeoPackage
        Parameters:
        tableName - table name
        Returns:
        attributes dao
      • getUserCustomDao

        public UserCustomDao getUserCustomDao​(String tableName)
        Get a User Custom DAO from a table name
        Specified by:
        getUserCustomDao in interface GeoPackage
        Parameters:
        tableName - table name
        Returns:
        user custom dao
      • getUserDao

        public UserDao<?,​?,​?,​?> getUserDao​(String tableName)
        Get a User DAO from a table
        Specified by:
        getUserDao in interface GeoPackage
        Parameters:
        tableName - table name
        Returns:
        user dao
      • query

        public ResultSet query​(String sql,
                               String[] args)
        Perform a query on the database
        Specified by:
        query in interface GeoPackage
        Parameters:
        sql - sql statement
        args - arguments
        Returns:
        result set
      • size

        public long size()
        Size of the database in bytes
        Specified by:
        size in interface GeoPackage
        Returns:
        bytes
      • readableSize

        public String readableSize()
        Get a readable version of the database size
        Specified by:
        readableSize in interface GeoPackage
        Returns:
        size
      • foreignKeyCheck

        public ResultSet foreignKeyCheck()
        Perform a foreign key check on the database
        Specified by:
        foreignKeyCheck in interface GeoPackage
        Returns:
        null if check passed, open result set with results if failed
      • foreignKeyCheck

        public ResultSet foreignKeyCheck​(String tableName)
        Perform a foreign key check on the database table
        Specified by:
        foreignKeyCheck in interface GeoPackage
        Parameters:
        tableName - table name
        Returns:
        null if check passed, open result set with results if failed
      • integrityCheck

        public ResultSet integrityCheck()
        Perform an integrity check on the database
        Specified by:
        integrityCheck in interface GeoPackage
        Returns:
        null if check passed, open result set with results if failed
      • quickCheck

        public ResultSet quickCheck()
        Perform a quick integrity check on the database
        Specified by:
        quickCheck in interface GeoPackage
        Returns:
        null if check passed, open result set with results if failed