FileDocCategorySizeDatePackage
CharArrayType.javaAPI DocHibernate 3.2.5449Fri Jun 09 22:24:06 BST 2006org.hibernate.type

CharArrayType.java

//$Id: $
package org.hibernate.type;

/**
 * put char[] into VARCHAR
 * @author Emmanuel Bernard
 */
public class CharArrayType extends AbstractCharArrayType {

	protected Object toExternalFormat(char[] chars) {
		return chars;
	}

	protected char[] toInternalFormat(Object chars) {
		return (char[]) chars;
	}

	public Class getReturnedClass() {
		return char[].class;
	}

	public String getName() { return "characters"; }
}