public class BigIntegerTypeDescriptor extends AbstractTypeDescriptor<java.math.BigInteger>
BigInteger handling.| Modifier and Type | Field and Description |
|---|---|
static BigIntegerTypeDescriptor |
INSTANCE |
| Constructor and Description |
|---|
BigIntegerTypeDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areEqual(java.math.BigInteger one,
java.math.BigInteger another)
Determine if two instances are equal
|
int |
extractHashCode(java.math.BigInteger value)
Extract a proper hash code for this value.
|
java.math.BigInteger |
fromString(java.lang.String string) |
java.lang.String |
toString(java.math.BigInteger value) |
<X> X |
unwrap(java.math.BigInteger value,
java.lang.Class<X> type,
WrapperOptions options)
Unwrap an instance of our handled Java type into the requested type.
|
<X> java.math.BigInteger |
wrap(X value,
WrapperOptions options)
Wrap a value as our handled Java type.
|
extractLoggableRepresentation, getComparator, getJavaTypeClass, getMutabilityPlan, unknownUnwrap, unknownWrappublic static final BigIntegerTypeDescriptor INSTANCE
public java.lang.String toString(java.math.BigInteger value)
public java.math.BigInteger fromString(java.lang.String string)
public int extractHashCode(java.math.BigInteger value)
AbstractTypeDescriptorextractHashCode in interface JavaTypeDescriptor<java.math.BigInteger>extractHashCode in class AbstractTypeDescriptor<java.math.BigInteger>value - The value for which to extract a hash code.public boolean areEqual(java.math.BigInteger one,
java.math.BigInteger another)
AbstractTypeDescriptorareEqual in interface JavaTypeDescriptor<java.math.BigInteger>areEqual in class AbstractTypeDescriptor<java.math.BigInteger>one - One instanceanother - The other instancepublic <X> X unwrap(java.math.BigInteger value,
java.lang.Class<X> type,
WrapperOptions options)
JavaTypeDescriptor<Integer> and we are asked to unwrap
the Integer value as a Long we would return something like
Long.valueOf( value.longValue() ).
Intended use is during PreparedStatement binding.X - The conversion type.value - The value to unwraptype - The type as which to unwrapoptions - The optionspublic <X> java.math.BigInteger wrap(X value,
WrapperOptions options)
ResultSet extraction.X - The conversion type.value - The value to wrap.options - The optionsCopyright © 2013. All Rights Reserved.