public class

TinyIntTypeDescriptor

extends Object
implements SqlTypeDescriptor
java.lang.Object
   ↳ org.hibernate.type.descriptor.sql.TinyIntTypeDescriptor

Class Overview

Descriptor for 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.

Summary

Fields
public static final TinyIntTypeDescriptor INSTANCE
Public Constructors
TinyIntTypeDescriptor()
Public Methods
<X> ValueBinder<X> getBinder(JavaTypeDescriptor<X> javaTypeDescriptor)
<X> ValueExtractor<X> getExtractor(JavaTypeDescriptor<X> javaTypeDescriptor)
int getSqlType()
Return the java.sql.Types JDBC type-code for the column mapped by this type.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.type.descriptor.sql.SqlTypeDescriptor

Fields

public static final TinyIntTypeDescriptor INSTANCE

Public Constructors

public TinyIntTypeDescriptor ()

Public Methods

public ValueBinder<X> getBinder (JavaTypeDescriptor<X> javaTypeDescriptor)

public ValueExtractor<X> getExtractor (JavaTypeDescriptor<X> javaTypeDescriptor)

public int getSqlType ()

Return the java.sql.Types JDBC type-code for the column mapped by this type.

Returns
  • The JDBC type-code