Interface DataStoreMetadata

All Known Implementing Classes:
H2DSMetadata, MariadbDSMetadata, OracleDSMetadata, PostgisDSMetadata, SpatialDatabasesDSMetadata, SpatialiteDSMetadata

public interface DataStoreMetadata
Metadata about the datasets in the database
  • Method Details

    • getDatasetNames

      String[] getDatasetNames()
      list all tables
      Returns:
      an array of dataset names for this DataStore
    • getGeometryAttributes

      List<GeometryColumn> getGeometryAttributes(String datasetName)
    • getPrimaryKeyColumns

      List<PrimaryKeyColumn> getPrimaryKeyColumns(String datasetName) throws SQLException
      Returns columns of this dataset involved in the Primary Key. (added on 2013-08-07)
      Parameters:
      datasetName - the table name (optionally prefixed by a schema name)
      Returns:
      the list of columns to be used as a PrimaryKey
      Throws:
      SQLException - if the server throws an Exception during Primary Key retrieval
    • getExtents

      org.locationtech.jts.geom.Envelope getExtents(String datasetName, String attributeName)
      Parameters:
      datasetName - table name (optionally prefixed by a schema name)
      attributeName - column containing the Geometry
      Returns:
      May be null if the extents cannot be determined
    • getSRID

      SpatialReferenceSystemID getSRID(String datasetName, String colName) throws SQLException
      Get the SRID of a table's (geometry) column
      Parameters:
      datasetName - the dataset name
      colName - the column name
      Returns:
      the SpatialReferenceSystemID for this column
      Throws:
      SQLException - if the server throws an Exception during SRID retrieval
    • getColumnNames

      String[] getColumnNames(String datasetName)
      list columns of a table
      Parameters:
      datasetName - name of the table or dataset
      Returns:
      the names of this dataset columns
    • getDataStoreConnection

      DataStoreConnection getDataStoreConnection()
      DataSoreConnection used by these metadata
      Returns:
      a DataStoreConnection