public class

BigDecimalTypeDescriptor

extends AbstractTypeDescriptor<T>
java.lang.Object
   ↳ org.hibernate.type.descriptor.java.AbstractTypeDescriptor<T>
     ↳ org.hibernate.type.descriptor.java.BigDecimalTypeDescriptor

Class Overview

Descriptor for BigDecimal handling.

Summary

Fields
public static final BigDecimalTypeDescriptor INSTANCE
Public Constructors
BigDecimalTypeDescriptor()
Public Methods
boolean areEqual(BigDecimal one, BigDecimal another)
Determine if two instances are equal
int extractHashCode(BigDecimal value)
Extract a proper hash code for this value.
BigDecimal fromString(String string)
String toString(BigDecimal value)
<X> X unwrap(BigDecimal value, Class<X> type, WrapperOptions options)
<X> BigDecimal wrap(X value, WrapperOptions options)
[Expand]
Inherited Methods
From class org.hibernate.type.descriptor.java.AbstractTypeDescriptor
From class java.lang.Object
From interface org.hibernate.type.descriptor.java.JavaTypeDescriptor

Fields

public static final BigDecimalTypeDescriptor INSTANCE

Public Constructors

public BigDecimalTypeDescriptor ()

Public Methods

public boolean areEqual (BigDecimal one, BigDecimal another)

Determine if two instances are equal

Parameters
one One instance
another The other instance
Returns
  • True if the two are considered equal; false otherwise.

public int extractHashCode (BigDecimal value)

Extract a proper hash code for this value.

Parameters
value The value for which to extract a hash code.
Returns
  • The extracted hash code.

public BigDecimal fromString (String string)

public String toString (BigDecimal value)

public X unwrap (BigDecimal value, Class<X> type, WrapperOptions options)

public BigDecimal wrap (X value, WrapperOptions options)