public class

BitTypeDescriptor

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

Class Overview

Descriptor for BIT handling.

Note that JDBC is very specific about its use of the type BIT to mean a single binary digit, whereas SQL defines BIT having a parameterized length.

Summary

Fields
public static final BitTypeDescriptor INSTANCE
Public Constructors
BitTypeDescriptor()
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 BitTypeDescriptor INSTANCE

Public Constructors

public BitTypeDescriptor ()

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