org.geotools.gce.imagemosaic.jdbc
Class MySqlDialect

java.lang.Object
  extended by org.geotools.gce.imagemosaic.jdbc.DBDialect
      extended by org.geotools.gce.imagemosaic.jdbc.MySqlDialect

public class MySqlDialect
extends DBDialect

This class implements the db dialect for mysql

Author:
mcr

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

Constructor Detail

MySqlDialect

public MySqlDialect(Config config)
Method Detail

getBLOBSQLType

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

getMultiPolygonSQLType

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

getCreateIndexStatement

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


Copyright © 1996-2010 Geotools. All Rights Reserved.