org.hibernate.type.descriptor.sql
Class BlobTypeDescriptor

java.lang.Object
  extended by org.hibernate.type.descriptor.sql.BlobTypeDescriptor
All Implemented Interfaces:
Serializable, SqlTypeDescriptor

public abstract class BlobTypeDescriptor
extends Object
implements SqlTypeDescriptor

Descriptor for BLOB handling.

Author:
Steve Ebersole
See Also:
Serialized Form

Field Summary
static BlobTypeDescriptor BLOB_BINDING
           
static BlobTypeDescriptor DEFAULT
           
static BlobTypeDescriptor PRIMITIVE_ARRAY_BINDING
           
static BlobTypeDescriptor STREAM_BINDING
           
 
Method Summary
<X> ValueBinder<X>
getBinder(JavaTypeDescriptor<X> javaTypeDescriptor)
           
protected abstract
<X> BasicBinder<X>
getBlobBinder(JavaTypeDescriptor<X> javaTypeDescriptor)
           
<X> ValueExtractor<X>
getExtractor(JavaTypeDescriptor<X> javaTypeDescriptor)
           
 int getSqlType()
          Return the JDBC type-code for the column mapped by this type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final BlobTypeDescriptor DEFAULT

PRIMITIVE_ARRAY_BINDING

public static final BlobTypeDescriptor PRIMITIVE_ARRAY_BINDING

BLOB_BINDING

public static final BlobTypeDescriptor BLOB_BINDING

STREAM_BINDING

public static final BlobTypeDescriptor STREAM_BINDING
Method Detail

getBlobBinder

protected abstract <X> BasicBinder<X> getBlobBinder(JavaTypeDescriptor<X> javaTypeDescriptor)

getExtractor

public <X> ValueExtractor<X> getExtractor(JavaTypeDescriptor<X> javaTypeDescriptor)
Specified by:
getExtractor in interface SqlTypeDescriptor

getSqlType

public int getSqlType()
Description copied from interface: SqlTypeDescriptor
Return the JDBC type-code for the column mapped by this type.

Specified by:
getSqlType in interface SqlTypeDescriptor
Returns:
The JDBC type-code

getBinder

public <X> ValueBinder<X> getBinder(JavaTypeDescriptor<X> javaTypeDescriptor)
Specified by:
getBinder in interface SqlTypeDescriptor


Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.