public class IntegerNumberConverter extends java.lang.Object implements IConverter
Constructor and Description |
---|
IntegerNumberConverter() |
Modifier and Type | Method and Description |
---|---|
static IConverter |
getInstance() |
boolean |
isNullToZero()
If
true convert null to zero. |
void |
setNullToZero(boolean nullToZero)
If
true convert null to zero. |
java.lang.Object |
toDB(java.lang.Object o) |
java.lang.Object |
toJava(java.lang.Object o) |
public static IConverter getInstance()
public java.lang.Object toDB(java.lang.Object o) throws ConversionException
toDB
in interface IConverter
ConversionException
public java.lang.Object toJava(java.lang.Object o) throws ConversionException
toJava
in interface IConverter
ConversionException
public boolean isNullToZero()
true
convert null to zero. The default value is true.
public void setNullToZero(boolean nullToZero)
true
convert null to zero. The default value is true.