Interface DataStoreConnection
-
- All Known Implementing Classes:
H2DSConnection
,MariadbDSConnection
,OracleDSConnection
,PostgisDSConnection
,SpatialDatabasesDSConnection
,SpatialiteDSConnection
public interface DataStoreConnection
A connection to a database datastore which can executeQuery
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
FeatureInputStream
execute(Query query)
run a queryConnection
getJdbcConnection()
expose underlying JDBC connectionDataStoreMetadata
getMetadata()
retrieve metadata describing the database's datasets (column names etc.)SpatialDatabasesSQLBuilder
getSqlBuilder(SpatialReferenceSystemID srid, String[] colNames)
expose sqlbuilderboolean
isClosed()
-
-
-
Method Detail
-
getMetadata
DataStoreMetadata getMetadata()
retrieve metadata describing the database's datasets (column names etc.)- Returns:
- the DataStoreMetadata
-
getJdbcConnection
Connection getJdbcConnection()
expose underlying JDBC connection- Returns:
- the Connection
-
getSqlBuilder
SpatialDatabasesSQLBuilder getSqlBuilder(SpatialReferenceSystemID srid, String[] colNames)
expose sqlbuilder- Parameters:
srid
- the SpatialReferenceSystemIDcolNames
- array of columns to query- Returns:
- the SpatialDatabasesSQLBuilder
-
execute
FeatureInputStream execute(Query query) throws Exception
run a query
-
close
void close() throws DataStoreException
- Throws:
DataStoreException
-
isClosed
boolean isClosed() throws DataStoreException
- Throws:
DataStoreException
-
-