Skip to content
Snippets Groups Projects
Commit 04d11375 authored by tjc's avatar tjc
Browse files

add GeneralDaoI interface

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@5713 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 4951332b
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ import org.gmod.schema.sequence.FeatureDbXRef; ...@@ -45,7 +45,7 @@ import org.gmod.schema.sequence.FeatureDbXRef;
import uk.ac.sanger.artemis.util.DatabaseDocument; import uk.ac.sanger.artemis.util.DatabaseDocument;
public abstract class GmodDAO public abstract class GmodDAO
implements SequenceDaoI, SchemaDaoI, OrganismDaoI, CvDaoI, PubDaoI implements SequenceDaoI, SchemaDaoI, OrganismDaoI, CvDaoI, PubDaoI, GeneralDaoI
{ {
public abstract List getSimilarityMatches(final Integer srcFeatureId); public abstract List getSimilarityMatches(final Integer srcFeatureId);
...@@ -60,6 +60,35 @@ public abstract class GmodDAO ...@@ -60,6 +60,35 @@ public abstract class GmodDAO
return null; return null;
} }
//////
////// GeneralDaoI
//////
//////
/**
* Retrieve a database by name
*
* @param name the name to lookup
* @return the corresponding db, or null
*/
public Db getDbByName(String name)
{
return null;
}
/**
* Retrieve the db xref corresponding to a given DB and accession number
*
* @param db the db the dbxref refers to
* @param accession the accession "number" the dbxref refers to
* @return the dbxref, or null
*/
public DbXRef getDbXRefByDbAndAcc(Db db, String accession)
{
return null;
}
public abstract List getDbs();
////// //////
////// OrganismDaoI ////// OrganismDaoI
////// //////
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment