|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.jdbc.QueryData
public class QueryData
QueryData holds the ResultSet obtained from the sql query and has the following responsibilities:
Field Summary | |
---|---|
protected AttributeIO[] |
attributeHandlers
Deprecated. |
protected int |
baseIndex
Deprecated. |
protected java.sql.Connection |
connection
Deprecated. |
protected FeatureTypeInfo |
featureTypeInfo
Deprecated. |
protected java.lang.Object[] |
fidAttributes
Deprecated. |
protected Hints |
hints
Deprecated. |
protected FeatureListenerManager |
listenerManager
Deprecated. |
protected static java.util.logging.Logger |
LOGGER
Deprecated. The logger for the data module. |
protected FIDMapper |
mapper
Deprecated. |
protected java.sql.ResultSet |
resultSet
Deprecated. |
protected java.sql.Statement |
statement
Deprecated. |
protected Transaction |
transaction
Deprecated. |
Constructor Summary | |
---|---|
QueryData(FeatureTypeInfo featureTypeInfo,
JDBC1DataStore parentDataStore,
java.sql.Connection connection,
java.sql.Statement statement,
java.sql.ResultSet resultSet,
Transaction transaction)
Deprecated. Creates a new QueryData object. |
|
QueryData(FeatureTypeInfo featureTypeInfo,
JDBC1DataStore parentDataStore,
java.sql.Connection connection,
java.sql.Statement statement,
java.sql.ResultSet resultSet,
Transaction transaction,
Hints hints)
Deprecated. Creates a new QueryData object. |
Method Summary | |
---|---|
void |
close()
Deprecated. Release any resources associated with this reader |
void |
close(java.sql.SQLException sqlException)
Deprecated. Closes the JDBC objects associated to the queryData and reports the sqlException on the LOG |
void |
deleteCurrentRow()
Deprecated. Deletes the current record in the result set |
void |
doInsert()
Deprecated. Insert a record in the current result set |
protected void |
finalize()
Deprecated. |
void |
fireChangeRemoved(ReferencedEnvelope bounds,
boolean isCommit)
Deprecated. Call after deleteCurrentRow() |
void |
fireFeaturesAdded(ReferencedEnvelope bounds,
boolean isCommit)
Deprecated. Call after doUpdate |
void |
fireFeaturesChanged(ReferencedEnvelope bounds,
boolean isCommit)
Deprecated. Call after updateRow |
int |
getAttributeCount()
Deprecated. The number of attributes this reader can read, i.e the length of a row. |
AttributeIO[] |
getAttributeHandlers()
Deprecated. Returns the AttributeIO objects used to parse and encode the column values stored in the database |
org.opengis.feature.type.AttributeDescriptor |
getAttributeType(int index)
Deprecated. Retrieve the AttributeType at the given index. |
java.sql.Connection |
getConnection()
Deprecated. DOCUMENT ME! |
org.opengis.feature.simple.SimpleFeatureType |
getFeatureType()
Deprecated. Returns the current feature type |
FeatureTypeInfo |
getFeatureTypeInfo()
Deprecated. DOCUMENT ME! |
Hints |
getHints()
Deprecated. |
FeatureListenerManager |
getListenerManager()
Deprecated. |
FIDMapper |
getMapper()
Deprecated. Returns the FID mapper to be used when reading/writing features |
Transaction |
getTransaction()
Deprecated. Returns the current transation |
boolean |
hasNext()
Deprecated. Does another set of attributes exist in this reader? |
boolean |
isClosed()
Deprecated. |
void |
next()
Deprecated. Advance the reader to the next set of attributes. |
java.lang.Object |
read(int index)
Deprecated. Read the attribute at the given index. |
java.lang.Object |
readFidColumn(int index)
Deprecated. Reads a column of the primary key |
void |
startInsert()
Deprecated. Moves the result set to the insert row. |
void |
updateRow()
Deprecated. Update the current record |
void |
write(int i,
java.lang.Object currAtt)
Deprecated. Write the given attribute value at the position indicated. |
void |
writeFidColumn(int index,
java.lang.Object value)
Deprecated. Writes a column of the primary key |
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 java.lang.Object[] fidAttributes
protected FeatureTypeInfo featureTypeInfo
protected java.sql.ResultSet resultSet
protected java.sql.Connection connection
protected Transaction transaction
protected java.sql.Statement statement
protected FIDMapper mapper
protected AttributeIO[] attributeHandlers
protected int baseIndex
protected FeatureListenerManager listenerManager
protected Hints hints
Constructor Detail |
---|
public QueryData(FeatureTypeInfo featureTypeInfo, JDBC1DataStore parentDataStore, java.sql.Connection connection, java.sql.Statement statement, java.sql.ResultSet resultSet, Transaction transaction) throws java.io.IOException
featureTypeInfo
- parentDataStore
- connection
- statement
- resultSet
- transaction
-
java.io.IOException
public QueryData(FeatureTypeInfo featureTypeInfo, JDBC1DataStore parentDataStore, java.sql.Connection connection, java.sql.Statement statement, java.sql.ResultSet resultSet, Transaction transaction, Hints hints) throws java.io.IOException
featureTypeInfo
- parentDataStore
- connection
- statement
- resultSet
- transaction
-
java.io.IOException
Method Detail |
---|
public int getAttributeCount()
AttributeReader
getAttributeCount
in interface AttributeReader
getAttributeCount
in interface AttributeWriter
AttributeWriter.getAttributeCount()
public AttributeIO[] getAttributeHandlers()
public java.sql.Connection getConnection()
public FIDMapper getMapper()
public Transaction getTransaction()
public void close()
AttributeReader
close
in interface AttributeReader
close
in interface AttributeWriter
AttributeWriter.close()
public void close(java.sql.SQLException sqlException)
sqlException
- public java.lang.Object read(int index) throws java.io.IOException, java.lang.ArrayIndexOutOfBoundsException
AttributeReader
read
in interface AttributeReader
java.io.IOException
java.lang.ArrayIndexOutOfBoundsException
AttributeReader.read(int)
public void write(int i, java.lang.Object currAtt) throws java.io.IOException
AttributeWriter
write
in interface AttributeWriter
java.io.IOException
AttributeWriter.write(int, java.lang.Object)
public java.lang.Object readFidColumn(int index) throws java.io.IOException
index
- the column index among the primary key columns (as reported by the FIDMapper)
java.io.IOException
DataSourceException
public void writeFidColumn(int index, java.lang.Object value) throws java.io.IOException
index
- the FID column index among the primary key columns (as reported by the FIDMapper)value
- the column value
java.io.IOException
DataSourceException
public org.opengis.feature.simple.SimpleFeatureType getFeatureType()
public void startInsert() throws java.sql.SQLException
java.sql.SQLException
public void deleteCurrentRow() throws java.sql.SQLException
java.sql.SQLException
public void updateRow() throws java.sql.SQLException
java.sql.SQLException
public void doInsert() throws java.sql.SQLException
java.sql.SQLException
public FeatureTypeInfo getFeatureTypeInfo()
public boolean isClosed()
public void next() throws java.io.IOException
AttributeReader
next
in interface AttributeReader
next
in interface AttributeWriter
java.io.IOException
AttributeWriter.next()
public boolean hasNext() throws java.io.IOException
AttributeReader
hasNext
in interface AttributeReader
hasNext
in interface AttributeWriter
true
if additional content exists for
AttributeReader
java.io.IOException
AttributeWriter.hasNext()
public org.opengis.feature.type.AttributeDescriptor getAttributeType(int index) throws java.lang.ArrayIndexOutOfBoundsException
AttributeReader
getAttributeType
in interface AttributeReader
getAttributeType
in interface AttributeWriter
java.lang.ArrayIndexOutOfBoundsException
AttributeReader.getAttributeType(int)
public FeatureListenerManager getListenerManager()
public void fireChangeRemoved(ReferencedEnvelope bounds, boolean isCommit)
public void fireFeaturesChanged(ReferencedEnvelope bounds, boolean isCommit)
public void fireFeaturesAdded(ReferencedEnvelope bounds, boolean isCommit)
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public Hints getHints()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |