org.compass.gps.device.jdbc.dialect
Class DialectResolver.DatabaseNameAndVersionToDialectMapper

java.lang.Object
  extended by org.compass.gps.device.jdbc.dialect.DialectResolver.DatabaseNameAndVersionToDialectMapper
All Implemented Interfaces:
DialectResolver.DatabaseMetaDataToDialectMapper
Enclosing class:
DialectResolver

public static class DialectResolver.DatabaseNameAndVersionToDialectMapper
extends Object
implements DialectResolver.DatabaseMetaDataToDialectMapper


Constructor Summary
DialectResolver.DatabaseNameAndVersionToDialectMapper(String databaseName, int version, Class<? extends JdbcDialect> dialect)
           
 
Method Summary
 Class<? extends JdbcDialect> getDialect(DatabaseMetaData metaData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialectResolver.DatabaseNameAndVersionToDialectMapper

public DialectResolver.DatabaseNameAndVersionToDialectMapper(String databaseName,
                                                             int version,
                                                             Class<? extends JdbcDialect> dialect)
Method Detail

getDialect

public Class<? extends JdbcDialect> getDialect(DatabaseMetaData metaData)
                                        throws SQLException
Specified by:
getDialect in interface DialectResolver.DatabaseMetaDataToDialectMapper
Throws:
SQLException


Copyright (c) 2004-2009 The Compass Project.