com.vividsolutions.jump.datastore.postgis
Class PostgisDSConnection

java.lang.Object
  extended by com.vividsolutions.jump.datastore.postgis.PostgisDSConnection
All Implemented Interfaces:
DataStoreConnection

public class PostgisDSConnection
extends java.lang.Object
implements DataStoreConnection


Constructor Summary
PostgisDSConnection(java.sql.Connection conn)
           
 
Method Summary
 void close()
           
 FeatureInputStream execute(Query query)
           
 FeatureInputStream executeAdhocQuery(AdhocQuery query)
           
 FeatureInputStream executeFilterQuery(FilterQuery query)
          Executes a filter query.
 java.sql.Connection getConnection()
           
 DataStoreMetadata getMetadata()
           
 boolean isClosed()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostgisDSConnection

public PostgisDSConnection(java.sql.Connection conn)
Method Detail

getConnection

public java.sql.Connection getConnection()

getMetadata

public DataStoreMetadata getMetadata()
Specified by:
getMetadata in interface DataStoreConnection

execute

public FeatureInputStream execute(Query query)
Specified by:
execute in interface DataStoreConnection

executeFilterQuery

public FeatureInputStream executeFilterQuery(FilterQuery query)
                                      throws java.sql.SQLException
Executes a filter query. The SRID is optional for queries - it will be determined automatically from the table metadata if not supplied.

Parameters:
query - the query to execute
Returns:
the results of the query
Throws:
java.sql.SQLException

executeAdhocQuery

public FeatureInputStream executeAdhocQuery(AdhocQuery query)

close

public void close()
           throws DataStoreException
Specified by:
close in interface DataStoreConnection
Throws:
DataStoreException

isClosed

public boolean isClosed()
                 throws DataStoreException
Specified by:
isClosed in interface DataStoreConnection
Throws:
DataStoreException