|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SQLDialect
Implementations provide the vendor-specific behavior for a spatial DBMS so it can be accessed by deegree.
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 colummn)
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 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 table)
|
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()
Returns whether a transaction context is required for cursor mode to work. |
String |
stringIndex(String pattern,
String string)
|
String |
stringPlus()
|
Method Detail |
---|
ConnectionManager.Type getDBType()
ConnectionManager.Type
of JDBC connection that this dialect can handle.
null
int getMaxColumnNameLength()
int getMaxTableNameLength()
String getDefaultSchema()
String stringPlus()
String stringIndex(String pattern, String string)
pattern
- string
-
String cast(String expr, String type)
expr
- type
-
String geometryMetadata(QTableName qTable, String column, boolean isGeographical)
qTable
- column
- isGeographical
-
AbstractWhereBuilder getWhereBuilder(PropertyNameMapper mapper, OperatorFilter filter, SortProperty[] sortCrit, boolean allowPartialMappings) throws UnmappableException, FilterEvaluationException
AbstractWhereBuilder
instance for the given parameters.
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
String getUndefinedSrid()
null/code>
String getBBoxAggregateSnippet(String colummn)
colummn
- name of the column that stores the bounding box, never null
null
Envelope getBBoxAggregateValue(ResultSet rs, int colIdx, ICRS crs) throws SQLException
getBBoxAggregateSnippet(String)
into an Envelope
.
rs
- colIdx
- crs
-
null
SQLException
GeometryParticleConverter getGeometryConverter(String column, ICRS crs, String srid, boolean is2d)
PrimitiveParticleConverter getPrimitiveConverter(String column, PrimitiveType pt)
void createDB(Connection adminConn, String dbName) throws SQLException
adminConn
- administrator JDBC connection, must not be null
dbName
- name of the database to be created, must not be null
SQLException
void dropDB(Connection adminConn, String dbName) throws SQLException
adminConn
- administrator JDBC connection, must not be null
dbName
- name of the database to be created, must not be null
SQLException
void createAutoColumn(StringBuffer currentStmt, List<StringBuffer> additionalSmts, String column, String table)
ResultSet getTableColumnMetadata(DatabaseMetaData md, QTableName table) throws SQLException
SQLException
boolean requiresTransactionForCursorMode()
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 |