gov.nih.nci.caarray.external.v1_0.query
Class ExampleSearchCriteria<T extends AbstractCaArrayEntity>

java.lang.Object
  extended by gov.nih.nci.caarray.external.v1_0.query.ExampleSearchCriteria<T>
Type Parameters:
T - class of the example entity
All Implemented Interfaces:
java.io.Serializable

public class ExampleSearchCriteria<T extends AbstractCaArrayEntity>
extends java.lang.Object
implements java.io.Serializable

Criteria for searching by example.

Author:
dkokotov
See Also:
Serialized Form

Constructor Summary
ExampleSearchCriteria()
          Empty constructor.
ExampleSearchCriteria(T example)
           
ExampleSearchCriteria(T example, MatchMode matchMode)
           
ExampleSearchCriteria(T example, MatchMode matchMode, boolean excludeNulls)
           
ExampleSearchCriteria(T example, MatchMode matchMode, boolean excludeNulls, boolean excludeZeroes)
           
 
Method Summary
 T getExample()
           
 MatchMode getMatchMode()
           
 boolean isExcludeNulls()
           
 boolean isExcludeZeroes()
           
 void setExample(T example)
           
 void setExcludeNulls(boolean excludeNulls)
           
 void setExcludeZeroes(boolean excludeZeroes)
           
 void setMatchMode(MatchMode matchMode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleSearchCriteria

public ExampleSearchCriteria()
Empty constructor.


ExampleSearchCriteria

public ExampleSearchCriteria(T example)
Parameters:
example - the example

ExampleSearchCriteria

public ExampleSearchCriteria(T example,
                             MatchMode matchMode)
Parameters:
example - the example
matchMode - the match mode

ExampleSearchCriteria

public ExampleSearchCriteria(T example,
                             MatchMode matchMode,
                             boolean excludeNulls)
Parameters:
example - the example
matchMode - the match mode
excludeNulls - whether to exclude null properties from being used in the search

ExampleSearchCriteria

public ExampleSearchCriteria(T example,
                             MatchMode matchMode,
                             boolean excludeNulls,
                             boolean excludeZeroes)
Parameters:
example - the example
matchMode - the match mode
excludeNulls - whether to exclude null properties from being used in the search
excludeZeroes - whether to exclude zero-valued properties from being used in the search
Method Detail

getExample

public T getExample()
Returns:
the example

setExample

public void setExample(T example)
Parameters:
example - the example to set

getMatchMode

public MatchMode getMatchMode()
Returns:
the matchMode

setMatchMode

public void setMatchMode(MatchMode matchMode)
Parameters:
matchMode - the matchMode to set

isExcludeNulls

public boolean isExcludeNulls()
Returns:
the excludeNulls

setExcludeNulls

public void setExcludeNulls(boolean excludeNulls)
Parameters:
excludeNulls - the excludeNulls to set

isExcludeZeroes

public boolean isExcludeZeroes()
Returns:
the excludeZeroes

setExcludeZeroes

public void setExcludeZeroes(boolean excludeZeroes)
Parameters:
excludeZeroes - the excludeZeroes to set