org.geotools.gce.imagemosaic.jdbc
Class UniversalDialect

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

public class UniversalDialect
extends DBDialect

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

Author:
mcr

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

Constructor Detail

UniversalDialect

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

getCreateSpatialTableStatement

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

getCreateSpatialTableStatementJoined

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

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.