org.hibernate.type.descriptor.sql
Class VarcharTypeDescriptor

java.lang.Object
  extended by org.hibernate.type.descriptor.sql.VarcharTypeDescriptor
All Implemented Interfaces:
Serializable, SqlTypeDescriptor
Direct Known Subclasses:
CharTypeDescriptor, LongVarcharTypeDescriptor

public class VarcharTypeDescriptor
extends Object
implements SqlTypeDescriptor

Descriptor for VARCHAR handling.

Author:
Steve Ebersole
See Also:
Serialized Form

Field Summary
static VarcharTypeDescriptor INSTANCE
           
 
Constructor Summary
VarcharTypeDescriptor()
           
 
Method Summary
<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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final VarcharTypeDescriptor INSTANCE
Constructor Detail

VarcharTypeDescriptor

public VarcharTypeDescriptor()
Method Detail

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:
The JDBC type-code

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-2010 Red Hat, Inc. All Rights Reserved.