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

StringType

public class StringType extends ImmutableType implements DiscriminatorType
string: A type that maps an SQL VARCHAR to a Java String.
author
Gavin King

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

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

		return rs.getString(name);
	
public java.lang.StringgetName()

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

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

		return '\'" + (String) value + '\'";
	
public voidset(java.sql.PreparedStatement st, java.lang.Object value, int index)

		st.setString(index, (String) value);
	
public intsqlType()

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

		return xml;
	
public java.lang.StringtoString(java.lang.Object value)

		return (String) value;