public class TinyIntTypeDescriptor extends java.lang.Object implements SqlTypeDescriptor
TINYINT handling.
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.| Modifier and Type | Field and Description |
|---|---|
static TinyIntTypeDescriptor |
INSTANCE |
| Constructor and Description |
|---|
TinyIntTypeDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeRemapped()
Is this descriptor available for remapping?
|
<X> ValueBinder<X> |
getBinder(JavaTypeDescriptor<X> javaTypeDescriptor) |
<X> ValueExtractor<X> |
getExtractor(JavaTypeDescriptor<X> javaTypeDescriptor) |
int |
getSqlType()
Return the JDBC type-code for the column mapped by this type.
|
public static final TinyIntTypeDescriptor INSTANCE
public int getSqlType()
SqlTypeDescriptorgetSqlType in interface SqlTypeDescriptorpublic boolean canBeRemapped()
SqlTypeDescriptorcanBeRemapped in interface SqlTypeDescriptortrue indicates this descriptor can be remapped; otherwise, falseWrapperOptions.remapSqlTypeDescriptor(org.hibernate.type.descriptor.sql.SqlTypeDescriptor),
Dialect.remapSqlTypeDescriptor(org.hibernate.type.descriptor.sql.SqlTypeDescriptor)public <X> ValueBinder<X> getBinder(JavaTypeDescriptor<X> javaTypeDescriptor)
getBinder in interface SqlTypeDescriptorpublic <X> ValueExtractor<X> getExtractor(JavaTypeDescriptor<X> javaTypeDescriptor)
getExtractor in interface SqlTypeDescriptorCopyright © 2001-2013 Red Hat, Inc. All Rights Reserved.