// private static final String SQL_DELETE_ATTR =
// "delete from attribute where tablename = ? and tablerow_id = ?";
private static final class AttributeMapper implements RowMapper<Attribute> {
public Attribute mapRow(ResultSet rs, int rowNum) throws SQLException {
Attribute attr = new Attribute();
attr.setAttrKey(rs.getString("attr_key"));
attr.setAttrValue(rs.getString("attr_value"));
attr.setTableID(rs.getInt("tablerow_id"));
attr.setTablename(rs.getString("tablename"));
attr.setSource(rs.getString("source"));
return attr;
}