类 LongTypeDescriptor
- java.lang.Object
-
- org.hibernate.type.descriptor.java.AbstractTypeDescriptor<Long>
-
- org.hibernate.type.descriptor.java.LongTypeDescriptor
-
- 所有已实现的接口:
Serializable,BasicJavaDescriptor<Long>,JavaTypeDescriptor<Long>
public class LongTypeDescriptor extends AbstractTypeDescriptor<Long>
Descriptor forLonghandling.- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 static LongTypeDescriptorINSTANCE
-
构造器概要
构造器 构造器 说明 LongTypeDescriptor()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 LongfromString(String string)StringtoString(Long value)<X> Xunwrap(Long value, Class<X> type, WrapperOptions options)Unwrap an instance of our handled Java type into the requested type.<X> Longwrap(X value, WrapperOptions options)Wrap a value as our handled Java type.-
从类继承的方法 org.hibernate.type.descriptor.java.AbstractTypeDescriptor
areEqual, extractHashCode, extractLoggableRepresentation, getComparator, 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 LongTypeDescriptor INSTANCE
-
-
方法详细资料
-
unwrap
public <X> X unwrap(Long 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> Long 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.
-
-