public abstract class GeometryJdbcConverter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.locationtech.jts.geom.GeometryFactory |
gf |
protected org.locationtech.jts.io.WKTReader |
wkt |
| Constructor and Description |
|---|
GeometryJdbcConverter() |
| Modifier and Type | Method and Description |
|---|---|
abstract StringBuilder |
buildLimitSql(StringBuilder sql,
int limit) |
abstract String |
buildPaginationSql(String sql,
int offset,
int limit) |
abstract org.locationtech.jts.geom.Geometry |
convertToJTSGeometryObject(Object nativeObj) |
abstract Object |
convertToNativeGeometryObject(org.locationtech.jts.geom.Geometry param) |
abstract Object |
convertToNativeGeometryObject(org.locationtech.jts.geom.Geometry param,
int srid) |
Object |
convertToNativeGeometryObject(String param) |
static Object |
convertToSQLObject(String stringValue,
ColumnMetadata cm,
String tableName,
String column) |
Object |
createNativePoint(double lat,
double lon,
int srid) |
abstract String |
createPSGeometryPlaceholder() |
abstract String |
getGeomTypeName() |
abstract String |
getGeotoolsDBTypeName() |
abstract String |
getMViewRefreshSQL(String mview) |
abstract String |
getMViewsSQL() |
abstract String |
getSchema() |
abstract String |
getSelectNextValueFromSequenceSQL(String seqName)
get the database flavour specific SQL statement to get the next value from a sequence.
|
String |
getUpdateSequenceSQL(String seqName,
long nextVal)
Gets a statement to use in a
PreparedStatement to restart a sequence. |
abstract boolean |
isDuplicateKeyViolationMessage(String message) |
abstract boolean |
isFKConstraintViolationMessage(String message)
bepaal of een melding een contraint violation betreft.
|
abstract boolean |
isPmdKnownBroken() |
abstract boolean |
useSavepoints() |
protected org.locationtech.jts.geom.GeometryFactory gf
protected final org.locationtech.jts.io.WKTReader wkt
public static Object convertToSQLObject(String stringValue, ColumnMetadata cm, String tableName, String column)
public abstract Object convertToNativeGeometryObject(org.locationtech.jts.geom.Geometry param) throws SQLException, org.locationtech.jts.io.ParseException
SQLExceptionorg.locationtech.jts.io.ParseExceptionpublic abstract Object convertToNativeGeometryObject(org.locationtech.jts.geom.Geometry param, int srid) throws SQLException, org.locationtech.jts.io.ParseException
SQLExceptionorg.locationtech.jts.io.ParseExceptionpublic abstract org.locationtech.jts.geom.Geometry convertToJTSGeometryObject(Object nativeObj)
public abstract String createPSGeometryPlaceholder() throws SQLException
SQLExceptionpublic abstract String getSchema()
public abstract String getGeomTypeName()
public abstract boolean isDuplicateKeyViolationMessage(String message)
public abstract boolean isFKConstraintViolationMessage(String message)
message - de melding uit de databasetrue als de melding een contraint violation betreftpublic abstract StringBuilder buildLimitSql(StringBuilder sql, int limit)
public abstract boolean useSavepoints()
public abstract boolean isPmdKnownBroken()
public abstract String getMViewsSQL()
public String getUpdateSequenceSQL(String seqName, long nextVal)
PreparedStatement to restart a sequence.seqName - name of sequencenextVal - the value to restart the sequence, some systems
require this to be larger than the next value of the sequence.public abstract String getSelectNextValueFromSequenceSQL(String seqName)
seqName - name of sequencepublic abstract String getGeotoolsDBTypeName()
public Object convertToNativeGeometryObject(String param) throws org.locationtech.jts.io.ParseException, SQLException
org.locationtech.jts.io.ParseExceptionSQLExceptionpublic Object createNativePoint(double lat, double lon, int srid) throws SQLException, org.locationtech.jts.io.ParseException
SQLExceptionorg.locationtech.jts.io.ParseExceptionCopyright © 2020 B3Partners B.V.. All rights reserved.