org.geotools.data.db2
Class DB2FeatureWriter
Object
JDBCFeatureWriter
JDBCTextFeatureWriter
DB2FeatureWriter
- All Implemented Interfaces:
- FeatureWriter<SimpleFeatureType,SimpleFeature>
public class DB2FeatureWriter
- extends JDBCTextFeatureWriter
DOCUMENT ME!
- Author:
- David Adler - IBM Corporation
- Module:
modules/plugin/db2 (gt-db2.jar)
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DB2FeatureWriter
public DB2FeatureWriter(FeatureReader<SimpleFeatureType,SimpleFeature> reader,
QueryData queryData,
DB2SQLBuilder sqlBuilder)
throws IOException
- DOCUMENT ME!
- Parameters:
reader
- queryData
- sqlBuilder
- DOCUMENT ME!
- Throws:
IOException
makeDeleteSql
protected String makeDeleteSql(SimpleFeature feature)
throws IOException
- Generates the SQL delete statement
- Overrides:
makeDeleteSql
in class JDBCTextFeatureWriter
- Parameters:
feature
-
- Returns:
- DB2 DELETE statement
- Throws:
IOException
UnsupportedOperationException
makeInsertSql
protected String makeInsertSql(SimpleFeature feature)
throws IOException
- Generates the SQL UPDATE statement.
- Overrides:
makeInsertSql
in class JDBCTextFeatureWriter
- Parameters:
feature
- the feature to insert.
- Returns:
- DB2 INSERT statement
- Throws:
IOException
makeUpdateSql
protected String makeUpdateSql(SimpleFeature live,
SimpleFeature current)
throws IOException
- Generates the SQL UPDATE statement
- Overrides:
makeUpdateSql
in class JDBCTextFeatureWriter
- Parameters:
feature
-
- Returns:
- DB2 UPDATE statement
- Throws:
IOException
UnsupportedOperationException
getGeometryInsertText
protected String getGeometryInsertText(Geometry geom,
int srid)
throws IOException
- Description copied from class:
JDBCTextFeatureWriter
- Turns a geometry into the textual version needed for the sql statement
- Specified by:
getGeometryInsertText
in class JDBCTextFeatureWriter
- Throws:
IOException
Copyright © 1996-2009 Geotools. All Rights Reserved.