public class PostgisFeatureInputStream extends BaseFeatureInputStream
Constructor and Description |
---|
PostgisFeatureInputStream(java.sql.Connection conn,
java.lang.String queryString) |
PostgisFeatureInputStream(java.sql.Connection conn,
java.lang.String queryString,
java.lang.String externalIdentifier) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.sql.Connection |
getConnection() |
FeatureSchema |
getFeatureSchema() |
java.sql.Statement |
getStatement() |
protected Feature |
readNext()
Read the next feature, if any.
|
hasNext, next
public PostgisFeatureInputStream(java.sql.Connection conn, java.lang.String queryString)
public PostgisFeatureInputStream(java.sql.Connection conn, java.lang.String queryString, java.lang.String externalIdentifier)
public java.sql.Connection getConnection()
Connection
.public java.sql.Statement getStatement()
Statement
.
Useful to cancel the query on the server if the PlugIn is interruptedprotected Feature readNext() throws java.lang.Exception
BaseFeatureInputStream
readNext
in class BaseFeatureInputStream
null
if there is nonejava.lang.Exception
public void close() throws java.sql.SQLException
close
in interface FeatureInputStream
close
in class BaseFeatureInputStream
java.sql.SQLException
public FeatureSchema getFeatureSchema()
getFeatureSchema
in interface FeatureInputStream
getFeatureSchema
in class BaseFeatureInputStream