This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Christopher Troup": { | |
"1x": "Large Double-Double", | |
"1x": "24 Timbits" | |
}, | |
"Alex Hart": { | |
Drink: { | |
"type": "Coffee", | |
"size": "XL", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Christopher Troup": { | |
"1x": "Large Double-Double", | |
"1x": "24 Timbits" | |
} | |
} |