public boolean updateMember(String id, String newName) throws AppException {
boolean success = true;
MemberManager dataObjectManager = new MemberManager();
Member oldDataObject = null;
try {
oldDataObject = dataObjectManager.selectMember(id);
} catch (AppException ex) {
Logger.getLogger(AppController.class.getName()).log(Level.SEVERE, ex.getMessage(), ex);
throw ex;
}
if (oldDataObject != null) {
Member newDataObject = new Member(id, newName, oldDataObject.getMemberPoint());
try {
success = dataObjectManager.updateMember(oldDataObject, newDataObject);
} catch (AppException ex) {
Logger.getLogger(AppController.class.getName()).log(Level.SEVERE, ex.getMessage(), ex);
throw ex;
}
} else {