| java.lang.Object org.geotools.data.jdbc.JDBCFeatureWriter org.geotools.data.jdbc.JDBCTextFeatureWriter
All known Subclasses: org.geotools.data.mysql.MySQLFeatureWriter, org.geotools.data.postgis.PostgisFeatureWriter, org.geotools.data.geometryless.GeometrylessFeatureWriter, org.geotools.data.db2.DB2FeatureWriter, org.geotools.data.oracle.OracleFeatureWriter, org.geotools.data.hsql.HsqlFeatureWriter,
JDBCTextFeatureWriter | abstract public class JDBCTextFeatureWriter extends JDBCFeatureWriter (Code) | | 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.
author: Andrea Aime author: chorner version: $Id: JDBCTextFeatureWriter.java 27862 2007-11-12 19:51:19Z desruisseaux $ |
STATE_FAILURE | final int STATE_FAILURE(Code) | | indicates the lock attempt failed horribly
|
STATE_SUCCESS | final int STATE_SUCCESS(Code) | | indicates the lock attempt was successful
|
STATE_WAIT | final int STATE_WAIT(Code) | | indicates the lock attempt is in progress
|
addQuotes | protected String addQuotes(Object value)(Code) | | Adds quotes to an object for storage in postgis. The object should be a
string or a number. To perform an insert strings need quotes around
them, and numbers work fine with quotes, so this method can be called
on unknown objects.
Parameters: value - The object to add quotes to. a string representation of the object with quotes. |
encodeName | protected String encodeName(String tableName)(Code) | | Encodes the tableName, default is to do nothing, but postgis will
override and put double quotes around the tablename.
|
getGeometryInsertText | abstract protected String getGeometryInsertText(Geometry geom, int srid) throws IOException(Code) | | Turns a geometry into the textual version needed for the sql statement
Parameters: geom - Parameters: srid - |
makeInsertSql | protected String makeInsertSql(Feature feature) throws IOException(Code) | | Creates a sql insert statement. Uses each feature's schema, which makes
it possible to insert out of order, as well as inserting less than all
features.
Parameters: feature - the feature to add. an insert sql statement. throws: IOException - |
makeSelectForUpdateSql | protected String makeSelectForUpdateSql(Feature current)(Code) | | Generate the select for update statement, which will attempt to
lock features for update. This should be overwritten by databases
which want to take advantage of this method.
This method is called in a timer thread, to prevent blocking.
since: 2.2.0 Parameters: current - sql string or null |
|
|