类 ClobTypeDescriptor
- java.lang.Object
-
- org.hibernate.type.descriptor.java.AbstractTypeDescriptor<Clob>
-
- org.hibernate.type.descriptor.java.ClobTypeDescriptor
-
- 所有已实现的接口:
Serializable,BasicJavaDescriptor<Clob>,JavaTypeDescriptor<Clob>
public class ClobTypeDescriptor extends AbstractTypeDescriptor<Clob>
Descriptor forClobhandling. Note,clobsreally are mutable (their internal state can in fact be mutated). We simply treat them as immutable because we cannot properly check them for changes nor deep copy them.- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classClobTypeDescriptor.ClobMutabilityPlan
-
字段概要
字段 修饰符和类型 字段 说明 static ClobTypeDescriptorINSTANCE
-
构造器概要
构造器 构造器 说明 ClobTypeDescriptor()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanareEqual(Clob one, Clob another)Determine if two instances are equalintextractHashCode(Clob value)Extract a proper hash code for this value.StringextractLoggableRepresentation(Clob value)Extract a loggable representation of the value.ClobfromString(String string)Comparator<Clob>getComparator()Retrieve the natural comparator for this type.StringtoString(Clob value)<X> Xunwrap(Clob value, Class<X> type, WrapperOptions options)Unwrap an instance of our handled Java type into the requested type.<X> Clobwrap(X value, WrapperOptions options)Wrap a value as our handled Java type.-
从类继承的方法 org.hibernate.type.descriptor.java.AbstractTypeDescriptor
getJavaType, getJavaTypeClass, getMutabilityPlan, unknownUnwrap, unknownWrap
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.type.descriptor.java.BasicJavaDescriptor
getJdbcRecommendedSqlType
-
-
-
-
字段详细资料
-
INSTANCE
public static final ClobTypeDescriptor INSTANCE
-
-
方法详细资料
-
extractLoggableRepresentation
public String extractLoggableRepresentation(Clob value)
从接口复制的说明:JavaTypeDescriptorExtract a loggable representation of the value.- 指定者:
extractLoggableRepresentation在接口中JavaTypeDescriptor<Clob>- 覆盖:
extractLoggableRepresentation在类中AbstractTypeDescriptor<Clob>- 参数:
value- The value for which to extract a loggable representation.- 返回:
- The loggable representation
-
getComparator
public Comparator<Clob> getComparator()
从接口复制的说明:JavaTypeDescriptorRetrieve the natural comparator for this type.- 指定者:
getComparator在接口中JavaTypeDescriptor<Clob>- 覆盖:
getComparator在类中AbstractTypeDescriptor<Clob>
-
extractHashCode
public int extractHashCode(Clob value)
从接口复制的说明:JavaTypeDescriptorExtract a proper hash code for this value.- 指定者:
extractHashCode在接口中JavaTypeDescriptor<Clob>- 覆盖:
extractHashCode在类中AbstractTypeDescriptor<Clob>- 参数:
value- The value for which to extract a hash code.- 返回:
- The extracted hash code.
-
areEqual
public boolean areEqual(Clob one, Clob another)
从接口复制的说明:JavaTypeDescriptorDetermine if two instances are equal- 指定者:
areEqual在接口中JavaTypeDescriptor<Clob>- 覆盖:
areEqual在类中AbstractTypeDescriptor<Clob>- 参数:
one- One instanceanother- The other instance- 返回:
- True if the two are considered equal; false otherwise.
-
unwrap
public <X> X unwrap(Clob value, Class<X> type, WrapperOptions options)
从接口复制的说明:JavaTypeDescriptorUnwrap an instance of our handled Java type into the requested type. As an example, if this is aJavaTypeDescriptor<Integer>and we are asked to unwrap theInteger valueas aLongwe would return something likeLong.valueOf( value.longValue() ). Intended use is duringPreparedStatementbinding.- 类型参数:
X- The conversion type.- 参数:
value- The value to unwraptype- The type as which to unwrapoptions- The options- 返回:
- The unwrapped value.
-
wrap
public <X> Clob wrap(X value, WrapperOptions options)
从接口复制的说明:JavaTypeDescriptorWrap a value as our handled Java type. Intended use is duringResultSetextraction.- 类型参数:
X- The conversion type.- 参数:
value- The value to wrap.options- The options- 返回:
- The wrapped value.
-
-