public void insert(Model_Kantor kantor) throws ParseException { ArrayList<Model_Kantor> temp = view(); temp.add(kantor); ioFile.writeFile(convert(temp)); }
public void update(Model_Kantor kantor) throws ParseException { ArrayList<Model_Kantor> temp = view(); temp.set(getIndex(kantor.getId()), kantor); ioFile.writeFile(convert(temp)); }
public void init(ArrayList<Model_Kantor> kantor) throws ParseException { ioFile.writeFile(convert(kantor)); }
public void delete(String id) throws ParseException { ArrayList<Model_Kantor> temp = view(); temp.remove(getIndex(id)); ioFile.writeFile(convert(temp)); }