类 MySQL8DateTimeResultSetMetaData
java.lang.Object
com.alibaba.druid.filter.mysql8datetime.MySQL8DateTimeResultSetMetaData
- 所有已实现的接口:
ResultSetMetaData,Wrapper
针对mysql jdbc 8.0.23及以上版本,通过该方法控制将对象类型转换成原来的类型
- 作者:
- lizongbo
- 另请参阅:
-
字段概要
从接口继承的字段 java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getCatalogName(int column) getColumnClassName(int column) 针对8.0.24版本开始,如果把mysql DATETIME映射回Timestamp,就需要把javaClass的类型也改回去 相关类在com.mysql.cj.MysqlType 中 旧版本jdbc为 DATETIME("DATETIME", Types.TIMESTAMP, Timestamp.class, 0, MysqlType.IS_NOT_DECIMAL, 26L, "[(fsp)]"), 8.0.24及以上版本jdbc实现改为 DATETIME("DATETIME", Types.TIMESTAMP, LocalDateTime.class, 0, MysqlType.IS_NOT_DECIMAL, 26L, "[(fsp)]"),intintgetColumnDisplaySize(int column) getColumnLabel(int column) getColumnName(int column) intgetColumnType(int column) getColumnTypeName(int column) intgetPrecision(int column) intgetScale(int column) getSchemaName(int column) getTableName(int column) booleanisAutoIncrement(int column) booleanisCaseSensitive(int column) booleanisCurrency(int column) booleanisDefinitelyWritable(int column) intisNullable(int column) booleanisReadOnly(int column) booleanisSearchable(int column) booleanisSigned(int column) booleanisWrapperFor(Class<?> iface) booleanisWritable(int column) <T> T
-
构造器详细资料
-
MySQL8DateTimeResultSetMetaData
-
-
方法详细资料
-
unwrap
- 指定者:
unwrap在接口中Wrapper- 抛出:
SQLException
-
getColumnCount
- 指定者:
getColumnCount在接口中ResultSetMetaData- 抛出:
SQLException
-
isAutoIncrement
- 指定者:
isAutoIncrement在接口中ResultSetMetaData- 抛出:
SQLException
-
isCaseSensitive
- 指定者:
isCaseSensitive在接口中ResultSetMetaData- 抛出:
SQLException
-
isSearchable
- 指定者:
isSearchable在接口中ResultSetMetaData- 抛出:
SQLException
-
isWrapperFor
- 指定者:
isWrapperFor在接口中Wrapper- 抛出:
SQLException
-
isCurrency
- 指定者:
isCurrency在接口中ResultSetMetaData- 抛出:
SQLException
-
isNullable
- 指定者:
isNullable在接口中ResultSetMetaData- 抛出:
SQLException
-
isSigned
- 指定者:
isSigned在接口中ResultSetMetaData- 抛出:
SQLException
-
getColumnDisplaySize
- 指定者:
getColumnDisplaySize在接口中ResultSetMetaData- 抛出:
SQLException
-
getColumnLabel
- 指定者:
getColumnLabel在接口中ResultSetMetaData- 抛出:
SQLException
-
getColumnName
- 指定者:
getColumnName在接口中ResultSetMetaData- 抛出:
SQLException
-
getSchemaName
- 指定者:
getSchemaName在接口中ResultSetMetaData- 抛出:
SQLException
-
getPrecision
- 指定者:
getPrecision在接口中ResultSetMetaData- 抛出:
SQLException
-
getScale
- 指定者:
getScale在接口中ResultSetMetaData- 抛出:
SQLException
-
getTableName
- 指定者:
getTableName在接口中ResultSetMetaData- 抛出:
SQLException
-
getCatalogName
- 指定者:
getCatalogName在接口中ResultSetMetaData- 抛出:
SQLException
-
getColumnType
- 指定者:
getColumnType在接口中ResultSetMetaData- 抛出:
SQLException
-
getColumnTypeName
- 指定者:
getColumnTypeName在接口中ResultSetMetaData- 抛出:
SQLException
-
isReadOnly
- 指定者:
isReadOnly在接口中ResultSetMetaData- 抛出:
SQLException
-
isWritable
- 指定者:
isWritable在接口中ResultSetMetaData- 抛出:
SQLException
-
isDefinitelyWritable
- 指定者:
isDefinitelyWritable在接口中ResultSetMetaData- 抛出:
SQLException
-
getColumnClassName
针对8.0.24版本开始,如果把mysql DATETIME映射回Timestamp,就需要把javaClass的类型也改回去 相关类在com.mysql.cj.MysqlType 中 旧版本jdbc为 DATETIME("DATETIME", Types.TIMESTAMP, Timestamp.class, 0, MysqlType.IS_NOT_DECIMAL, 26L, "[(fsp)]"), 8.0.24及以上版本jdbc实现改为 DATETIME("DATETIME", Types.TIMESTAMP, LocalDateTime.class, 0, MysqlType.IS_NOT_DECIMAL, 26L, "[(fsp)]"),- 指定者:
getColumnClassName在接口中ResultSetMetaData- 参数:
column- 列的索引位- 返回:
- 列名称
- 抛出:
SQLException- 如果发生数据库访问错误- 另请参阅:
-