package xyz.veronie.bgg.localdb; import java.io.File; import java.util.ArrayList; import java.util.List; import xyz.veronie.bgg.result.ThingMetaData; public class LocalDbAdapterService { private SqliteController sqliteController; public LocalDbAdapterService() { initDb(); } private void initDb() { File dbFile = new File(SqliteController.DB_PATH); if(!dbFile.exists()) { SqliteController.getInstance().createSchema(); } sqliteController = SqliteController.getInstance(); } /// add a list of things with the given name public void storeThingList(List things, String name) { sqliteController.openThingList(name); sqliteController.addToThingList(name, things); } /// retrieve a list of things with the given name public List retrieveThingList(String name) { // TODO: implement retrieve thing list return new ArrayList(); } }