@Override
public Object getValueAt(int row, int col) {
if (dbObjects == null || dbObjects.size() == 0)
return null;
Customer customer = (Customer) dbObjects.get(row);
switch (col) {
case 0:
return customer.getId();
case 1:
return customer.getName();
case 2:
return customer.getHomePhoneNo();
case 3:
return customer.getMobilePhoneNo();
case 4:
return customer.getWorkPhoneNo();
case 5:
return customer.getEmail();
case 6:
customer.getAddress();
case 7:
return customer.getType();
case 8:
return customer.getNotes();
default:
return null;
}
}