Move stuff to bridge package

This commit is contained in:
Winston Li 2016-08-23 19:16:38 +01:00 committed by Michael Mazour
parent f3eb32e2ec
commit d2b628d904
12 changed files with 19 additions and 39 deletions

View file

@ -2,15 +2,15 @@ package uk.ac.ic.wlgitbridge.bridge.db.sqlite;
import uk.ac.ic.wlgitbridge.bridge.db.DBInitException;
import uk.ac.ic.wlgitbridge.bridge.db.DBStore;
import uk.ac.ic.wlgitbridge.data.model.db.sql.query.GetLatestVersionForProjectSQLQuery;
import uk.ac.ic.wlgitbridge.data.model.db.sql.query.GetPathForURLInProjectSQLQuery;
import uk.ac.ic.wlgitbridge.data.model.db.sql.query.GetProjectNamesSQLQuery;
import uk.ac.ic.wlgitbridge.data.model.db.sql.update.create.CreateIndexURLIndexStore;
import uk.ac.ic.wlgitbridge.data.model.db.sql.update.create.CreateProjectsTableSQLUpdate;
import uk.ac.ic.wlgitbridge.data.model.db.sql.update.create.CreateURLIndexStoreSQLUpdate;
import uk.ac.ic.wlgitbridge.data.model.db.sql.update.delete.DeleteFilesForProjectSQLUpdate;
import uk.ac.ic.wlgitbridge.data.model.db.sql.update.insert.AddURLIndexSQLUpdate;
import uk.ac.ic.wlgitbridge.data.model.db.sql.update.insert.SetProjectSQLUpdate;
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.query.GetLatestVersionForProjectSQLQuery;
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.query.GetPathForURLInProjectSQLQuery;
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.query.GetProjectNamesSQLQuery;
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.update.create.CreateIndexURLIndexStore;
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.update.create.CreateProjectsTableSQLUpdate;
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.update.create.CreateURLIndexStoreSQLUpdate;
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.update.delete.DeleteFilesForProjectSQLUpdate;
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.update.insert.AddURLIndexSQLUpdate;
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.update.insert.SetProjectSQLUpdate;
import java.io.File;
import java.sql.*;

View file

@ -1,4 +1,4 @@
package uk.ac.ic.wlgitbridge.data.model.db.sql.query;
package uk.ac.ic.wlgitbridge.bridge.db.sqlite.query;
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.SQLQuery;

View file

@ -1,4 +1,4 @@
package uk.ac.ic.wlgitbridge.data.model.db.sql.query;
package uk.ac.ic.wlgitbridge.bridge.db.sqlite.query;
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.SQLQuery;

View file

@ -1,4 +1,4 @@
package uk.ac.ic.wlgitbridge.data.model.db.sql.query;
package uk.ac.ic.wlgitbridge.bridge.db.sqlite.query;
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.SQLQuery;

View file

@ -1,4 +1,4 @@
package uk.ac.ic.wlgitbridge.data.model.db.sql.update.create;
package uk.ac.ic.wlgitbridge.bridge.db.sqlite.update.create;
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.SQLUpdate;

View file

@ -1,4 +1,4 @@
package uk.ac.ic.wlgitbridge.data.model.db.sql.update.create;
package uk.ac.ic.wlgitbridge.bridge.db.sqlite.update.create;
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.SQLUpdate;

View file

@ -1,4 +1,4 @@
package uk.ac.ic.wlgitbridge.data.model.db.sql.update.create;
package uk.ac.ic.wlgitbridge.bridge.db.sqlite.update.create;
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.SQLUpdate;

View file

@ -1,4 +1,4 @@
package uk.ac.ic.wlgitbridge.data.model.db.sql.update.delete;
package uk.ac.ic.wlgitbridge.bridge.db.sqlite.update.delete;
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.SQLUpdate;

View file

@ -1,4 +1,4 @@
package uk.ac.ic.wlgitbridge.data.model.db.sql.update.insert;
package uk.ac.ic.wlgitbridge.bridge.db.sqlite.update.insert;
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.SQLUpdate;

View file

@ -1,4 +1,4 @@
package uk.ac.ic.wlgitbridge.data.model.db.sql.update.insert;
package uk.ac.ic.wlgitbridge.bridge.db.sqlite.update.insert;
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.SQLUpdate;

View file

@ -1,20 +0,0 @@
package uk.ac.ic.wlgitbridge.data.model.db;
import java.util.List;
/**
* Created by m on 20/11/15.
*/
public interface PersistentStore {
List<String> getProjectNames();
void setLatestVersionForProject(String project, int versionID);
int getLatestVersionForProject(String project);
void addURLIndexForProject(String projectName, String url, String path);
void deleteFilesForProject(String project, String... files);
String getPathForURLInProject(String projectName, String url);
}

View file

@ -1,4 +1,4 @@
package uk.ac.ic.wlgitbridge.data.model.db.sql.update.delete;
package uk.ac.ic.wlgitbridge.bridge.db.sqlite.update.delete;
import org.junit.Test;
import static org.junit.Assert.*;