org.geotools.data.db2
Class DB2FeatureWriter

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

public class DB2FeatureWriter
extends JDBCTextFeatureWriter

DOCUMENT ME!

Author:
David Adler - IBM Corporation

Field Summary
 
Fields inherited from class org.geotools.data.jdbc.JDBCFeatureWriter
closed, current, fidAttributes, listenerManager, live, queryData, reader
 
Constructor Summary
DB2FeatureWriter(FeatureReader reader, QueryData queryData, DB2SQLBuilder sqlBuilder)
          DOCUMENT ME!
 
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
protected  boolean isTypeNumeric(int columnType)
          Checks if column type is numeric
protected  java.lang.String makeDeleteSql(Feature feature)
          Generates the query for the sql delete statement
 
Methods inherited from class org.geotools.data.jdbc.JDBCTextFeatureWriter
addQuotes, doInsert, doUpdate, encodeColumnName, encodeName, 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

DB2FeatureWriter

public DB2FeatureWriter(FeatureReader reader,
                        QueryData queryData,
                        DB2SQLBuilder sqlBuilder)
                 throws java.io.IOException
DOCUMENT ME!

Parameters:
reader -
queryData -
sqlBuilder - DOCUMENT ME!
Throws:
java.io.IOException
Method Detail

getGeometryInsertText

protected java.lang.String getGeometryInsertText(com.vividsolutions.jts.geom.Geometry geom,
                                                 int srid)
                                          throws java.io.IOException
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:
Throws:
java.io.IOException

makeDeleteSql

protected java.lang.String makeDeleteSql(Feature feature)
                                  throws java.io.IOException
Generates the query for the sql delete statement

Overrides:
makeDeleteSql in class JDBCTextFeatureWriter
Parameters:
feature -
Returns:
Throws:
java.io.IOException
java.lang.UnsupportedOperationException - DOCUMENT ME!

isTypeNumeric

protected boolean isTypeNumeric(int columnType)
Checks if column type is numeric

Parameters:
columnType -
Returns:
numeric


Copyright © GeoTools. All Rights Reserved.