edu.jhu.tmaj.client.tables.data
Class Search

java.lang.Object
  extended by edu.jhu.tmaj.client.tables.data.Search
All Implemented Interfaces:
java.io.Serializable

public final class Search
extends java.lang.Object
implements java.io.Serializable

Represents a Search done from an InputPanel Gui.

See Also:
Serialized Form

Method Summary
static Search getDoubleSpecifiedSearch(SearchTerm searchTerm, java.lang.String value, SearchTerm searchTerm2, java.lang.String value2, java.util.List<DatabaseField> requestedColumnIdentifiers, int dynamicTypeID)
          A SpecifiedSearch where two columns and their respective values are selected instead of one.
static Search getDynamicSpecifiedSearch(SearchTerm searchTerm, java.lang.String value, java.util.List requestedColumnIdentifiers, int dynamicTypeID)
           
 int getDynamicTypeID()
           
static Search getGeneralSearch()
          Returns a Search that indicates all columns should be selected.
 java.util.List<DatabaseField> getRequestedColumnIdentifiers()
           
 SearchTerm getSearchTerm()
           
 SearchTerm getSearchTerm2()
           
static Search getSpecifiedSearch(SearchTerm searchTerm, java.lang.String value, java.util.List<DatabaseField> requestedColumnIdentifiers)
          Returns a Search in which the columnnames are specified, as well as a field and value for which to search.
 java.lang.String getValue()
           
 java.lang.String getValue2()
           
 boolean isSpecified()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getRequestedColumnIdentifiers

public java.util.List<DatabaseField> getRequestedColumnIdentifiers()

toString

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

getGeneralSearch

public static Search getGeneralSearch()
Returns a Search that indicates all columns should be selected.


getSpecifiedSearch

public static Search getSpecifiedSearch(SearchTerm searchTerm,
                                        java.lang.String value,
                                        java.util.List<DatabaseField> requestedColumnIdentifiers)
Returns a Search in which the columnnames are specified, as well as a field and value for which to search. For example, the field may be SurgPathNumber and the value S53-99412

Parameters:
searchTerm - The field to search
value - the value of the field
requestedColumnIdentifiers - the Columns to select
Returns:

getDynamicSpecifiedSearch

public static Search getDynamicSpecifiedSearch(SearchTerm searchTerm,
                                               java.lang.String value,
                                               java.util.List requestedColumnIdentifiers,
                                               int dynamicTypeID)

getDoubleSpecifiedSearch

public static Search getDoubleSpecifiedSearch(SearchTerm searchTerm,
                                              java.lang.String value,
                                              SearchTerm searchTerm2,
                                              java.lang.String value2,
                                              java.util.List<DatabaseField> requestedColumnIdentifiers,
                                              int dynamicTypeID)
A SpecifiedSearch where two columns and their respective values are selected instead of one.


isSpecified

public boolean isSpecified()

getSearchTerm

public SearchTerm getSearchTerm()

getValue

public java.lang.String getValue()

getDynamicTypeID

public int getDynamicTypeID()

getSearchTerm2

public SearchTerm getSearchTerm2()

getValue2

public java.lang.String getValue2()