if (obj == null) {
setLastValueNull(true);
return null;
}
if (obj instanceof Struct) {
Struct struct = (Struct) obj;
Map map = getTypeMap();
Class class1 = (Class) map.get(struct.getSQLTypeName());
if (class1 != null) {
SQLData sqldata = null;
try {
sqldata = (SQLData) class1.newInstance();
} catch (InstantiationException instantiationexception) {
throw new SQLException("Unable to instantiate: " + instantiationexception.getMessage());
} catch (IllegalAccessException illegalaccessexception) {
throw new SQLException("Unable to instantiate: " + illegalaccessexception.getMessage());
}
Object aobj[] = struct.getAttributes(map);
SQLInputImpl sqlinputimpl = new SQLInputImpl(aobj, map);
sqldata.readSQL(sqlinputimpl, struct.getSQLTypeName());
return sqldata;
}
}
return obj;
}