diff --git a/uk/ac/sanger/artemis/chado/GmodDAO.java b/uk/ac/sanger/artemis/chado/GmodDAO.java index 183574e631c628f34fcec3077431093fd2c6cfdc..1654325aaf8fd565214c2754ed043e0f305f76c4 100644 --- a/uk/ac/sanger/artemis/chado/GmodDAO.java +++ b/uk/ac/sanger/artemis/chado/GmodDAO.java @@ -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> diff --git a/uk/ac/sanger/artemis/chado/IBatisDAO.java b/uk/ac/sanger/artemis/chado/IBatisDAO.java index 063ca89b5dcf57fb7af93bb535e20285c69499f3..aaf1157961ec80cc7b9d9fbd383ebf6036f15944 100644 --- a/uk/ac/sanger/artemis/chado/IBatisDAO.java +++ b/uk/ac/sanger/artemis/chado/IBatisDAO.java @@ -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); diff --git a/uk/ac/sanger/artemis/chado/JdbcDAO.java b/uk/ac/sanger/artemis/chado/JdbcDAO.java index 8370f241cf7c9a7e4e60bf77d481e11d3f846a2a..eb02cfe8668cf6f9e406574588b94413671f7b67 100644 --- a/uk/ac/sanger/artemis/chado/JdbcDAO.java +++ b/uk/ac/sanger/artemis/chado/JdbcDAO.java @@ -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