return null;
} else {
return (M)new Integer(rs.getInt(index));
}
} else if (type == long.class) {
<BUG>return (M)new Long(rs.getLong(index));
</BUG>
} else if (type == Long.class) {
if (rs.getObject(index) == null) {
return null;

return null;
}
} else if (type == int.class) {
return (M)new Integer(rs.getInt(index));
} else if (type == Integer.class) {
if (rs.getObject(index) == null) {
return null;
