|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.jdbc.SQLDialect
org.geotools.jdbc.BasicSQLDialect
public abstract class BasicSQLDialect
Field Summary |
---|
Fields inherited from class org.geotools.jdbc.SQLDialect |
---|
BASE_DBMS_CAPABILITIES, dataStore, LOGGER |
Constructor Summary | |
---|---|
protected |
BasicSQLDialect(JDBCDataStore dataStore)
|
Method Summary | |
---|---|
FilterToSQL |
createFilterToSQL()
Creates the filter encoder to be used by the datastore when encoding query predicates. |
abstract void |
encodeGeometryValue(com.vividsolutions.jts.geom.Geometry value,
int srid,
java.lang.StringBuffer sql)
Encodes a geometry value in an sql statement. |
void |
encodeValue(java.lang.Object value,
java.lang.Class type,
java.lang.StringBuffer sql)
Encodes a value in an sql statement. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected BasicSQLDialect(JDBCDataStore dataStore)
Method Detail |
---|
public void encodeValue(java.lang.Object value, java.lang.Class type, java.lang.StringBuffer sql)
Subclasses may wish to override or extend this method to handle specific types. This default implementation does the following:
Object.toString()
representation.
CharSequence
),
it is wrapped in single quotes (').
public abstract void encodeGeometryValue(com.vividsolutions.jts.geom.Geometry value, int srid, java.lang.StringBuffer sql) throws java.io.IOException
An implementations should serialize value into some exchange format which will then be transported to the underlying database. For example, consider an implementation which converts a geometry into its well known text representation:
sql.append( "GeomFromText('" );
sql.append( new WKTWriter().write( value ) );
sql.append( ")" );
The srid parameter is the spatial reference system identifier of the geometry, or 0 if not known.
java.io.IOException
public FilterToSQL createFilterToSQL()
Sublcasses can override this method to return a subclass of FilterToSQL
if need be.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |