org.geotools.data.geometryless.attributeio
Class BBOXAttributeIO

java.lang.Object
  extended byorg.geotools.data.geometryless.attributeio.BBOXAttributeIO
All Implemented Interfaces:
AttributeIO

public class BBOXAttributeIO
extends java.lang.Object
implements AttributeIO

WARNING - this may mess up if the geometry is not the last attribute in the schema. Some one please test this and remove this/fix it.

This is a very specific AttributeIO to deal with a bounding box from four minx, miny, maxx, maxy columns. This probably should be generalized, into a more generic scheme to map multiple columns into one object, either geometry or non-geometry columns. Hopefully we can revisit this relatively soon.

Version:
$Id: BBOXAttributeIO.java 17700 2006-01-22 23:30:39Z desruisseaux $
Author:
Rob Atkinson, Social Change Online, Chris Holmes, TOPP

Constructor Summary
BBOXAttributeIO()
           
 
Method Summary
 java.lang.Object read(java.sql.ResultSet rs, int position)
          Reads a feature attribute out of a ResultSet
 void write(java.sql.PreparedStatement ps, int position, java.lang.Object value)
          NOT YET IMPLEMENTED!!!
 void write(java.sql.ResultSet rs, int position, java.lang.Object value)
          NOT YET IMPLEMENTED!!!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BBOXAttributeIO

public BBOXAttributeIO()
Method Detail

read

public java.lang.Object read(java.sql.ResultSet rs,
                             int position)
                      throws java.io.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:
java.io.IOException - - if some exception occurs while reading the attribute
See Also:
AttributeIO.read(java.sql.ResultSet, int)

write

public void write(java.sql.ResultSet rs,
                  int position,
                  java.lang.Object value)
           throws java.io.IOException
NOT YET IMPLEMENTED!!! (though probably shouldn't be too hard.

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:
java.io.IOException - - if some exception occurs while writing the attribute
See Also:
AttributeIO.write(java.sql.ResultSet, int, java.lang.Object)

write

public void write(java.sql.PreparedStatement ps,
                  int position,
                  java.lang.Object value)
           throws java.io.IOException
NOT YET IMPLEMENTED!!!

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:
java.io.IOException - - if some exception occurs while writing the attribute
See Also:
AttributeIO.write(java.sql.PreparedStatement, int, java.lang.Object)


Copyright © GeoTools. All Rights Reserved.