org.hibernate.type.descriptor.sql
Class BitTypeDescriptor
java.lang.Object
org.hibernate.type.descriptor.sql.BitTypeDescriptor
- All Implemented Interfaces:
- Serializable, SqlTypeDescriptor
public class BitTypeDescriptor
- extends Object
- implements SqlTypeDescriptor
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.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final BitTypeDescriptor INSTANCE
BitTypeDescriptor
public BitTypeDescriptor()
getSqlType
public int getSqlType()
- Description copied from interface:
SqlTypeDescriptor
- Return the JDBC type-code for the column mapped by this type.
- Specified by:
getSqlType
in interface SqlTypeDescriptor
- Returns:
- typeCode The JDBC type-code
canBeRemapped
public boolean canBeRemapped()
- Description copied from interface:
SqlTypeDescriptor
- Is this descriptor available for remapping?
- Specified by:
canBeRemapped
in interface SqlTypeDescriptor
- Returns:
true
indicates this descriptor can be remapped; otherwise, false
- See Also:
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)
- Specified by:
getBinder
in interface SqlTypeDescriptor
getExtractor
public <X> ValueExtractor<X> getExtractor(JavaTypeDescriptor<X> javaTypeDescriptor)
- Specified by:
getExtractor
in interface SqlTypeDescriptor
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.