Class Util
java.lang.Object
org.apache.log4j.component.spi.ComponentBase
org.apache.log4j.receivers.db.dialect.Util
- All Implemented Interfaces:
Component
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final StringFields inherited from class ComponentBase
repository -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intstatic SQLDialectgetDialectFromCode(int dialectCode) booleanThis method handles cases where theDatabaseMetaData.supportsBatchUpdates()method is missing in the JDBC driver implementation.booleanThis method handles cases where theDatabaseMetaData.supportsGetGeneratedKeys()method is missing in the JDBC driver implementation.Methods inherited from class ComponentBase
getLogger, getLoggerRepository, getNonFloodingLogger, resetErrorCount, setLoggerRepository
-
Field Details
-
POSTGRES_PART
- See Also:
-
MYSQL_PART
- See Also:
-
ORACLE_PART
- See Also:
-
MSSQL_PART
- See Also:
-
HSQL_PART
- See Also:
-
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
discoverSQLDialect
-
getDialectFromCode
-
supportsGetGeneratedKeys
This method handles cases where theDatabaseMetaData.supportsGetGeneratedKeys()method is missing in the JDBC driver implementation. -
supportsBatchUpdates
This method handles cases where theDatabaseMetaData.supportsBatchUpdates()method is missing in the JDBC driver implementation.
-