@Override public void remove(Environment environment) { if (environment == null) { throw new IllegalArgumentException("Environment can not be removed, parameter null."); } dao.delete(environment); }
@Override public void create(Environment environment) { if (environment == null) { throw new IllegalArgumentException("Environment can not be created, parameter null."); } dao.persist(environment); }
@Override public Collection<Environment> findAll() { return dao.listAll(); }
@Override public Environment findById(Long id) { return dao.findById(id); }