Methods Summary |
---|
public java.lang.Object | fromStringValue(java.lang.String xml)
try {
return ReflectHelper.classForName(xml);
}
catch (ClassNotFoundException cnfe) {
throw new HibernateException("could not parse xml", cnfe);
}
|
public java.lang.Object | get(java.sql.ResultSet rs, java.lang.String name)
String str = (String) Hibernate.STRING.get(rs, name);
if (str == null) {
return null;
}
else {
try {
return ReflectHelper.classForName(str);
}
catch (ClassNotFoundException cnfe) {
throw new HibernateException("Class not found: " + str);
}
}
|
public java.lang.String | getName()
return "class";
|
public java.lang.Class | getReturnedClass()
return Class.class;
|
public void | set(java.sql.PreparedStatement st, java.lang.Object value, int index)
//TODO: would be nice to handle proxy classes elegantly!
Hibernate.STRING.set(st, ( (Class) value ).getName(), index);
|
public int | sqlType()
return Hibernate.STRING.sqlType();
|
public java.lang.String | toString(java.lang.Object value)
return ( (Class) value ).getName();
|