|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nci.caarray.domain.search.ExampleSearchCriteria<T>
T
- class of the example entitypublic class ExampleSearchCriteria<T extends com.fiveamsolutions.nci.commons.data.persistent.PersistentObject>
Simple bean to hold example search criteria.
Constructor Summary | |
---|---|
ExampleSearchCriteria(T example)
Create a new example search criteria with given example, using exact matching, excluding null properties. |
|
ExampleSearchCriteria(T example,
org.hibernate.criterion.MatchMode matchMode)
Create a new example search criteria with given example, using the given match mode, excluding null properties. |
|
ExampleSearchCriteria(T example,
org.hibernate.criterion.MatchMode matchMode,
boolean excludeNulls)
Create a new example search criteria with given example, using the given match mode and given null property handling. |
|
ExampleSearchCriteria(T example,
org.hibernate.criterion.MatchMode matchMode,
boolean excludeNulls,
java.util.Collection<java.lang.String> excludeProperties)
Create a new example search criteria with given example, using the given match mode and given null property handling. |
Method Summary | ||
---|---|---|
ExampleSearchCriteria<T> |
excludeNulls()
Set this criteria to exclude null properties from comparison. |
|
ExampleSearchCriteria<T> |
excludeProperties(java.lang.String... properties)
Set this criteria to exclude given properties from comparison. |
|
ExampleSearchCriteria<T> |
excludeZeroes()
Set this criteria to exclude zero-valued properties from comparison. |
|
static
|
forEntity(T entity)
Create a new example search criteria with given example, using exact matching, excluding null properties. |
|
T |
getExample()
|
|
java.util.Collection<java.lang.String> |
getExcludeProperties()
|
|
org.hibernate.criterion.MatchMode |
getMatchMode()
|
|
ExampleSearchCriteria<T> |
includeNulls()
Set this criteria to include null properties in the comparison. |
|
ExampleSearchCriteria<T> |
includeProperties(java.lang.String... properties)
Set this criteria to include given properties from comparison. |
|
ExampleSearchCriteria<T> |
includeZeroes()
Set this criteria to include zero-valued properties in the comparison. |
|
boolean |
isExcludeNulls()
|
|
boolean |
isExcludeZeroes()
|
|
ExampleSearchCriteria<T> |
matchUsing(org.hibernate.criterion.MatchMode mode)
Set the match mode of this criteria to given match mode. |
|
void |
setExample(T example)
|
|
void |
setExcludeNulls(boolean excludeNulls)
|
|
void |
setExcludeProperties(java.util.Collection<java.lang.String> excludeProperties)
|
|
void |
setExcludeZeroes(boolean excludeZeroes)
|
|
void |
setMatchMode(org.hibernate.criterion.MatchMode matchMode)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExampleSearchCriteria(T example)
example
- the examplepublic ExampleSearchCriteria(T example, org.hibernate.criterion.MatchMode matchMode)
example
- the examplematchMode
- how string properties in the example should be compared against candidate matches.public ExampleSearchCriteria(T example, org.hibernate.criterion.MatchMode matchMode, boolean excludeNulls)
example
- the examplematchMode
- how string properties in the example should be compared against candidate matches.excludeNulls
- if true, properties in the example with a null value will be excluded from comparison; if
false, they will be excluded, so candidate matches must also have null values for those properties.public ExampleSearchCriteria(T example, org.hibernate.criterion.MatchMode matchMode, boolean excludeNulls, java.util.Collection<java.lang.String> excludeProperties)
example
- the examplematchMode
- how string properties in the example should be compared against candidate matches.excludeNulls
- if true, properties in the example with a null value will be excluded from comparison; if
false, they will be excluded, so candidate matches must also have null values for those properties.excludeProperties
- exclude the given properties from comparison.Method Detail |
---|
public static <T extends com.fiveamsolutions.nci.commons.data.persistent.PersistentObject> ExampleSearchCriteria<T> forEntity(T entity)
T
- class of example entityentity
- the example
public ExampleSearchCriteria<T> matchUsing(org.hibernate.criterion.MatchMode mode)
mode
- the new match mode
public ExampleSearchCriteria<T> excludeNulls()
public ExampleSearchCriteria<T> includeNulls()
public ExampleSearchCriteria<T> excludeProperties(java.lang.String... properties)
properties
- the given properties to exclude.
public ExampleSearchCriteria<T> includeProperties(java.lang.String... properties)
properties
- the given properties to include.
public ExampleSearchCriteria<T> excludeZeroes()
public ExampleSearchCriteria<T> includeZeroes()
public T getExample()
public void setExample(T example)
example
- the example to setpublic org.hibernate.criterion.MatchMode getMatchMode()
public void setMatchMode(org.hibernate.criterion.MatchMode matchMode)
matchMode
- the matchMode to setpublic boolean isExcludeNulls()
public void setExcludeNulls(boolean excludeNulls)
excludeNulls
- the excludeNulls to setpublic java.util.Collection<java.lang.String> getExcludeProperties()
public void setExcludeProperties(java.util.Collection<java.lang.String> excludeProperties)
excludeProperties
- the excludeProperties to setpublic boolean isExcludeZeroes()
public void setExcludeZeroes(boolean excludeZeroes)
excludeZeroes
- the excludeZeroes to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |