Skip to content

Instantly share code, notes, and snippets.

/**
* Generic loadData method. Any parameter that matches a column will
* have data loaded.
* @param resultSet The result set from the database query
* @throws IllegalAccessException The requested field couldn't be accessed
*/
private void loadData(ResultSet resultSet) throws IllegalAccessException {
Field[] fields = getClass().getDeclaredFields();
for (Field f : fields) {
@exallium
exallium / coffee.json
Created June 17, 2011 15:25 — forked from minichate/coffee.json
Timmys Run
{
"Christopher Troup": {
"1x": "Large Double-Double",
"1x": "24 Timbits"
},
"Alex Hart": {
Drink: {
"type": "Coffee",
"size": "XL",
@exallium
exallium / coffee.json
Created June 17, 2011 15:25 — forked from minichate/coffee.json
Timmys Run
{
"Christopher Troup": {
"1x": "Large Double-Double",
"1x": "24 Timbits"
}
}