org.geotools.data.hsql
Class HsqlFeatureWriter

java.lang.Object
  extended byorg.geotools.data.jdbc.JDBCFeatureWriter
      extended byorg.geotools.data.jdbc.JDBCTextFeatureWriter
          extended byorg.geotools.data.hsql.HsqlFeatureWriter
All Implemented Interfaces:
FeatureWriter

public class HsqlFeatureWriter
extends JDBCTextFeatureWriter

Feature writer handling specific geometric function from HSQL This essentially adds the DB in a box wrappers around various HSQL queries make them work.

Author:
Amr Alam, Refractions Research

Field Summary
 
Fields inherited from class org.geotools.data.jdbc.JDBCFeatureWriter
closed, current, fidAttributes, listenerManager, live, queryData, reader
 
Constructor Summary
HsqlFeatureWriter(FeatureReader fReader, QueryData queryData)
          Creates a new instance of HsqlFeatureWriter
 
Method Summary
protected  java.lang.String getGeometryInsertText(com.vividsolutions.jts.geom.Geometry geom, int srid)
          Turns a geometry into the textual version needed for the sql statement
 
Methods inherited from class org.geotools.data.jdbc.JDBCTextFeatureWriter
addQuotes, doInsert, doUpdate, encodeColumnName, encodeName, makeDeleteSql, makeInsertSql, makeUpdateSql, remove, useQueryDataForInsert
 
Methods inherited from class org.geotools.data.jdbc.JDBCFeatureWriter
close, getFeatureType, hasNext, next, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HsqlFeatureWriter

public HsqlFeatureWriter(FeatureReader fReader,
                         QueryData queryData)
                  throws java.io.IOException
Creates a new instance of HsqlFeatureWriter

Parameters:
fReader -
queryData -
Throws:
java.io.IOException
Method Detail

getGeometryInsertText

protected java.lang.String getGeometryInsertText(com.vividsolutions.jts.geom.Geometry geom,
                                                 int srid)
Description copied from class: JDBCTextFeatureWriter
Turns a geometry into the textual version needed for the sql statement

Specified by:
getGeometryInsertText in class JDBCTextFeatureWriter
Parameters:
geom -
srid -
Returns:
See Also:
JDBCTextFeatureWriter.getGeometryInsertText(com.vividsolutions.jts.geom.Geometry, int)


Copyright © GeoTools. All Rights Reserved.