public class ShortIntType extends Object implements Convertible<Short,Integer>
Java Short
to JDBC Integer
. This conversion has default usage.
Numeric type promotion some drivers keep the Short
values as Integer
Constructor and Description |
---|
ShortIntType() |
ShortIntType(String pattern) |
Modifier and Type | Method and Description |
---|---|
ColumnType |
getColumnType() |
Class<Short> |
getType() |
Short |
toAttribute(Integer jdbc)
Convert the jdbc value to attribute format or type
|
Integer |
toJdbc(Short attribute)
Convert attribute to jdbc format or type
|
String |
toString() |
public ShortIntType()
public ShortIntType(String pattern)
public Integer toJdbc(Short attribute)
Convertible
toJdbc
in interface Convertible<Short,Integer>
attribute
- the value of to be convertedpublic Short toAttribute(Integer jdbc)
Convertible
toAttribute
in interface Convertible<Short,Integer>
jdbc
- the value stored at databasepublic ColumnType getColumnType()
getColumnType
in interface Convertible<Short,Integer>
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.