codecamp

附录:类型映射

根据 Java 类型获取对应的 JDBC Type

Java 类型 JDBC 类型
java.lang.Booleanboolean Types.BIT
java.lang.Bytebyte Types.TINYINT
java.lang.Shortshortjava.time.Yearjava.time.Month Types.SMALLINT
java.lang.Integerint Types.INTEGER
java.lang.Longlong Types.BIGINT
java.lang.Floatfloat Types.FLOAT
java.lang.Doubledouble Types.DOUBLE
java.lang.Characterchar Types.CHAR
java.util.Datejava.sql.Timestampjava.time.Instantjava.time.LocalDateTimejava.time.ZonedDateTimejava.time.chrono.JapaneseDatejava.time.OffsetDateTimejava.time.OffsetTime Types.TIMESTAMP
java.sql.Datejava.time.LocalDate Types.DATE
java.sql.Timejava.time.LocalTime Types.TIME
java.time.YearMonth Types.VARCHAR
java.lang.String Types.VARCHAR
java.math.BigInteger Types.BIGINT
java.math.BigDecimal Types.DECIMAL
java.io.Reader Types.CLOB
java.io.InputStream Types.BLOB
java.lang.Byte[]byte[] Types.VARBINARY
java.net.URL Types.DATALINK
java.lang.Object[] Types.ARRAY
java.lang.Object Types.JAVA_OBJECT
oracle.jdbc.OracleBlob Types.BLOB
oracle.jdbc.OracleClob Types.CLOB
oracle.jdbc.OracleNClob Types.NCLOB
oracle.sql.DATE Types.DATE
oracle.sql.TIMESTAMP Types.TIMESTAMP
oracle.sql.TIMESTAMPTZ Types.TIMESTAMP_WITH_TIMEZONE
oracle.sql.TIMESTAMPLTZ Types.TIMESTAMP_WITH_TIMEZONE


HasorDB 自定义类型处理器
HasorDB 如何使用SQL模式
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }