Class CoercionHelper
java.lang.Object
org.hibernate.type.descriptor.java.CoercionHelper
Helper for type coercions. Mainly used for narrowing coercions which
might lead to under/over-flow problems
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
coerceWrappingError
(CoercionHelper.Coercer<T> coercer) static boolean
isWholeNumber
(double doubleValue) static boolean
isWholeNumber
(float floatValue) static BigInteger
toBigInteger
(Double doubleValue) static BigInteger
toBigInteger
(Float floatValue) static BigInteger
toBigInteger
(BigDecimal value) static Byte
static Byte
static Byte
static Byte
static Byte
static Byte
toByte
(BigDecimal value) static Byte
toByte
(BigInteger value) static Double
static Double
toDouble
(BigDecimal value) static Double
toDouble
(BigInteger value) static Integer
static Integer
static Integer
static Integer
static Integer
static Integer
toInteger
(BigDecimal value) static Integer
toInteger
(BigInteger value) static Long
static Long
static Long
static Long
static Long
static Long
toLong
(BigDecimal value) static Long
toLong
(BigInteger value) static Short
static Short
static Short
static Short
static Short
static Short
toShort
(BigDecimal value) static Short
toShort
(BigInteger value)
-
Method Details
-
toByte
-
toByte
-
toByte
-
toByte
-
toByte
-
toByte
-
toByte
-
toShort
-
toShort
-
toShort
-
toShort
-
toShort
-
toShort
-
toShort
-
toInteger
-
toInteger
-
toInteger
-
toInteger
-
toInteger
-
toInteger
-
toInteger
-
toLong
-
toLong
-
toLong
-
toLong
-
toLong
-
toLong
-
toLong
-
toBigInteger
-
toBigInteger
-
toBigInteger
-
toDouble
-
toDouble
-
toDouble
-
isWholeNumber
public static boolean isWholeNumber(double doubleValue) -
isWholeNumber
public static boolean isWholeNumber(float floatValue) -
coerceWrappingError
-