public CustomerGroup getCustomerGroupById(String rawCustomerGroupId) { long customerGroupId = -1; try { customerGroupId = Long.parseLong(rawCustomerGroupId); } catch (NumberFormatException e) { throw new IllegalArgumentException(e); } return customerGroupDao.getCustomerGroupById(customerGroupId); }
public void deleteCustomerGroup(CustomerGroup customerGroup) { customerGroupDao.deleteCustomerGroup(customerGroup); }
public void saveOrUpdateCustomerGroup(CustomerGroup customerGroup) { customerGroupDao.saveOrUpdateCustomerGroup(customerGroup); }
public List<CustomerGroup> findCustomerGroup(CustomerGroup criteria) { return customerGroupDao.findByExample(criteria); }
public CustomerGroup getCustomerGroupByCode(String code) { return customerGroupDao.getCustomerGroupByCode(code); }