Package nl.b3p.jdbc.util.converter
Class HSQLJdbcConverter
java.lang.Object
nl.b3p.jdbc.util.converter.GeometryJdbcConverter
nl.b3p.jdbc.util.converter.HSQLJdbcConverter
- Author:
- Meine Toonen meinetoonen@b3partners.nl
-
Field Summary
Fields inherited from class nl.b3p.jdbc.util.converter.GeometryJdbcConverter
gf, wkt
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildLimitSql
(StringBuilder sql, int limit) buildPaginationSql
(String sql, int offset, int limit) org.locationtech.jts.geom.Geometry
convertToJTSGeometryObject
(Object nativeObj) convertToNativeGeometryObject
(org.locationtech.jts.geom.Geometry param) convertToNativeGeometryObject
(org.locationtech.jts.geom.Geometry param, int srid) getMViewRefreshSQL
(String mview) getSelectNextValueFromSequenceSQL
(String seqName) get the database flavour specific SQL statement to get the next value from a sequence.boolean
isDuplicateKeyViolationMessage
(String message) boolean
isFKConstraintViolationMessage
(String message) bepaal of een melding een constraint violation betreft.boolean
boolean
Methods inherited from class nl.b3p.jdbc.util.converter.GeometryJdbcConverter
convertToNativeGeometryObject, convertToSQLObject, createNativePoint, createPSGeometryPlaceholder, getUpdateSequenceSQL
-
Field Details
-
LOG
protected static final org.apache.commons.logging.Log LOG
-
-
Constructor Details
-
HSQLJdbcConverter
public HSQLJdbcConverter()
-
-
Method Details
-
convertToNativeGeometryObject
public Object convertToNativeGeometryObject(org.locationtech.jts.geom.Geometry param) throws SQLException, org.locationtech.jts.io.ParseException - Specified by:
convertToNativeGeometryObject
in classGeometryJdbcConverter
- Throws:
SQLException
org.locationtech.jts.io.ParseException
-
getGeomTypeName
- Specified by:
getGeomTypeName
in classGeometryJdbcConverter
-
convertToJTSGeometryObject
- Specified by:
convertToJTSGeometryObject
in classGeometryJdbcConverter
-
isPmdKnownBroken
public boolean isPmdKnownBroken()- Specified by:
isPmdKnownBroken
in classGeometryJdbcConverter
-
getSchema
- Specified by:
getSchema
in classGeometryJdbcConverter
-
isDuplicateKeyViolationMessage
- Specified by:
isDuplicateKeyViolationMessage
in classGeometryJdbcConverter
-
isFKConstraintViolationMessage
Description copied from class:GeometryJdbcConverter
bepaal of een melding een constraint violation betreft.- Specified by:
isFKConstraintViolationMessage
in classGeometryJdbcConverter
- Parameters:
message
- de melding uit de database- Returns:
true
als de melding een contraint violation betreft
-
buildPaginationSql
- Specified by:
buildPaginationSql
in classGeometryJdbcConverter
-
buildLimitSql
- Specified by:
buildLimitSql
in classGeometryJdbcConverter
-
useSavepoints
public boolean useSavepoints()- Specified by:
useSavepoints
in classGeometryJdbcConverter
-
getMViewsSQL
- Specified by:
getMViewsSQL
in classGeometryJdbcConverter
-
getMViewRefreshSQL
- Specified by:
getMViewRefreshSQL
in classGeometryJdbcConverter
-
getSelectNextValueFromSequenceSQL
Description copied from class:GeometryJdbcConverter
get the database flavour specific SQL statement to get the next value from a sequence.- Specified by:
getSelectNextValueFromSequenceSQL
in classGeometryJdbcConverter
- Parameters:
seqName
- name of sequence- Returns:
- SQL statement specific for the flavour of database
-
getGeotoolsDBTypeName
- Specified by:
getGeotoolsDBTypeName
in classGeometryJdbcConverter
-
convertToNativeGeometryObject
public Object convertToNativeGeometryObject(org.locationtech.jts.geom.Geometry param, int srid) throws SQLException - Specified by:
convertToNativeGeometryObject
in classGeometryJdbcConverter
- Throws:
SQLException
-