public interface

SingleColumnType

implements Type
org.hibernate.type.SingleColumnType<T>
Known Indirect Subclasses

Class Overview

Provide convenient methods for binding and extracting values for use with BasicType. Most of this is copied from the (now deprecated) NullableType.

Glaring omission are the forms that do not take

Summary

Public Methods
abstract T fromStringValue(String xml)
abstract Object get(ResultSet rs, String name, SessionImplementor session)
Get a column value from a result set, without worrying about the possibility of null values.
abstract Object get(ResultSet rs, String name)
This method is deprecated. Use get(ResultSet, String, SessionImplementor) instead.
abstract T nullSafeGet(ResultSet rs, String name, SessionImplementor session)
Get a column value from a result set by name.
abstract T nullSafeGet(ResultSet rs, String name)
This method is deprecated. Use nullSafeGet(ResultSet, String, SessionImplementor) instead
abstract void nullSafeSet(PreparedStatement st, T value, int index)
This method is deprecated. Use nullSafeSet(PreparedStatement, Object, int, SessionImplementor) instead.
abstract void set(PreparedStatement st, T value, int index)
This method is deprecated. Use set(PreparedStatement, Object, int, SessionImplementor) instead.
abstract void set(PreparedStatement st, T value, int index, SessionImplementor session)
Set a parameter value without worrying about the possibility of null values.
abstract int sqlType()
abstract String toString(T value)
[Expand]
Inherited Methods
From interface org.hibernate.type.Type

Public Methods

public abstract T fromStringValue (String xml)

public abstract Object get (ResultSet rs, String name, SessionImplementor session)

Get a column value from a result set, without worrying about the possibility of null values.

Parameters
rs The result set from which to extract the value.
name The name of the value to extract.
session The session from which the request originates
Returns
  • The extracted value.
Throws
HibernateException Generally some form of mismatch error.
SQLException Indicates problem making the JDBC call(s).

public abstract Object get (ResultSet rs, String name)

This method is deprecated.
Use get(ResultSet, String, SessionImplementor) instead.

DO NOT USER THIS FORM!

public abstract T nullSafeGet (ResultSet rs, String name, SessionImplementor session)

Get a column value from a result set by name.

Parameters
rs The result set from which to extract the value.
name The name of the value to extract.
session The session from which the request originates
Returns
  • The extracted value.
Throws
HibernateException Generally some form of mismatch error.
SQLException Indicates problem making the JDBC call(s).

public abstract T nullSafeGet (ResultSet rs, String name)

public abstract void nullSafeSet (PreparedStatement st, T value, int index)

This method is deprecated.
Use nullSafeSet(PreparedStatement, Object, int, SessionImplementor) instead.

DO NOT USE THIS FORM!

public abstract void set (PreparedStatement st, T value, int index)

This method is deprecated.
Use set(PreparedStatement, Object, int, SessionImplementor) instead.

DO NOT USE THIS FORM!

public abstract void set (PreparedStatement st, T value, int index, SessionImplementor session)

Set a parameter value without worrying about the possibility of null values. Called from nullSafeSet(PreparedStatement, T, int) after nullness checks have been performed.

Parameters
st The statement into which to bind the parameter value.
value The parameter value to bind.
index The position or index at which to bind the param value.
session The session from which the request originates
Throws
HibernateException Generally some form of mismatch error.
SQLException Indicates problem making the JDBC call(s).

public abstract int sqlType ()

public abstract String toString (T value)