|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.jdbc.JDBCFeatureWriter
org.geotools.data.jdbc.JDBCTextFeatureWriter
public abstract class JDBCTextFeatureWriter
An abstract class that uses sql statements to insert, update and delete features from the database. Useful when the resultset got from the database is not updatable, for example.
Field Summary | |
---|---|
protected FIDMapper |
mapper
Deprecated. |
Fields inherited from class org.geotools.data.jdbc.JDBCFeatureWriter |
---|
closed, current, fidAttributes, live, queryData, reader |
Constructor Summary | |
---|---|
JDBCTextFeatureWriter(FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> fReader,
QueryData queryData)
Deprecated. Creates a new instance of JDBCFeatureWriter |
Method Summary | |
---|---|
protected java.lang.String |
addQuotes(java.lang.Object value)
Deprecated. Adds quotes to an object for storage in postgis. |
protected void |
doInsert(MutableFIDFeature current)
Deprecated. Override that uses sql statements to perform the operation. |
protected void |
doUpdate(org.opengis.feature.simple.SimpleFeature live,
org.opengis.feature.simple.SimpleFeature current)
Deprecated. Override that uses sql statements to perform the operation. |
protected abstract java.lang.String |
getGeometryInsertText(com.vividsolutions.jts.geom.Geometry geom,
int srid)
Deprecated. Turns a geometry into the textual version needed for the sql statement |
protected java.lang.String |
getGeometryInsertText(com.vividsolutions.jts.geom.Geometry geom,
int srid,
int dimension)
Deprecated. Turns a geometry into the textual version needed for the sql statement |
protected java.lang.String |
makeDeleteSql(org.opengis.feature.simple.SimpleFeature feature)
Deprecated. Generates the query for the sql delete statement |
protected java.lang.String |
makeInsertSql(org.opengis.feature.simple.SimpleFeature feature)
Deprecated. Creates a sql insert statement. |
protected java.lang.String |
makeSelectForUpdateSql(org.opengis.feature.simple.SimpleFeature current)
Deprecated. Generate the select for update statement, which will attempt to lock features for update. |
protected java.lang.String |
makeUpdateSql(org.opengis.feature.simple.SimpleFeature live,
org.opengis.feature.simple.SimpleFeature current)
Deprecated. Generate the update sql statement |
void |
remove()
Deprecated. Override that uses sql statements to perform the operation. |
protected boolean |
useQueryDataForInsert()
Deprecated. This version does not use QueryData udpate/insert/remove methods, but uses separate queries instead |
Methods inherited from class org.geotools.data.jdbc.JDBCFeatureWriter |
---|
close, encodeColumnName, encodeName, getFeatureType, hasNext, next, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected FIDMapper mapper
Constructor Detail |
---|
public JDBCTextFeatureWriter(FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> fReader, QueryData queryData) throws java.io.IOException
fReader
- queryData
-
java.io.IOException
Method Detail |
---|
protected void doInsert(MutableFIDFeature current) throws java.io.IOException, java.sql.SQLException
doInsert
in class JDBCFeatureWriter
java.io.IOException
java.sql.SQLException
JDBCFeatureWriter.doInsert(org.geotools.data.jdbc.MutableFIDFeature)
protected java.lang.String makeInsertSql(org.opengis.feature.simple.SimpleFeature feature) throws java.io.IOException
feature
- the feature to add.
java.io.IOException
protected java.lang.String addQuotes(java.lang.Object value)
value
- The object to add quotes to.
protected abstract java.lang.String getGeometryInsertText(com.vividsolutions.jts.geom.Geometry geom, int srid) throws java.io.IOException
geom
- srid
-
java.io.IOException
protected java.lang.String getGeometryInsertText(com.vividsolutions.jts.geom.Geometry geom, int srid, int dimension) throws java.io.IOException
geom
- srid
- dimension
-
java.io.IOException
public void remove() throws java.io.IOException
remove
in interface FeatureWriter<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
remove
in class JDBCFeatureWriter
java.io.IOException
- DOCUMENT ME!FeatureWriter.remove()
protected java.lang.String makeDeleteSql(org.opengis.feature.simple.SimpleFeature feature) throws java.io.IOException
feature
-
java.io.IOException
protected void doUpdate(org.opengis.feature.simple.SimpleFeature live, org.opengis.feature.simple.SimpleFeature current) throws java.io.IOException, java.sql.SQLException
doUpdate
in class JDBCFeatureWriter
java.io.IOException
java.sql.SQLException
org.geotools.data.jdbc.JDBCFeatureWriter#doUpdate(org.geotools.feature.Feature,
org.geotools.feature.Feature)
protected java.lang.String makeSelectForUpdateSql(org.opengis.feature.simple.SimpleFeature current)
current
-
protected java.lang.String makeUpdateSql(org.opengis.feature.simple.SimpleFeature live, org.opengis.feature.simple.SimpleFeature current) throws java.io.IOException
live
- current
-
java.io.IOException
protected boolean useQueryDataForInsert()
useQueryDataForInsert
in class JDBCFeatureWriter
JDBCFeatureWriter.useQueryDataForInsert()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |