org.geotools.data.db2
Class DB2WKBAttributeIO

Object
  extended by DB2WKBAttributeIO
All Implemented Interfaces:
AttributeIO

public class DB2WKBAttributeIO
extends Object
implements AttributeIO

Support DB2 geometries using WKB

Author:
David Adler - IBM Corporation
Module:
modules/plugin/db2 (gt-db2.jar)

Constructor Summary
DB2WKBAttributeIO()
           
 
Method Summary
 Object read(ResultSet rs, int position)
          Reads a feature attribute out of a ResultSet
 void write(PreparedStatement ps, int position, Object value)
          Writes a feature attribute into a PreparedStatement
 void write(ResultSet rs, int position, Object value)
          Writes a feature attribute into a ResultSet
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DB2WKBAttributeIO

public DB2WKBAttributeIO()
Method Detail

read

public Object read(ResultSet rs,
                   int position)
            throws IOException
Description copied from interface: AttributeIO
Reads a feature attribute out of a ResultSet

Specified by:
read in interface AttributeIO
Parameters:
rs - - the resultset to be read
position - - the position of the attribute in the resultset
Returns:
The parsed attribute
Throws:
IOException - - if some exception occurs while reading the attribute

write

public void write(PreparedStatement ps,
                  int position,
                  Object value)
           throws IOException
Description copied from interface: AttributeIO
Writes a feature attribute into a PreparedStatement

Specified by:
write in interface AttributeIO
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:
IOException - - if some exception occurs while writing the attribute

write

public void write(ResultSet rs,
                  int position,
                  Object value)
           throws IOException
Description copied from interface: AttributeIO
Writes a feature attribute into a ResultSet

Specified by:
write in interface AttributeIO
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:
IOException - - if some exception occurs while writing the attribute


Copyright © 1996-2009 Geotools. All Rights Reserved.