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

TimeZoneType

public class TimeZoneType extends ImmutableType implements LiteralType
timezone: A type that maps an SQL VARCHAR to a java.util.TimeZone
see
java.util.TimeZone
author
Gavin King

Fields Summary
Constructors Summary
Methods Summary
public intcompare(java.lang.Object x, java.lang.Object y, org.hibernate.EntityMode entityMode)

		return ( (TimeZone) x ).getID().compareTo( ( (TimeZone) y ).getID() );
	
public java.lang.ObjectfromStringValue(java.lang.String xml)

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

		String id = (String) Hibernate.STRING.nullSafeGet(rs, name);
		return (id==null) ? null : TimeZone.getTimeZone(id);
	
public java.lang.StringgetName()

		return "timezone";
	
public java.lang.ClassgetReturnedClass()

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

		return ( (LiteralType) Hibernate.STRING ).objectToSQLString(
			( (TimeZone) value ).getID(), dialect
		);
	
public voidset(java.sql.PreparedStatement st, java.lang.Object value, int index)

		Hibernate.STRING.set(st, ( (TimeZone) value ).getID(), index);
	
public intsqlType()

		return Hibernate.STRING.sqlType();
	
public java.lang.StringtoString(java.lang.Object value)

		return ( (TimeZone) value ).getID();