public class

PrimitiveByteArrayTypeDescriptor

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

Class Overview

Descriptor for byte[] handling.

Summary

Fields
public static final PrimitiveByteArrayTypeDescriptor INSTANCE
Public Constructors
PrimitiveByteArrayTypeDescriptor()
Public Methods
boolean areEqual(byte[] one, byte[] another)
Determine if two instances are equal
int extractHashCode(byte[] bytes)
Extract a proper hash code for this value.
byte[] fromString(String string)
String toString(byte[] bytes)
<X> X unwrap(byte[] value, Class<X> type, WrapperOptions options)
<X> byte[] 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 PrimitiveByteArrayTypeDescriptor INSTANCE

Public Constructors

public PrimitiveByteArrayTypeDescriptor ()

Public Methods

public boolean areEqual (byte[] one, byte[] 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 (byte[] bytes)

Extract a proper hash code for this value.

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

public byte[] fromString (String string)

public String toString (byte[] bytes)

public X unwrap (byte[] value, Class<X> type, WrapperOptions options)

public byte[] wrap (X value, WrapperOptions options)