Interface DataStoreMetadata
-
- All Known Implementing Classes:
H2DSMetadata,MariadbDSMetadata,OracleDSMetadata,PostgisDSMetadata,SpatialDatabasesDSMetadata,SpatialiteDSMetadata
public interface DataStoreMetadataMetadata about the datasets in the database
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String[]getColumnNames(String datasetName)list columns of a tableString[]getDatasetNames()list all tablesDataStoreConnectiongetDataStoreConnection()DataSoreConnection used by these metadataorg.locationtech.jts.geom.EnvelopegetExtents(String datasetName, String attributeName)List<GeometryColumn>getGeometryAttributes(String datasetName)List<PrimaryKeyColumn>getPrimaryKeyColumns(String datasetName)Returns columns of this dataset involved in the Primary Key.SpatialReferenceSystemIDgetSRID(String datasetName, String colName)Get the SRID of a table's (geometry) column
-
-
-
Method Detail
-
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 namecolName- 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
-
-