|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.jdbc.ResultSetFIDReader
FIDReader for JDBC. Assumes that the column being passed in is a number, as the typeName is always appended on. This is because id's must start with a letter or an underscore. If needed we could only append the typeName if the column is an int.
Jody with an update - I test if it is a number, if it starts with letter or underscore I use it as is
Constructor Summary | |
ResultSetFIDReader(JDBCDataStore.QueryData queryData,
java.lang.String typename,
int column)
Constructor that takes a QueryData object instead of a ResultSet. |
|
ResultSetFIDReader(java.sql.ResultSet results,
java.lang.String typeName,
int column)
Constructor, for a continuous array of result columns. |
Method Summary | |
void |
close()
Release any resources associated with this reader |
boolean |
hasNext()
Returns whether another fid exists for this reader. |
java.lang.String |
next()
Gets the next FID from the Reader. |
void |
queryDataClosed(JDBCDataStore.QueryData queryData)
|
void |
rowDeleted(JDBCDataStore.QueryData queryData)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResultSetFIDReader(java.sql.ResultSet results, java.lang.String typeName, int column)
results
- The ResultSet to read attribute from.typeName
- The typename to append.column
- the offset at which the fid column is.
Starts at 1, corresponding to the java ResultSet way of doing things.public ResultSetFIDReader(JDBCDataStore.QueryData queryData, java.lang.String typename, int column)
queryData
- The queryData objecttypename
- The typename to preppend.column
- the offset at which the fid column is.
Starts at 1, corresponding to the java ResultSet way of doing things.Method Detail |
public boolean hasNext() throws java.io.IOException
FIDReader
hasNext
in interface FIDReader
true
if more content exists
java.io.IOException
public java.lang.String next() throws java.io.IOException
FIDReader
next
in interface FIDReader
java.io.IOException
public void close() throws java.io.IOException
FIDReader
close
in interface FIDReader
java.io.IOException
public void queryDataClosed(JDBCDataStore.QueryData queryData)
queryDataClosed
in interface QueryDataListener
public void rowDeleted(JDBCDataStore.QueryData queryData)
rowDeleted
in interface QueryDataListener
queryData
- QueryDataListener.rowDeleted(org.geotools.data.jdbc.JDBCDataStore.QueryData)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |