org.geotools.data.db2
Class DB2FeatureWriter
java.lang.Object
org.geotools.data.jdbc.JDBCFeatureWriter
org.geotools.data.jdbc.JDBCTextFeatureWriter
org.geotools.data.db2.DB2FeatureWriter
- All Implemented Interfaces:
- FeatureWriter
- public class DB2FeatureWriter
- extends JDBCTextFeatureWriter
DOCUMENT ME!
- Author:
- David Adler - IBM Corporation
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.