| 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
Whether the security manager is enabled. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
closeQuietly(Connection connection)
Closes the Connection (which may be null). 
 | 
static void | 
closeQuietly(ResultSet resultSet)
Closes the ResultSet (which may be null). 
 | 
static void | 
closeQuietly(Statement statement)
Closes the Statement (which may be null). 
 | 
static String | 
getMessage(String key)
Gets the correct i18n message for the given key. 
 | 
static String | 
getMessage(String key,
          Object... args)
Gets the correct i18n message for the given key with placeholders replaced by the supplied arguments. 
 | 
static char[] | 
toCharArray(String value)
Converts the given String to a char[]. 
 | 
static String | 
toString(char[] value)
Converts the given char[] to a String. 
 | 
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 resultSet)
resultSet - a ResultSet, may be nullpublic static void closeQuietly(Connection connection)
connection - a Connection, may be nullpublic static void closeQuietly(Statement statement)
statement - a Statement, may be null.public static String getMessage(String key)
key - The key to look up an i18n message.public static String getMessage(String key, Object... args)
key - A message key.args - The message arguments.public static char[] toCharArray(String value)
value - may be null.Copyright © 2001–2018 The Apache Software Foundation. All rights reserved.