Class ClobTypeDescriptor
- java.lang.Object
-
- org.hibernate.type.descriptor.sql.ClobTypeDescriptor
-
- All Implemented Interfaces:
java.io.Serializable
,SqlTypeDescriptor
public abstract class ClobTypeDescriptor extends java.lang.Object implements SqlTypeDescriptor
Descriptor forCLOB
handling.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ClobTypeDescriptor
CLOB_BINDING
static ClobTypeDescriptor
DEFAULT
static ClobTypeDescriptor
STREAM_BINDING
static ClobTypeDescriptor
STREAM_BINDING_EXTRACTING
-
Constructor Summary
Constructors Constructor Description ClobTypeDescriptor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
canBeRemapped()
Is this descriptor available for remapping?<X> ValueBinder<X>
getBinder(JavaTypeDescriptor<X> javaTypeDescriptor)
Get the binder (setting JDBC in-going parameter values) capable of handling values of the type described by the passed descriptor.protected abstract <X> BasicBinder<X>
getClobBinder(JavaTypeDescriptor<X> javaTypeDescriptor)
<X> ValueExtractor<X>
getExtractor(JavaTypeDescriptor<X> javaTypeDescriptor)
Get the extractor (pulling out-going values from JDBC objects) capable of handling values of the type described by the passed descriptor.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
-
Methods inherited from interface org.hibernate.type.descriptor.sql.SqlTypeDescriptor
getJdbcRecommendedJavaTypeMapping
-
-
-
-
Field Detail
-
DEFAULT
public static final ClobTypeDescriptor DEFAULT
-
CLOB_BINDING
public static final ClobTypeDescriptor CLOB_BINDING
-
STREAM_BINDING
public static final ClobTypeDescriptor STREAM_BINDING
-
STREAM_BINDING_EXTRACTING
public static final ClobTypeDescriptor STREAM_BINDING_EXTRACTING
-
-
Method Detail
-
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 interfaceSqlTypeDescriptor
- Returns:
- typeCode The JDBC type-code
-
canBeRemapped
public boolean canBeRemapped()
Description copied from interface:SqlTypeDescriptor
Is this descriptor available for remapping?- Specified by:
canBeRemapped
in interfaceSqlTypeDescriptor
- Returns:
true
indicates this descriptor can be remapped; otherwise,false
- See Also:
WrapperOptions.remapSqlTypeDescriptor(org.hibernate.type.descriptor.sql.SqlTypeDescriptor)
,Dialect.remapSqlTypeDescriptor(org.hibernate.type.descriptor.sql.SqlTypeDescriptor)
-
getExtractor
public <X> ValueExtractor<X> getExtractor(JavaTypeDescriptor<X> javaTypeDescriptor)
Description copied from interface:SqlTypeDescriptor
Get the extractor (pulling out-going values from JDBC objects) capable of handling values of the type described by the passed descriptor.- Specified by:
getExtractor
in interfaceSqlTypeDescriptor
- Parameters:
javaTypeDescriptor
- The descriptor describing the types of Java values to be extracted- Returns:
- The appropriate extractor
-
getClobBinder
protected abstract <X> BasicBinder<X> getClobBinder(JavaTypeDescriptor<X> javaTypeDescriptor)
-
getBinder
public <X> ValueBinder<X> getBinder(JavaTypeDescriptor<X> javaTypeDescriptor)
Description copied from interface:SqlTypeDescriptor
Get the binder (setting JDBC in-going parameter values) capable of handling values of the type described by the passed descriptor.- Specified by:
getBinder
in interfaceSqlTypeDescriptor
- Parameters:
javaTypeDescriptor
- The descriptor describing the types of Java values to be bound- Returns:
- The appropriate binder.
-
-