类 MySqlUtils
java.lang.Object
com.alibaba.druid.util.MySqlUtils
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static Stringstatic StringbuildKillQuerySql(Connection connection, SQLException error) static XAConnectioncreateXAConnection(Driver driver, Connection physicalConn) static BigDecimaldecimal(BigDecimal value, int precision, int scale) static Stringstatic Classstatic Stringstatic StringgetCreateTableScript(Connection conn, boolean sorted, boolean simplify) static Longstatic long已过时。getTableDDL(Connection conn, List<String> tables) static booleanisBuiltinDataType(String dataType) static booleanstatic booleanstatic booleanstatic voidloadDataTypes(Set<String> dataTypes) static Datestatic ZonedDateTimeparseDateTime(byte[] str, int off, int len, ZoneId zoneId) static longparseMillis(byte[] str, int off, int len, TimeZone timeZone) static longparseMillis(byte[] str, TimeZone timeZone) static TimeZoneparseTimeZone(String str) showTables(Connection conn) static DateFormattoJavaFormat(String fmt) static DateFormattoJavaFormat(String fmt, TimeZone timeZone) static Stringstatic Stringstatic String
-
字段详细资料
-
GBK
-
BIG5
-
UTF8
-
UTF16
-
UTF32
-
ASCII
-
-
构造器详细资料
-
MySqlUtils
public MySqlUtils()
-
-
方法详细资料
-
createXAConnection
public static XAConnection createXAConnection(Driver driver, Connection physicalConn) throws SQLException - 抛出:
SQLException
-
buildKillQuerySql
public static String buildKillQuerySql(Connection connection, SQLException error) throws SQLException - 抛出:
SQLException
-
isKeyword
-
isBuiltinDataType
-
showTables
- 抛出:
SQLException
-
getTableDDL
- 抛出:
SQLException
-
getCreateTableScript
- 抛出:
SQLException
-
getCreateTableScript
public static String getCreateTableScript(Connection conn, boolean sorted, boolean simplify) throws SQLException - 抛出:
SQLException
-
getId
-
getLastPacketReceivedTimeMs
已过时。The lastQueryFinishedTime, returned from mysql8 com.mysql.cj.jdbc.JdbcConnection#getIdleFor, does not be updated by method pingInternal running for connection validation if option usePingMethod is true.
More troublesome is that lastQueryFinishedTime will not be set if option maintainTimeStats is false, so does mysql5 lastPacketReceivedTimeMs.- 抛出:
SQLException
-
getCommunicationsExceptionClass
-
loadDataTypes
-
decimal
-
isNumber
-
toJavaFormat
-
toJavaFormat
-
parseDate
-
parseMillis
-
parseMillis
-
parseDateTime
-
isSupportParseDateformat
-
parseTimeZone
-
utf32
-
utf16
-
utf8
-
gbk
-
big5
-