|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.jdbc.JDBCFeatureReader
public class JDBCFeatureReader
Reader for jdbc datastore
Nested Class Summary | |
---|---|
protected class |
JDBCFeatureReader.ResultSetFeature
Feature wrapper around a result set. |
Field Summary | |
---|---|
protected SimpleFeatureBuilder |
builder
feature builder |
protected java.lang.String[] |
columnNames
|
protected java.sql.Connection |
cx
|
protected JDBCDataStore |
dataStore
the datastore |
protected JDBCFeatureSource |
featureSource
The feature source the reader originated from. |
protected org.opengis.feature.simple.SimpleFeatureType |
featureType
schema of features |
protected com.vividsolutions.jts.geom.GeometryFactory |
geometryFactory
geometry factory used to create geometry objects |
protected Hints |
hints
hints |
protected static java.util.logging.Logger |
LOGGER
|
protected java.lang.Boolean |
next
flag indicating if the iterator has another feature |
protected PrimaryKey |
pkey
The primary key |
protected java.sql.ResultSet |
rs
|
protected java.sql.Statement |
st
statement,result set that is being worked from. |
protected static java.lang.Boolean |
TRACE_ENABLED
When true, the stack trace that created a reader that wasn't closed is recorded and then printed out when warning the user about this. |
protected java.lang.Exception |
tracer
|
protected Transaction |
tx
current transaction |
Constructor Summary | |
---|---|
JDBCFeatureReader(JDBCFeatureReader other)
|
|
JDBCFeatureReader(java.sql.PreparedStatement st,
java.sql.Connection cx,
JDBCFeatureSource featureSource,
org.opengis.feature.simple.SimpleFeatureType featureType,
Hints hints)
|
|
JDBCFeatureReader(java.lang.String sql,
java.sql.Connection cx,
JDBCFeatureSource featureSource,
org.opengis.feature.simple.SimpleFeatureType featureType,
Hints hints)
|
Method Summary | |
---|---|
protected void |
cleanup()
Cleans up the reader state without closing the accessory resultset, statement and connection. |
void |
close()
Release the underlying resources associated with this stream. |
protected void |
ensureNext()
|
protected void |
ensureOpen()
|
protected void |
finalize()
|
org.opengis.feature.simple.SimpleFeatureType |
getFeatureType()
Return the FeatureType this reader has been configured to create. |
boolean |
hasNext()
Query whether this FeatureReader has another Feature. |
protected void |
init(JDBCFeatureSource featureSource,
org.opengis.feature.simple.SimpleFeatureType featureType,
Hints hints)
|
org.opengis.feature.simple.SimpleFeature |
next()
Reads the next Feature in the FeatureReader. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.util.logging.Logger LOGGER
protected static final java.lang.Boolean TRACE_ENABLED
protected JDBCFeatureSource featureSource
protected JDBCDataStore dataStore
protected org.opengis.feature.simple.SimpleFeatureType featureType
protected com.vividsolutions.jts.geom.GeometryFactory geometryFactory
protected Hints hints
protected Transaction tx
protected java.lang.Boolean next
protected SimpleFeatureBuilder builder
protected PrimaryKey pkey
protected java.sql.Statement st
protected java.sql.ResultSet rs
protected java.sql.Connection cx
protected java.lang.Exception tracer
protected java.lang.String[] columnNames
Constructor Detail |
---|
public JDBCFeatureReader(java.lang.String sql, java.sql.Connection cx, JDBCFeatureSource featureSource, org.opengis.feature.simple.SimpleFeatureType featureType, Hints hints) throws java.sql.SQLException
java.sql.SQLException
public JDBCFeatureReader(java.sql.PreparedStatement st, java.sql.Connection cx, JDBCFeatureSource featureSource, org.opengis.feature.simple.SimpleFeatureType featureType, Hints hints) throws java.sql.SQLException
java.sql.SQLException
public JDBCFeatureReader(JDBCFeatureReader other)
Method Detail |
---|
protected void init(JDBCFeatureSource featureSource, org.opengis.feature.simple.SimpleFeatureType featureType, Hints hints)
public org.opengis.feature.simple.SimpleFeatureType getFeatureType()
FeatureReader
getFeatureType
in interface FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
public boolean hasNext() throws java.io.IOException
FeatureReader
hasNext
in interface FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
java.io.IOException
- If an error occurs determining if there are more
Features.protected void ensureNext()
protected void ensureOpen() throws java.io.IOException
java.io.IOException
public org.opengis.feature.simple.SimpleFeature next() throws java.io.IOException, java.lang.IllegalArgumentException, java.util.NoSuchElementException
FeatureReader
next
in interface FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
java.io.IOException
- If an error occurs reading the Feature.
java.util.NoSuchElementException
- If there are no more Features in the
Reader.
java.lang.IllegalArgumentException
public void close() throws java.io.IOException
FeatureReader
close
in interface FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
java.io.IOException
- DOCUMENT ME!protected void cleanup()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |