org.geotools.data.jdbc.attributeio
Interface AttributeIO

All Known Implementing Classes:
BasicAttributeIO, EWKTAttributeIO, PgWKBAttributeIO, SDOAttributeIO, WKBAttributeIO, WKTAttributeIO

Deprecated. scheduled for removal in 2.7, use classes in org.geotools.jdbc

public interface AttributeIO

Attribute reader/writer. Classes implementing this interface know how to parse and encode Feature attributes into resultset fields

Author:
wolf

Method Summary
 java.lang.Object read(java.sql.ResultSet rs, int position)
          Deprecated. Reads a feature attribute out of a ResultSet
 void write(java.sql.PreparedStatement ps, int position, java.lang.Object value)
          Deprecated. Writes a feature attribute into a PreparedStatement
 void write(java.sql.ResultSet rs, int position, java.lang.Object value)
          Deprecated. Writes a feature attribute into a ResultSet
 

Method Detail

read

java.lang.Object read(java.sql.ResultSet rs,
                      int position)
                      throws java.io.IOException
Deprecated. 
Reads a feature attribute out of a ResultSet

Parameters:
rs - - the resultset to be read
position - - the position of the attribute in the resultset
Returns:
The parsed attribute
Throws:
java.io.IOException - - if some exception occurs while reading the attribute

write

void write(java.sql.ResultSet rs,
           int position,
           java.lang.Object value)
           throws java.io.IOException
Deprecated. 
Writes a feature attribute into a ResultSet

Parameters:
rs - - the result set to be modified
position - - the position in which the attribute will inserted into the result set
value - - the attribute that will be written into the resultset
Throws:
java.io.IOException - - if some exception occurs while writing the attribute

write

void write(java.sql.PreparedStatement ps,
           int position,
           java.lang.Object value)
           throws java.io.IOException
Deprecated. 
Writes a feature attribute into a PreparedStatement

Parameters:
ps - - the result set to be modified
position - - the position in which the attribute will inserted into the result set
value - - the attribute that will be written into the resultset
Throws:
java.io.IOException - - if some exception occurs while writing the attribute


Copyright © 1996-2010 Geotools. All Rights Reserved.