public abstract class

AbstractLobType

extends AbstractType
implements Serializable
java.lang.Object
   ↳ org.hibernate.type.AbstractType
     ↳ org.hibernate.type.AbstractLobType
Known Direct Subclasses
Known Indirect Subclasses

This class is deprecated.
No replacement.

Summary

Public Constructors
AbstractLobType()
Public Methods
int getColumnSpan(Mapping mapping)
int getHashCode(Object x, EntityMode entityMode)
Get a hash code, consistent with persistence "equality".
String getName()
boolean isDirty(Object old, Object current, boolean[] checkable, SessionImplementor session)
boolean isEqual(Object x, Object y, EntityMode entityMode)
Compare two instances of the class mapped by this type for persistence "equality" (equality of persistent state).
Object nullSafeGet(ResultSet rs, String name, SessionImplementor session, Object owner)
Object nullSafeGet(ResultSet rs, String[] names, SessionImplementor session, Object owner)
void nullSafeSet(PreparedStatement st, Object value, int index, boolean[] settable, SessionImplementor session)
void nullSafeSet(PreparedStatement st, Object value, int index, SessionImplementor session)
Protected Methods
abstract Object get(ResultSet rs, String name)
abstract void set(PreparedStatement st, Object value, int index, SessionImplementor session)
[Expand]
Inherited Methods
From class org.hibernate.type.AbstractType
From class java.lang.Object
From interface org.hibernate.type.Type

Public Constructors

public AbstractLobType ()

Public Methods

public int getColumnSpan (Mapping mapping)

public int getHashCode (Object x, EntityMode entityMode)

Get a hash code, consistent with persistence "equality". Again for most types the normal usage is to delegate to the value's #hashCode.

Parameters
x The value for which to retrieve a hash code
entityMode The entity mode of the value.
Returns
  • The hash code

public String getName ()

public boolean isDirty (Object old, Object current, boolean[] checkable, SessionImplementor session)

public boolean isEqual (Object x, Object y, EntityMode entityMode)

Compare two instances of the class mapped by this type for persistence "equality" (equality of persistent state).

This should always equate to some form of comparison of the value's internal state. As an example, for something like a date the comparison should be based on its internal "time" state based on the specific portion it is meant to represent (timestamp, date, time).

Parameters
x The first value
y The second value
entityMode The entity mode of the values.
Returns
  • True if there are considered equal (see discussion above).

public Object nullSafeGet (ResultSet rs, String name, SessionImplementor session, Object owner)

public Object nullSafeGet (ResultSet rs, String[] names, SessionImplementor session, Object owner)

public void nullSafeSet (PreparedStatement st, Object value, int index, boolean[] settable, SessionImplementor session)

public void nullSafeSet (PreparedStatement st, Object value, int index, SessionImplementor session)

Protected Methods

protected abstract Object get (ResultSet rs, String name)

Throws
SQLException

protected abstract void set (PreparedStatement st, Object value, int index, SessionImplementor session)

Throws
SQLException