FileDocCategorySizeDatePackage
BooleanType.javaAPI DocHibernate 3.2.51380Wed Aug 10 15:23:56 BST 2005org.hibernate.type

BooleanType

public class BooleanType extends PrimitiveType implements DiscriminatorType
boolean: A type that maps an SQL BIT to a Java Boolean.
author
Gavin King

Fields Summary
Constructors Summary
Methods Summary
public java.lang.ObjectfromStringValue(java.lang.String xml)

		return Boolean.valueOf(xml);
	
public java.lang.Objectget(java.sql.ResultSet rs, java.lang.String name)

		return rs.getBoolean(name) ? Boolean.TRUE : Boolean.FALSE;
	
public java.io.SerializablegetDefaultValue()

		return Boolean.FALSE;
	
public java.lang.StringgetName()

 return "boolean"; 
public java.lang.ClassgetPrimitiveClass()

		return boolean.class;
	
public java.lang.ClassgetReturnedClass()

		return Boolean.class;
	
public java.lang.StringobjectToSQLString(java.lang.Object value, org.hibernate.dialect.Dialect dialect)

		return dialect.toBooleanValueString( ( (Boolean) value ).booleanValue() );
	
public voidset(java.sql.PreparedStatement st, java.lang.Object value, int index)

		st.setBoolean( index, ( (Boolean) value ).booleanValue() );
	
public intsqlType()

		return Types.BIT;
	
public java.lang.ObjectstringToObject(java.lang.String xml)

		return fromStringValue(xml);