org.geotools.gce.imagemosaic.jdbc
Class MySqlDialect

Object
  extended by DBDialect
      extended by MySqlDialect

public class MySqlDialect
extends DBDialect

This class implements the db dialect for mysql

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

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

Constructor Detail

MySqlDialect

public MySqlDialect(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

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-2009 Geotools. All Rights Reserved.