FileDocCategorySizeDatePackage
TrueFalseType.javaAPI DocHibernate 3.2.5435Thu Jun 03 11:31:32 BST 2004org.hibernate.type

TrueFalseType.java

//$Id: TrueFalseType.java 3890 2004-06-03 16:31:32Z steveebersole $
package org.hibernate.type;

/**
 * <tt>true_false</tt>: A type that maps an SQL CHAR(1) to a Java Boolean.
 * @author Gavin King
 */
public class TrueFalseType extends CharBooleanType {

	protected final String getTrueString() {
		return "T";
	}
	protected final String getFalseString() {
		return "F";
	}
	public String getName() { return "true_false"; }

}