org.hibernate.type
Class CharacterArrayType

java.lang.Object
  extended by org.hibernate.type.AbstractType
      extended by org.hibernate.type.NullableType
          extended by org.hibernate.type.MutableType
              extended by org.hibernate.type.AbstractCharArrayType
                  extended by org.hibernate.type.CharacterArrayType
All Implemented Interfaces:
Serializable, Type

public class CharacterArrayType
extends AbstractCharArrayType

Bridge Character[] and VARCHAR

Author:
Emmanuel Bernard
See Also:
Serialized Form

Constructor Summary
CharacterArrayType()
           
 
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 value)
          Convert the object into the internal char[] representation
 
Methods inherited from class org.hibernate.type.AbstractCharArrayType
deepCopyNotNull, fromStringValue, get, objectToSQLString, set, sqlType, stringToObject, toString
 
Methods inherited from class org.hibernate.type.MutableType
deepCopy, isMutable, replace
 
Methods inherited from class org.hibernate.type.NullableType
fromXMLNode, fromXMLString, getColumnSpan, isDirty, isEqual, isEqual, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, nullSafeSet, nullSafeToString, setToXMLNode, sqlTypes, toColumnNullness, toLoggableString, toXMLString
 
Methods inherited from class org.hibernate.type.AbstractType
assemble, beforeAssemble, compare, disassemble, getHashCode, getHashCode, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isEntityType, isEqual, isModified, isSame, isXMLElement, replace, replaceNode, resolve, semiResolve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharacterArrayType

public CharacterArrayType()
Method Detail

toExternalFormat

protected Object toExternalFormat(char[] chars)
Description copied from class: AbstractCharArrayType
Convert the char[] into the expected object type

Specified by:
toExternalFormat in class AbstractCharArrayType

toInternalFormat

protected char[] toInternalFormat(Object value)
Description copied from class: AbstractCharArrayType
Convert the object into the internal char[] representation

Specified by:
toInternalFormat in class AbstractCharArrayType

getReturnedClass

public Class getReturnedClass()
Description copied from interface: Type
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
Specified by:
getReturnedClass in class AbstractCharArrayType
Returns:
Class

getName

public String getName()
Description copied from interface: Type
Returns the abbreviated name of the type.

Returns:
String the Hibernate type name


Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.