public class

SerializableTypeDescriptor

extends AbstractTypeDescriptor<T>
java.lang.Object
   ↳ org.hibernate.type.descriptor.java.AbstractTypeDescriptor<T>
     ↳ org.hibernate.type.descriptor.java.SerializableTypeDescriptor<T extends java.io.Serializable>

Class Overview

TODO : javadoc

Summary

Nested Classes
class SerializableTypeDescriptor.SerializableMutabilityPlan<S extends Serializable>  
Public Constructors
SerializableTypeDescriptor(Class<T> type)
Public Methods
boolean areEqual(T one, T another)
Determine if two instances are equal
int extractHashCode(T value)
Extract a proper hash code for this value.
T fromString(String string)
String toString(T value)
<X> X unwrap(T value, Class<X> type, WrapperOptions options)
<X> T wrap(X value, WrapperOptions options)
Protected Methods
T fromBytes(byte[] bytes)
byte[] toBytes(T value)
[Expand]
Inherited Methods
From class org.hibernate.type.descriptor.java.AbstractTypeDescriptor
From class java.lang.Object
From interface org.hibernate.type.descriptor.java.JavaTypeDescriptor

Public Constructors

public SerializableTypeDescriptor (Class<T> type)

Public Methods

public boolean areEqual (T one, T 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 (T 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 T fromString (String string)

public String toString (T value)

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

public T wrap (X value, WrapperOptions options)

Protected Methods

protected T fromBytes (byte[] bytes)

protected byte[] toBytes (T value)