package uk.ac.ic.wlgitbridge.bridge.db.noop;

import uk.ac.ic.wlgitbridge.bridge.db.DBStore;
import uk.ac.ic.wlgitbridge.bridge.db.ProjectState;

import java.sql.Timestamp;
import java.util.List;

public class NoopDbStore implements DBStore {

    @Override
    public int getNumProjects() {
        return 0;
    }

    @Override
    public List<String> getProjectNames() {
        return null;
    }

    @Override
    public void setLatestVersionForProject(String project, int versionID) {

    }

    @Override
    public int getLatestVersionForProject(String project) {
        return 0;
    }

    @Override
    public void addURLIndexForProject(String projectName, String url, String path) {

    }

    @Override
    public void deleteFilesForProject(String project, String... files) {

    }

    @Override
    public String getPathForURLInProject(String projectName, String url) {
        return null;
    }

    @Override
    public String getOldestUnswappedProject() {
        return null;
    }

    @Override
    public int getNumUnswappedProjects() {
        return 0;
    }

    @Override
    public ProjectState getProjectState(String projectName) {
        return null;
    }

    @Override
    public void setLastAccessedTime(String projectName, Timestamp time) {

    }

}

@@ -1276,18 +1276,264 @@
 time) %7B%0A
-%0A
     %7D%0A
+%0A    @Override%0A    public void swap(String projectName, String compressionMethod) %7B%7D%0A%0A    @Override%0A    public void restore(String projectName) %7B%7D%0A%0A    @Override%0A    public String getSwapCompression(String projectName) %7B%0A        return null;%0A    %7D
 %0A%7D%0A

Implement swap/restore on NoopDbStore