Class Util
- java.lang.Object
-
- org.apache.log4j.component.spi.ComponentBase
-
- org.apache.log4j.receivers.db.dialect.Util
-
- All Implemented Interfaces:
Component
public class Util extends ComponentBase
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
HSQL_PART
private static java.lang.String
MSSQL_PART
private static java.lang.String
MYSQL_PART
private static java.lang.String
ORACLE_PART
private static java.lang.String
POSTGRES_PART
-
Fields inherited from class org.apache.log4j.component.spi.ComponentBase
repository
-
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
discoverSQLDialect(java.sql.DatabaseMetaData meta)
static SQLDialect
getDialectFromCode(int dialectCode)
boolean
supportsBatchUpdates(java.sql.DatabaseMetaData meta)
This method handles cases where theDatabaseMetaData.supportsBatchUpdates()
method is missing in the JDBC driver implementation.boolean
supportsGetGeneratedKeys(java.sql.DatabaseMetaData meta)
This method handles cases where theDatabaseMetaData.supportsGetGeneratedKeys()
method is missing in the JDBC driver implementation.-
Methods inherited from class org.apache.log4j.component.spi.ComponentBase
getLogger, getLoggerRepository, getNonFloodingLogger, resetErrorCount, setLoggerRepository
-
-
-
-
Field Detail
-
POSTGRES_PART
private static final java.lang.String POSTGRES_PART
- See Also:
- Constant Field Values
-
MYSQL_PART
private static final java.lang.String MYSQL_PART
- See Also:
- Constant Field Values
-
ORACLE_PART
private static final java.lang.String ORACLE_PART
- See Also:
- Constant Field Values
-
MSSQL_PART
private static final java.lang.String MSSQL_PART
- See Also:
- Constant Field Values
-
HSQL_PART
private static final java.lang.String HSQL_PART
- See Also:
- Constant Field Values
-
-
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 theDatabaseMetaData.supportsGetGeneratedKeys()
method is missing in the JDBC driver implementation.
-
supportsBatchUpdates
public boolean supportsBatchUpdates(java.sql.DatabaseMetaData meta)
This method handles cases where theDatabaseMetaData.supportsBatchUpdates()
method is missing in the JDBC driver implementation.
-
-