org.geotools.gce.imagemosaic.jdbc
Class UniversalDialect

Object
  extended by DBDialect
      extended by UniversalDialect

public class UniversalDialect
extends DBDialect

This class implements a common db dialect (no spatial extensions used)

Author:
mcr
Module:
modules/plugin/imagemosaic-jdbc (gt-imagemosaic-jdbc.jar)

Field Summary
 
Fields inherited from class DBDialect
config, dataSource
 
Constructor Summary
UniversalDialect(Config config)
           
 
Method Summary
protected  String getBLOBSQLType()
           
protected  String getCreateIndexStatement(String tn)
           
protected  String getCreateSpatialTableStatement(String tableName)
           
protected  String getCreateSpatialTableStatementJoined(String tableName)
           
protected  String getMultiPolygonSQLType()
           
 
Methods inherited from class DBDialect
getConfig, getConnection, getDBDialect, getDoubleSQLType, getRegisterSpatialStatement, getUnregisterSpatialStatement
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniversalDialect

public UniversalDialect(Config config)
Method Detail

getBLOBSQLType

protected String getBLOBSQLType()
Specified by:
getBLOBSQLType in class DBDialect
Returns:
the sql type name for a blob (Binary Large Object)

getMultiPolygonSQLType

protected String getMultiPolygonSQLType()
Specified by:
getMultiPolygonSQLType in class DBDialect
Returns:
the sql type name for a Multipolygon

getCreateSpatialTableStatement

protected String getCreateSpatialTableStatement(String tableName)
                                         throws Exception
Overrides:
getCreateSpatialTableStatement in class DBDialect
Returns:
the sql create table statement for a spatial table
Throws:
Exception

getCreateSpatialTableStatementJoined

protected String getCreateSpatialTableStatementJoined(String tableName)
                                               throws Exception
Overrides:
getCreateSpatialTableStatementJoined in class DBDialect
Returns:
the sql create table statement for a combined spatial/tile table named tableName
Throws:
Exception

getCreateIndexStatement

protected String getCreateIndexStatement(String tn)
                                  throws Exception
Specified by:
getCreateIndexStatement in class DBDialect
Parameters:
tn - sql table name
Returns:
sql create spatial index statement for tn
Throws:
Exception


Copyright © 1996-2010 Geotools. All Rights Reserved.