org.eigenbase.sql
Class SqlUtil.DatabaseMetaDataInvocationHandler

java.lang.Object
  extended by org.eigenbase.util.BarfingInvocationHandler
      extended by org.eigenbase.sql.SqlUtil.DatabaseMetaDataInvocationHandler
All Implemented Interfaces:
InvocationHandler
Enclosing class:
SqlUtil

public static class SqlUtil.DatabaseMetaDataInvocationHandler
extends BarfingInvocationHandler

Handles particular DatabaseMetaData methods; invocations of other methods will fall through to the base class, BarfingInvocationHandler, which will throw an error.


Field Summary
private  String databaseProductName
           
private  String identifierQuoteString
           
 
Constructor Summary
SqlUtil.DatabaseMetaDataInvocationHandler(String databaseProductName, String identifierQuoteString)
           
 
Method Summary
 String getDatabaseProductName()
           
 String getIdentifierQuoteString()
           
 
Methods inherited from class org.eigenbase.util.BarfingInvocationHandler
invoke, noMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

databaseProductName

private final String databaseProductName

identifierQuoteString

private final String identifierQuoteString
Constructor Detail

SqlUtil.DatabaseMetaDataInvocationHandler

public SqlUtil.DatabaseMetaDataInvocationHandler(String databaseProductName,
                                                 String identifierQuoteString)
Method Detail

getDatabaseProductName

public String getDatabaseProductName()
                              throws SQLException
Throws:
SQLException

getIdentifierQuoteString

public String getIdentifierQuoteString()
                                throws SQLException
Throws:
SQLException