org.apache.lucene.store.jdbc.dialect
Class DialectResolver

java.lang.Object
  extended by org.apache.lucene.store.jdbc.dialect.DialectResolver

public class DialectResolver
extends Object

Author:
kimchy

Nested Class Summary
static interface DialectResolver.DatabaseMetaDataToDialectMapper
           
static class DialectResolver.DatabaseNameAndVersionToDialectMapper
           
static class DialectResolver.DatabaseNameStartsWithToDialectMapper
           
static class DialectResolver.DatabaseNameToDialectMapper
           
 
Constructor Summary
DialectResolver()
           
DialectResolver(boolean useDefaultMappers)
           
 
Method Summary
 void addFirstMapper(DialectResolver.DatabaseMetaDataToDialectMapper mapper)
           
 void addLastMapper(DialectResolver.DatabaseMetaDataToDialectMapper mapper)
           
 Dialect getDialect(DataSource dataSource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialectResolver

public DialectResolver()

DialectResolver

public DialectResolver(boolean useDefaultMappers)
Method Detail

addFirstMapper

public void addFirstMapper(DialectResolver.DatabaseMetaDataToDialectMapper mapper)

addLastMapper

public void addLastMapper(DialectResolver.DatabaseMetaDataToDialectMapper mapper)

getDialect

public Dialect getDialect(DataSource dataSource)
                   throws JdbcStoreException
Throws:
JdbcStoreException


Copyright (c) 2004-2009 The Compass Project.