Hint
This article is generated by AI translation.
Numeric Type Handlers
Numeric type handlers are located in the net.hasor.dbvisitor.types.handler.number package.
Primitive Types
| Handler | Java Type | Purpose |
|---|---|---|
ByteTypeHandler | java.lang.Byte, byte | Reads/writes byte type data |
ShortTypeHandler | java.lang.Short, short | Reads/writes short type data |
IntegerTypeHandler | java.lang.Integer, int | Reads/writes int type data |
LongTypeHandler | java.lang.Long, long | Reads/writes long type data |
FloatTypeHandler | java.lang.Float, float | Reads/writes float type data |
DoubleTypeHandler | java.lang.Double, double | Reads/writes double type data |
Object Types
| Handler | Java Type | Purpose |
|---|---|---|
NumberTypeHandler | java.lang.Number | Read-only, cannot be used for writing |
BigDecimalTypeHandler | java.math.BigDecimal | Reads/writes BigDecimal type data |
BigIntegerTypeHandler | java.math.BigInteger | Reads/writes BigInteger type data |
Type Conversions
| Handler | Java Type | Purpose |
|---|---|---|
IntegerAsBooleanTypeHandler | java.lang.Boolean, boolean | Maps between numeric and boolean types, any non-zero integer is parsed as true |
StringAsBigDecimalTypeHandler | java.math.BigDecimal | Reads/writes database string type using BigDecimal, suitable for very large numbers |
StringAsBigIntegerTypeHandler | java.math.BigInteger | Reads/writes database string type using BigInteger, suitable for very large numbers |
Special Support
| Handler | Java Type | Purpose |
|---|---|---|
PgMoneyAsBigDecimalTypeHandler | java.math.BigDecimal | Supports PostgreSQL money type, automatically handles currency symbols and thousands separators |