Skip to content
Snippets Groups Projects
Commit 6e4f9a33 authored by tjc's avatar tjc
Browse files

add getFeatureLocsByListOfIds

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@8880 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 57423163
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,14 @@ public abstract class GmodDAO
public abstract List getClustersByFeatureIds(final List featureIds);
public abstract List getParentFeaturesByChildFeatureIds(final List subjectIds);
/**
* Return a <code>List</code> of featureLoc's corresponding for a
* <code>List</code> of feature_id's.
* @param featureIds the list of featureIds to search
* @return a (possibly empty) List<Feature>
*/
public abstract List getFeatureLocsByListOfIds(final Collection featureIds);
/**
* Return all the Feature.featureDbXRefs for a <code>List</code> of feature_id's.
* These are grouped by their feature_id and returned in a <code>List</code>
......
......@@ -120,6 +120,11 @@ public class IBatisDAO extends GmodDAO
return sqlMap.queryForList("getResidueFeaturesByOrganismCommonName",commonName);
}
public List getFeatureLocsByListOfIds(final Collection featureIds)
{
return sqlMap.queryForList("getFeatureLocsByListOfIds",featureIds);
}
public List getParentFeaturesByChildFeatureIds(final List featureIds)
{
return sqlMap.queryForList("getParentFeaturesByChildFeatureIds",featureIds);
......
......@@ -28,6 +28,7 @@ import javax.swing.JPasswordField;
import java.sql.*;
import java.io.*;
import java.util.Collection;
import java.util.List;
import java.util.Vector;
......@@ -141,6 +142,11 @@ public class JdbcDAO extends GmodDAO
return null;
}
public List getFeatureLocsByListOfIds(final Collection featureIds)
{
return null;
}
public Feature getResiduesByUniqueName(String uniqueName)
{
// TODO Auto-generated method stub
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment