| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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()
SQLDialectConnectionManager.Type of JDBC connection that this dialect can handle.
getDBType in interface SQLDialectnullpublic int getMaxColumnNameLength()
SQLDialect
getMaxColumnNameLength in interface SQLDialectpublic int getMaxTableNameLength()
SQLDialect
getMaxTableNameLength in interface SQLDialectpublic String getDefaultSchema()
getDefaultSchema in interface SQLDialectpublic 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
SQLDialectAbstractWhereBuilder instance for the given parameters.
getWhereBuilder in interface SQLDialectmapper - provides property name mappings, must not be nullfilter - filter to use for generating the WHERE clause, can be nullsortCrit - criteria to use generating the ORDER BY clause, can be nullallowPartialMappings - 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
FilterEvaluationExceptionpublic String getUndefinedSrid()
SQLDialect
getUndefinedSrid in interface SQLDialectnull/code>public String getBBoxAggregateSnippet(String column)
SQLDialect
getBBoxAggregateSnippet in interface SQLDialectcolumn - name of the column that stores the bounding box, never null
null
public Envelope getBBoxAggregateValue(ResultSet rs,
                                      int colIdx,
                                      ICRS crs)
                               throws SQLException
SQLDialectSQLDialect.getBBoxAggregateSnippet(String) into an Envelope.
getBBoxAggregateValue in interface SQLDialectnull
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 SQLDialectadminConn - administrator JDBC connection, must not be nulldbName - 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 SQLDialectadminConn - administrator JDBC connection, must not be nulldbName - 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 SQLDialectSQLExceptionpublic boolean requiresTransactionForCursorMode()
requiresTransactionForCursorMode in interface SQLDialecttrue, if a transaction context is required, false otherwise
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||