类 TinyIntTypeDescriptor
- java.lang.Object
-
- org.hibernate.type.descriptor.sql.TinyIntTypeDescriptor
-
- 所有已实现的接口:
Serializable,SqlTypeDescriptor
public class TinyIntTypeDescriptor extends Object implements SqlTypeDescriptor
Descriptor forTINYINThandling. Note that JDBC states that TINYINT should be mapped to either byte or short, but points out that using byte can in fact lead to loss of data.- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 static TinyIntTypeDescriptorINSTANCE
-
构造器概要
构造器 构造器 说明 TinyIntTypeDescriptor()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleancanBeRemapped()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.<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.intgetSqlType()Return the JDBC type-code for the column mapped by this type.-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.type.descriptor.sql.SqlTypeDescriptor
getJdbcRecommendedJavaTypeMapping
-
-
-
-
字段详细资料
-
INSTANCE
public static final TinyIntTypeDescriptor INSTANCE
-
-
方法详细资料
-
getSqlType
public int getSqlType()
从接口复制的说明:SqlTypeDescriptorReturn the JDBC type-code for the column mapped by this type.- 指定者:
getSqlType在接口中SqlTypeDescriptor- 返回:
- typeCode The JDBC type-code
-
canBeRemapped
public boolean canBeRemapped()
从接口复制的说明:SqlTypeDescriptorIs this descriptor available for remapping?- 指定者:
canBeRemapped在接口中SqlTypeDescriptor- 返回:
trueindicates this descriptor can be remapped; otherwise,false- 另请参阅:
WrapperOptions.remapSqlTypeDescriptor(org.hibernate.type.descriptor.sql.SqlTypeDescriptor),Dialect.remapSqlTypeDescriptor(org.hibernate.type.descriptor.sql.SqlTypeDescriptor)
-
getBinder
public <X> ValueBinder<X> getBinder(JavaTypeDescriptor<X> javaTypeDescriptor)
从接口复制的说明:SqlTypeDescriptorGet the binder (setting JDBC in-going parameter values) capable of handling values of the type described by the passed descriptor.- 指定者:
getBinder在接口中SqlTypeDescriptor- 参数:
javaTypeDescriptor- The descriptor describing the types of Java values to be bound- 返回:
- The appropriate binder.
-
getExtractor
public <X> ValueExtractor<X> getExtractor(JavaTypeDescriptor<X> javaTypeDescriptor)
从接口复制的说明:SqlTypeDescriptorGet the extractor (pulling out-going values from JDBC objects) capable of handling values of the type described by the passed descriptor.- 指定者:
getExtractor在接口中SqlTypeDescriptor- 参数:
javaTypeDescriptor- The descriptor describing the types of Java values to be extracted- 返回:
- The appropriate extractor
-
-