org.geotools.gce.imagemosaic.jdbc
Class DB2Dialect

Object
  extended by DBDialect
      extended by DB2Dialect

public class DB2Dialect
extends DBDialect

This class implements the db dialect for db2 spatial extender

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

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

Constructor Detail

DB2Dialect

public DB2Dialect(Config config)
Method Detail

getRegisterSpatialStatement

protected String getRegisterSpatialStatement(String tn,
                                             String srs)
Overrides:
getRegisterSpatialStatement in class DBDialect
Parameters:
tn - sql table name
srs - name of spatial reference system to use
Returns:
sql unregister spatial column statement for nt

getUnregisterSpatialStatement

protected String getUnregisterSpatialStatement(String tn)
Overrides:
getUnregisterSpatialStatement in class DBDialect
Parameters:
tn - sql table name
Returns:
sql unregister spatial column statement for nt

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

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.