org.hibernate.type

Class CharArrayType

Implemented Interfaces:
Serializable, Type

public class CharArrayType
extends AbstractCharArrayType

put char[] into VARCHAR
Author:
Emmanuel Bernard

Method Summary

String
getName()
Returns the abbreviated name of the type.
Class
getReturnedClass()
The class returned by nullSafeGet() methods.
protected Object
toExternalFormat(char[] chars)
Convert the char[] into the expected object type
protected char[]
toInternalFormat(Object chars)
Convert the object into the internal char[] representation

Methods inherited from class org.hibernate.type.AbstractCharArrayType

deepCopyNotNull, fromStringValue, get, getReturnedClass, objectToSQLString, set, sqlType, stringToObject, toExternalFormat, toInternalFormat, toString

Methods inherited from class org.hibernate.type.MutableType

deepCopy, deepCopyNotNull, isMutable, replace

Methods inherited from class org.hibernate.type.NullableType

fromStringValue, fromXMLNode, fromXMLString, get, getColumnSpan, isDirty, isEqual, isEqual, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, nullSafeSet, nullSafeToString, set, setToXMLNode, sqlType, sqlTypes, toColumnNullness, toLoggableString, toString, toXMLString

Methods inherited from class org.hibernate.type.AbstractType

assemble, beforeAssemble, compare, disassemble, getHashCode, getHashCode, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isEntityType, isEqual, isEqual, isModified, isSame, isXMLElement, replace, replaceNode, resolve, semiResolve

Method Details

getName

public String getName()
Returns the abbreviated name of the type.
Specified by:
getName in interface Type
Returns:
String the Hibernate type name

getReturnedClass

public Class getReturnedClass()
The class returned by nullSafeGet() methods. This is used to establish the class of an array of this type.
Specified by:
getReturnedClass in interface Type
Overrides:
getReturnedClass in interface AbstractCharArrayType
Returns:
Class

toExternalFormat

protected Object toExternalFormat(char[] chars)
Convert the char[] into the expected object type
Overrides:
toExternalFormat in interface AbstractCharArrayType

toInternalFormat

protected char[] toInternalFormat(Object chars)
Convert the object into the internal char[] representation
Overrides:
toInternalFormat in interface AbstractCharArrayType