|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.sqldialect.postgis.PostGISDialect
public class PostGISDialect
SQLDialect
for PostgreSQL / PostGIS databases.
Constructor Summary | |
---|---|
PostGISDialect(boolean useLegacyPredicates)
|
Method Summary | |
---|---|
String |
cast(String expr,
String type)
|
void |
createAutoColumn(StringBuffer currentStmt,
List<StringBuffer> additionalSmts,
String column,
String table)
|
void |
createDB(Connection adminConn,
String dbName)
Creates a new (spatially-enabled) database using the specified administrator connection. |
void |
dropDB(Connection adminConn,
String dbName)
Drops the specified database. |
String |
geometryMetadata(QTableName qTable,
String column,
boolean isGeographical)
|
String |
getBBoxAggregateSnippet(String column)
Returns an SQL snippet for SELECTing the aggregate bounding box of the given column. |
Envelope |
getBBoxAggregateValue(ResultSet rs,
int colIdx,
ICRS crs)
Converts the value that has been SELECTed via SQLDialect.getBBoxAggregateSnippet(String) into an Envelope . |
ConnectionManager.Type |
getDBType()
Returns the ConnectionManager.Type of JDBC connection that this dialect can handle. |
String |
getDefaultSchema()
|
GeometryParticleConverter |
getGeometryConverter(String column,
ICRS crs,
String srid,
boolean is2D)
|
int |
getMaxColumnNameLength()
Returns the maximum number of characters allowed for column names. |
int |
getMaxTableNameLength()
Returns the maximum number of characters allowed for table names. |
PrimitiveParticleConverter |
getPrimitiveConverter(String column,
PrimitiveType pt)
|
ResultSet |
getTableColumnMetadata(DatabaseMetaData md,
QTableName qTable)
|
String |
getUndefinedSrid()
Returns the SRID code for undefined. |
AbstractWhereBuilder |
getWhereBuilder(PropertyNameMapper mapper,
OperatorFilter filter,
SortProperty[] sortCrit,
boolean allowPartialMappings)
Returns an AbstractWhereBuilder instance for the given parameters. |
boolean |
requiresTransactionForCursorMode()
See http://postgresql.1045698.n5.nabble.com/BUG-3383-Postmaster-Service-Problem-td2123537.html. |
String |
stringIndex(String pattern,
String string)
|
String |
stringPlus()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PostGISDialect(boolean useLegacyPredicates)
Method Detail |
---|
public ConnectionManager.Type getDBType()
SQLDialect
ConnectionManager.Type
of JDBC connection that this dialect can handle.
getDBType
in interface SQLDialect
null
public int getMaxColumnNameLength()
SQLDialect
getMaxColumnNameLength
in interface SQLDialect
public int getMaxTableNameLength()
SQLDialect
getMaxTableNameLength
in interface SQLDialect
public String getDefaultSchema()
getDefaultSchema
in interface SQLDialect
public String stringPlus()
stringPlus
in interface SQLDialect
public String stringIndex(String pattern, String string)
stringIndex
in interface SQLDialect
public String cast(String expr, String type)
cast
in interface SQLDialect
public String geometryMetadata(QTableName qTable, String column, boolean isGeographical)
geometryMetadata
in interface SQLDialect
public AbstractWhereBuilder getWhereBuilder(PropertyNameMapper mapper, OperatorFilter filter, SortProperty[] sortCrit, boolean allowPartialMappings) throws UnmappableException, FilterEvaluationException
SQLDialect
AbstractWhereBuilder
instance for the given parameters.
getWhereBuilder
in interface SQLDialect
mapper
- provides property name mappings, must not be nullfilter
- filter to use for generating the WHERE clause, can be null
sortCrit
- criteria to use generating the ORDER BY clause, can be null
allowPartialMappings
- if false
, any unmappable expression will cause an UnmappableException
to be
thrown
- Returns:
- where builder, never
null
- Throws:
UnmappableException
- if allowPartialMappings is false and an expression could not be mapped to the db
FilterEvaluationException
public String getUndefinedSrid()
SQLDialect
getUndefinedSrid
in interface SQLDialect
null/code>
public String getBBoxAggregateSnippet(String column)
SQLDialect
getBBoxAggregateSnippet
in interface SQLDialect
column
- name of the column that stores the bounding box, never null
null
public Envelope getBBoxAggregateValue(ResultSet rs, int colIdx, ICRS crs) throws SQLException
SQLDialect
SQLDialect.getBBoxAggregateSnippet(String)
into an Envelope
.
getBBoxAggregateValue
in interface SQLDialect
null
SQLException
public GeometryParticleConverter getGeometryConverter(String column, ICRS crs, String srid, boolean is2D)
getGeometryConverter
in interface SQLDialect
public PrimitiveParticleConverter getPrimitiveConverter(String column, PrimitiveType pt)
getPrimitiveConverter
in interface SQLDialect
public void createDB(Connection adminConn, String dbName) throws SQLException
SQLDialect
createDB
in interface SQLDialect
adminConn
- administrator JDBC connection, must not be null
dbName
- name of the database to be created, must not be null
SQLException
public void dropDB(Connection adminConn, String dbName) throws SQLException
SQLDialect
dropDB
in interface SQLDialect
adminConn
- administrator JDBC connection, must not be null
dbName
- name of the database to be created, must not be null
SQLException
public void createAutoColumn(StringBuffer currentStmt, List<StringBuffer> additionalSmts, String column, String table)
createAutoColumn
in interface SQLDialect
public ResultSet getTableColumnMetadata(DatabaseMetaData md, QTableName qTable) throws SQLException
getTableColumnMetadata
in interface SQLDialect
SQLException
public boolean requiresTransactionForCursorMode()
requiresTransactionForCursorMode
in interface SQLDialect
true
, if a transaction context is required, false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |