|
Log4j 1.3alpha-3 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Connection
s for log4j classes
that require the use of a Connection
.
Field Summary | |
static int |
HSQL_DIALECT
|
static int |
MSSQL_DIALECT
|
static int |
MYSQL_DIALECT
|
static int |
ORACLE_DIALECT
|
static int |
POSTGRES_DIALECT
|
static int |
UNKNOWN_DIALECT
|
Method Summary | |
java.sql.Connection |
getConnection()
Obtain a Connection for use. |
int |
getSQLDialectCode()
Get the SQL dialect that should be used for this connection. |
void |
setErrorHandler(ErrorHandler errorHandler)
Set the error handler. |
boolean |
supportsBatchUpdates()
If the connection does not support batch updates, we will avoid using them. |
boolean |
supportsGetGeneratedKeys()
If the connection supports the JDBC 3.0 getGeneratedKeys method, then we do not need any specific dialect support. |
Methods inherited from interface org.apache.log4j.spi.OptionHandler |
activateOptions |
Field Detail |
public static final int UNKNOWN_DIALECT
public static final int POSTGRES_DIALECT
public static final int MYSQL_DIALECT
public static final int ORACLE_DIALECT
public static final int MSSQL_DIALECT
public static final int HSQL_DIALECT
Method Detail |
public java.sql.Connection getConnection() throws java.sql.SQLException
Connection
for use. The client is
responsible for closing the Connection
when it is no
longer required.
java.sql.SQLException
- if a Connection
could not be
obtainedpublic void setErrorHandler(ErrorHandler errorHandler)
errorHandler
- the new error handlerpublic int getSQLDialectCode()
public boolean supportsGetGeneratedKeys()
public boolean supportsBatchUpdates()
|
Log4j 1.3alpha-3 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |