org.apache.log4j.db.dialect
Class Util

java.lang.Object
  extended by org.apache.log4j.spi.ComponentBase
      extended by org.apache.log4j.db.dialect.Util
All Implemented Interfaces:
org.apache.log4j.spi.Component

public class Util
extends org.apache.log4j.spi.ComponentBase

Author:
Ceki Gulcu

Field Summary
 
Fields inherited from class org.apache.log4j.spi.ComponentBase
repository
 
Constructor Summary
Util()
           
 
Method Summary
static int discoverSQLDialect(java.sql.DatabaseMetaData meta)
           
static SQLDialect getDialectFromCode(int dialectCode)
           
 boolean supportsBatchUpdates(java.sql.DatabaseMetaData meta)
          This method handles cases where the DatabaseMetaData.supportsBatchUpdates() method is missing in the JDBC driver implementation.
 boolean supportsGetGeneratedKeys(java.sql.DatabaseMetaData meta)
          This method handles cases where the DatabaseMetaData.supportsGetGeneratedKeys() method is missing in the JDBC driver implementation.
 
Methods inherited from class org.apache.log4j.spi.ComponentBase
getLogger, getLoggerRepository, getNonFloodingLogger, resetErrorCount, setLoggerRepository
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

discoverSQLDialect

public static int discoverSQLDialect(java.sql.DatabaseMetaData meta)

getDialectFromCode

public static SQLDialect getDialectFromCode(int dialectCode)

supportsGetGeneratedKeys

public boolean supportsGetGeneratedKeys(java.sql.DatabaseMetaData meta)
This method handles cases where the DatabaseMetaData.supportsGetGeneratedKeys() method is missing in the JDBC driver implementation.


supportsBatchUpdates

public boolean supportsBatchUpdates(java.sql.DatabaseMetaData meta)
This method handles cases where the DatabaseMetaData.supportsBatchUpdates() method is missing in the JDBC driver implementation.



Copyright © 2007 Apache Software Foundation. All Rights Reserved.