FileDocCategorySizeDatePackage
AdaptedImmutableType.javaAPI DocHibernate 3.2.51617Mon Jun 20 04:17:00 BST 2005org.hibernate.type

AdaptedImmutableType

public class AdaptedImmutableType extends ImmutableType
Optimize a mutable type, if the user promises not to mutable the instances.
author
Gavin King

Fields Summary
private final NullableType
mutableType
Constructors Summary
public AdaptedImmutableType(NullableType mutableType)

		this.mutableType = mutableType;
	
Methods Summary
public intcompare(java.lang.Object x, java.lang.Object y, org.hibernate.EntityMode entityMode)

		return mutableType.compare(x, y, entityMode);
	
public java.lang.ObjectfromStringValue(java.lang.String xml)

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

		return mutableType.get(rs, name);
	
public intgetHashCode(java.lang.Object x, org.hibernate.EntityMode entityMode)

		return mutableType.getHashCode(x, entityMode);
	
public java.lang.StringgetName()

		return "imm_" + mutableType.getName();
	
public java.lang.ClassgetReturnedClass()

		return mutableType.getReturnedClass();
	
public booleanisEqual(java.lang.Object x, java.lang.Object y)

		return mutableType.isEqual(x, y);
	
public voidset(java.sql.PreparedStatement st, java.lang.Object value, int index)

		mutableType.set(st, value, index);
	
public intsqlType()

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

		return mutableType.toString(value);