public class

BlobTypeDescriptor

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

Class Overview

Descriptor for Blob handling.

Note, blobs really are mutable (their internal state can in fact be mutated). We simply treat them as immutable because we cannot properly check them for changes nor deep copy them.

Summary

Nested Classes
class BlobTypeDescriptor.BlobMutabilityPlan  
Fields
public static final BlobTypeDescriptor INSTANCE
Public Constructors
BlobTypeDescriptor()
Public Methods
boolean areEqual(Blob one, Blob another)
Determine if two instances are equal
int extractHashCode(Blob value)
Extract a proper hash code for this value.
Blob fromString(String string)
Comparator<Blob> getComparator()
Retrieve the natural comparator for this type.
String toString(Blob value)
<X> X unwrap(Blob value, Class<X> type, WrapperOptions options)
<X> Blob 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 BlobTypeDescriptor INSTANCE

Public Constructors

public BlobTypeDescriptor ()

Public Methods

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

public Comparator<Blob> getComparator ()

Retrieve the natural comparator for this type.

Returns
  • The natural comparator.

public String toString (Blob value)

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

public Blob wrap (X value, WrapperOptions options)