mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Move stuff to bridge package
This commit is contained in:
parent
f3eb32e2ec
commit
d2b628d904
12 changed files with 19 additions and 39 deletions
|
@ -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.DBInitException;
|
||||||
import uk.ac.ic.wlgitbridge.bridge.db.DBStore;
|
import uk.ac.ic.wlgitbridge.bridge.db.DBStore;
|
||||||
import uk.ac.ic.wlgitbridge.data.model.db.sql.query.GetLatestVersionForProjectSQLQuery;
|
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.query.GetLatestVersionForProjectSQLQuery;
|
||||||
import uk.ac.ic.wlgitbridge.data.model.db.sql.query.GetPathForURLInProjectSQLQuery;
|
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.query.GetPathForURLInProjectSQLQuery;
|
||||||
import uk.ac.ic.wlgitbridge.data.model.db.sql.query.GetProjectNamesSQLQuery;
|
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.query.GetProjectNamesSQLQuery;
|
||||||
import uk.ac.ic.wlgitbridge.data.model.db.sql.update.create.CreateIndexURLIndexStore;
|
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.update.create.CreateIndexURLIndexStore;
|
||||||
import uk.ac.ic.wlgitbridge.data.model.db.sql.update.create.CreateProjectsTableSQLUpdate;
|
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.update.create.CreateProjectsTableSQLUpdate;
|
||||||
import uk.ac.ic.wlgitbridge.data.model.db.sql.update.create.CreateURLIndexStoreSQLUpdate;
|
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.update.create.CreateURLIndexStoreSQLUpdate;
|
||||||
import uk.ac.ic.wlgitbridge.data.model.db.sql.update.delete.DeleteFilesForProjectSQLUpdate;
|
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.update.delete.DeleteFilesForProjectSQLUpdate;
|
||||||
import uk.ac.ic.wlgitbridge.data.model.db.sql.update.insert.AddURLIndexSQLUpdate;
|
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.update.insert.AddURLIndexSQLUpdate;
|
||||||
import uk.ac.ic.wlgitbridge.data.model.db.sql.update.insert.SetProjectSQLUpdate;
|
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.update.insert.SetProjectSQLUpdate;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.sql.*;
|
import java.sql.*;
|
||||||
|
|
|
@ -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;
|
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.SQLQuery;
|
||||||
|
|
|
@ -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;
|
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.SQLQuery;
|
||||||
|
|
|
@ -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;
|
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.SQLQuery;
|
||||||
|
|
|
@ -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;
|
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.SQLUpdate;
|
||||||
|
|
|
@ -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;
|
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.SQLUpdate;
|
||||||
|
|
|
@ -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;
|
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.SQLUpdate;
|
||||||
|
|
|
@ -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;
|
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.SQLUpdate;
|
||||||
|
|
|
@ -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;
|
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.SQLUpdate;
|
||||||
|
|
|
@ -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;
|
import uk.ac.ic.wlgitbridge.bridge.db.sqlite.SQLUpdate;
|
||||||
|
|
|
@ -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);
|
|
||||||
}
|
|
|
@ -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 org.junit.Test;
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
Loading…
Reference in a new issue