Modifier and Type | Field and Description |
---|---|
static String |
DISCONNECTION_SQL_CODE_PREFIX
Any SQL_STATE starting with this value is considered a fatal disconnect
|
static Set<String> |
DISCONNECTION_SQL_CODES
SQL codes of fatal connection errors.
|
static boolean |
IS_SECURITY_ENABLED |
Modifier and Type | Method and Description |
---|---|
static void |
closeQuietly(Connection conn)
Closes the Connection (which may be null).
|
static void |
closeQuietly(ResultSet rset)
Closes the ResultSet (which may be null).
|
static void |
closeQuietly(Statement stmt)
Closes the Statement (which may be null).
|
static String |
getMessage(String key)
Obtain the correct i18n message for the given key.
|
static String |
getMessage(String key,
Object... args)
Obtain the correct i18n message for the given key with placeholders
replaced by the supplied arguments.
|
public static final boolean IS_SECURITY_ENABLED
public static final String DISCONNECTION_SQL_CODE_PREFIX
public static final Set<String> DISCONNECTION_SQL_CODES
public static void closeQuietly(ResultSet rset)
rset
- a ResultSet, may be null
public static void closeQuietly(Connection conn)
conn
- a Connection, may be null
public static void closeQuietly(Statement stmt)
stmt
- a Statement, may be null
public static String getMessage(String key)
public static String getMessage(String key, Object... args)
Copyright © 2001–2017 The Apache Software Foundation. All rights reserved.