public class JdbcDecimal extends AbstractJdbcType<BigDecimal>
| Modifier and Type | Field and Description |
|---|---|
static JdbcDecimal |
instance |
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
compose(Object value) |
Object |
decompose(BigDecimal value)
The bytes of the ByteBuffer are made up of 4 bytes of int containing the scale
followed by the n bytes it takes to store a BigInteger.
|
int |
getJdbcType() |
int |
getPrecision(BigDecimal obj) |
int |
getScale(BigDecimal obj) |
String |
getString(ByteBuffer bytes) |
Class<BigDecimal> |
getType() |
boolean |
isCaseSensitive() |
boolean |
isCurrency() |
boolean |
isSigned() |
boolean |
needsQuotes() |
String |
toString(BigDecimal obj) |
public static final JdbcDecimal instance
public boolean isCaseSensitive()
isCaseSensitive in class AbstractJdbcType<BigDecimal>public int getScale(BigDecimal obj)
getScale in class AbstractJdbcType<BigDecimal>public int getPrecision(BigDecimal obj)
getPrecision in class AbstractJdbcType<BigDecimal>public boolean isCurrency()
isCurrency in class AbstractJdbcType<BigDecimal>public boolean isSigned()
isSigned in class AbstractJdbcType<BigDecimal>public String toString(BigDecimal obj)
toString in class AbstractJdbcType<BigDecimal>public boolean needsQuotes()
needsQuotes in class AbstractJdbcType<BigDecimal>public String getString(ByteBuffer bytes)
public Class<BigDecimal> getType()
getType in class AbstractJdbcType<BigDecimal>public int getJdbcType()
getJdbcType in class AbstractJdbcType<BigDecimal>public BigDecimal compose(Object value)
compose in class AbstractJdbcType<BigDecimal>public Object decompose(BigDecimal value)
decompose in class AbstractJdbcType<BigDecimal>Copyright © 2015–2016. All rights reserved.