接口 SqlTypeDescriptor
-
- 所有超级接口:
Serializable
- 所有已知实现类:
AbstractHANADialect.HANABlobTypeDescriptor,AttributeConverterSqlTypeDescriptorAdapter,BigIntTypeDescriptor,BinaryTypeDescriptor,BitTypeDescriptor,BlobTypeDescriptor,BooleanTypeDescriptor,CharTypeDescriptor,ClobTypeDescriptor,DateTypeDescriptor,DecimalTypeDescriptor,DoubleTypeDescriptor,FloatTypeDescriptor,IntegerTypeDescriptor,LongNVarcharTypeDescriptor,LongVarbinaryTypeDescriptor,LongVarcharTypeDescriptor,NCharTypeDescriptor,NClobTypeDescriptor,NumericTypeDescriptor,NVarcharTypeDescriptor,PostgresUUIDType.PostgresUUIDSqlTypeDescriptor,RealTypeDescriptor,SmallIntTypeDescriptor,SqlTypeDescriptorRegistry.ObjectSqlTypeDescriptor,TimestampTypeDescriptor,TimeTypeDescriptor,TinyIntTypeDescriptor,VarbinaryTypeDescriptor,VarcharTypeDescriptor
public interface SqlTypeDescriptor extends Serializable
Descriptor for the SQL/JDBC side of a value mapping. NOTE : Implementations should be registered with theSqlTypeDescriptor. The built-in Hibernate implementations register themselves on construction.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 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.default <T> BasicJavaDescriptor<T>getJdbcRecommendedJavaTypeMapping(TypeConfiguration typeConfiguration)intgetSqlType()Return the JDBC type-code for the column mapped by this type.
-
-
-
方法详细资料
-
getSqlType
int getSqlType()
Return the JDBC type-code for the column mapped by this type.- 返回:
- typeCode The JDBC type-code
-
canBeRemapped
boolean canBeRemapped()
Is this descriptor available for remapping?- 返回:
trueindicates this descriptor can be remapped; otherwise,false- 另请参阅:
WrapperOptions.remapSqlTypeDescriptor(org.hibernate.type.descriptor.sql.SqlTypeDescriptor),Dialect.remapSqlTypeDescriptor(org.hibernate.type.descriptor.sql.SqlTypeDescriptor)
-
getJdbcRecommendedJavaTypeMapping
default <T> BasicJavaDescriptor<T> getJdbcRecommendedJavaTypeMapping(TypeConfiguration typeConfiguration)
-
getBinder
<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.- 参数:
javaTypeDescriptor- The descriptor describing the types of Java values to be bound- 返回:
- The appropriate binder.
-
getExtractor
<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.- 参数:
javaTypeDescriptor- The descriptor describing the types of Java values to be extracted- 返回:
- The appropriate extractor
-
-