uk.ac.ebi.intact.persistence
Class ObjectSearch

java.lang.Object
  |
  +--uk.ac.ebi.intact.persistence.ObjectSearch

public class ObjectSearch
extends java.lang.Object

This class contains methods for performing specific object searches for particular intact object types, based on an object's id or name.

Author:
Sharmila

Field Summary
protected  java.util.Collection searchResults
          A vector of objects that match the search criterai
protected  java.lang.String searchString
          The query string used to search for the objects
protected  java.lang.String searchValue
          The search string to be used
 
Constructor Summary
ObjectSearch()
          Default Constructor.
 
Method Summary
 java.util.Collection getsearchResults()
          Returns the entire result vector
 java.lang.String getSearchString()
          Returns the search string used to get the result set.
 void setConditionAcSearch()
           
 void setConditionNameSearch()
           
 void setInteractionAcSearch()
          Sets the search string based on an interaction accessionNumber
 void setInteractionNameSearch()
           
 void setMoleculeAcSearch()
           
 void setMoleculeNameSearch()
           
 void setsearchResults(java.util.Collection results)
          Sets a vector of the search results to be paged.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

searchResults

protected java.util.Collection searchResults
A vector of objects that match the search criterai


searchString

protected java.lang.String searchString
The query string used to search for the objects


searchValue

protected java.lang.String searchValue
The search string to be used

Constructor Detail

ObjectSearch

public ObjectSearch()
Default Constructor. Constructs an ObjectSearch.

Method Detail

setInteractionAcSearch

public void setInteractionAcSearch()
Sets the search string based on an interaction accessionNumber


setMoleculeAcSearch

public void setMoleculeAcSearch()

setConditionAcSearch

public void setConditionAcSearch()

setInteractionNameSearch

public void setInteractionNameSearch()

setMoleculeNameSearch

public void setMoleculeNameSearch()

setConditionNameSearch

public void setConditionNameSearch()

setsearchResults

public void setsearchResults(java.util.Collection results)
Sets a vector of the search results to be paged. The results vector is created by the datamodel object search.

Parameters:
results - A Vector of search results

getsearchResults

public java.util.Collection getsearchResults()
Returns the entire result vector

Returns:
A vector of the entire search result set.

getSearchString

public java.lang.String getSearchString()
Returns the search string used to get the result set.

Returns:
A sql string used to pull the results from the database.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk