public abstract class

BasicBinder

extends Object
implements ValueBinder<X>
java.lang.Object
   ↳ org.hibernate.type.descriptor.sql.BasicBinder<J>

Class Overview

Convenience base implementation of ValueBinder

Summary

Public Constructors
BasicBinder(JavaTypeDescriptor<J> javaDescriptor, SqlTypeDescriptor sqlDescriptor)
Public Methods
final void bind(PreparedStatement st, J value, int index, WrapperOptions options)
JavaTypeDescriptor<J> getJavaDescriptor()
SqlTypeDescriptor getSqlDescriptor()
Protected Methods
abstract void doBind(PreparedStatement st, J value, int index, WrapperOptions options)
Perform the binding.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.type.descriptor.ValueBinder

Public Constructors

public BasicBinder (JavaTypeDescriptor<J> javaDescriptor, SqlTypeDescriptor sqlDescriptor)

Public Methods

public final void bind (PreparedStatement st, J value, int index, WrapperOptions options)

Throws
SQLException

public JavaTypeDescriptor<J> getJavaDescriptor ()

public SqlTypeDescriptor getSqlDescriptor ()

Protected Methods

protected abstract void doBind (PreparedStatement st, J value, int index, WrapperOptions options)

Perform the binding. Safe to assume that value is not null.

Parameters
st The prepared statement
value The value to bind (not null).
index The index at which to bind
options The binding options
Throws
SQLException Indicates a problem binding to the prepared statement.