org.geotools.data.jdbc
Class WKTAttributeReader

java.lang.Object
  extended byorg.geotools.data.AbstractAttributeIO
      extended byorg.geotools.data.jdbc.ResultSetAttributeReader
          extended byorg.geotools.data.jdbc.WKTAttributeReader

public class WKTAttributeReader
extends ResultSetAttributeReader

An attribute reader for well known text. For now this just reads well known text in result sets, but if there are other cases of wkt that are not in databases we can rethink or adapt this class to them.

Author:
Chris Holmes

Field Summary
 
Fields inherited from class org.geotools.data.jdbc.ResultSetAttributeReader
atts, connection, index, results, startColumn, transaction
 
Fields inherited from class org.geotools.data.AbstractAttributeIO
metaData
 
Constructor Summary
protected WKTAttributeReader(java.sql.ResultSet results, AttributeType[] attTypes, int startColumn, Transaction transaction, java.sql.Connection connection)
           
 
Method Summary
static WKTAttributeReader getGeometryReader(java.sql.ResultSet results, AttributeType attribute, int startCol, Transaction transaction)
           
static ResultSetAttributeReader getReader(java.sql.ResultSet results, AttributeType[] attributes, int startCol, Transaction transaction)
           
static ResultSetAttributeReader getReader(java.sql.ResultSet results, AttributeType attribute, int startCol, Transaction transaction)
           
protected  java.lang.Object readColumn(int column)
           
 
Methods inherited from class org.geotools.data.jdbc.ResultSetAttributeReader
close, hasNext, next, read
 
Methods inherited from class org.geotools.data.AbstractAttributeIO
copy, getAttributeCount, getAttributeType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WKTAttributeReader

protected WKTAttributeReader(java.sql.ResultSet results,
                             AttributeType[] attTypes,
                             int startColumn,
                             Transaction transaction,
                             java.sql.Connection connection)
Method Detail

readColumn

protected java.lang.Object readColumn(int column)
                               throws java.io.IOException
Overrides:
readColumn in class ResultSetAttributeReader
Throws:
java.io.IOException

getReader

public static ResultSetAttributeReader getReader(java.sql.ResultSet results,
                                                 AttributeType[] attributes,
                                                 int startCol,
                                                 Transaction transaction)
                                          throws DataSourceException
Throws:
DataSourceException

getReader

public static ResultSetAttributeReader getReader(java.sql.ResultSet results,
                                                 AttributeType attribute,
                                                 int startCol,
                                                 Transaction transaction)
                                          throws DataSourceException
Throws:
DataSourceException

getGeometryReader

public static WKTAttributeReader getGeometryReader(java.sql.ResultSet results,
                                                   AttributeType attribute,
                                                   int startCol,
                                                   Transaction transaction)
                                            throws DataSourceException
Throws:
DataSourceException


Copyright © 1996-2003 GeoTools. All Rights Reserved.