|
SigPath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sigpath.task.DBTask
org.sigpath.task.TSearchMolecules
public class TSearchMolecules
Performs a molecule search based on search criteria, including: keyword, category, and organism.
| Field Summary | |
|---|---|
static String |
AC_TARGET
|
static String |
ALL_TARGET
|
static String |
SPID_TARGET
|
| Fields inherited from class org.sigpath.task.DBTask |
|---|
dbManager, embeddedTask, entityManager, errors, ftsm, progressListener, sigpathFactory, unitManager, userManager, xdebug |
| Constructor Summary | |
|---|---|
TSearchMolecules(String keyword,
String category,
String organism,
int startIndex)
Constructor |
|
| Method Summary | |
|---|---|
protected void |
_execute()
Perform Molecule Search |
List |
getCurrentList()
Get List of Results |
FTSManagerMeasurements |
getFTSManagerMeasurements()
Get Measurements of he last execution. |
Collection |
getRelatedKeywords()
Get Related Keywords |
int |
getTotalNumResults()
Get Total Number of Results |
void |
setRecordNumber(int recnum)
Sets the maximum number of elements retrieved in one bunch. |
void |
setResults(ArrayList list)
set List of Results |
void |
setStartIndex(int index)
sets the start index. |
| Methods inherited from class org.sigpath.task.DBTask |
|---|
close, delete, execute, getDbManager, getErrors, isEmbeddedTask, isTaskThrewException, reindex, resolve, setDbManager, setEmbeddedTask, setEmbeddedTask, setObtainTransactionsFrom, setProgressListener, setTaskThrewException |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.sigpath.task.Task |
|---|
execute |
| Field Detail |
|---|
public static final String SPID_TARGET
public static final String AC_TARGET
public static final String ALL_TARGET
| Constructor Detail |
|---|
public TSearchMolecules(String keyword,
String category,
String organism,
int startIndex)
keyword - Search Keywordcategory - Molecule Category, e.g. "small_molecules",
"proteins", "complexes"organism - Organism String, e.g. "Human", "all"startIndex - startIndex for retrieved list of results| Method Detail |
|---|
public FTSManagerMeasurements getFTSManagerMeasurements()
public List getCurrentList()
getCurrentList in interface ITSearchTaskpublic void setResults(ArrayList list)
setResults in interface ITSearchTaskpublic int getTotalNumResults()
getTotalNumResults in interface ITSearchTaskpublic Collection getRelatedKeywords()
public void setRecordNumber(int recnum)
recnum - the number of elements you want to retrieve
protected void _execute()
throws SigPathDatabaseException
_execute in class DBTaskSigPathDatabaseException - error connecting to databasepublic void setStartIndex(int index)
setStartIndex in interface ITSearchTaskindex - index less than getTotalNumResults and greater or equal to 0.
|
SigPath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||