public class TodoListCriteria extends PagingCriteria implements TodoIncludes
PagingCriteria.DynamicOrdering
Constructor and Description |
---|
TodoListCriteria()
Default constructor with paging OFF.
|
TodoListCriteria(int count)
Constructor with paging ON and given result count.
|
TodoListCriteria(int index,
int count)
Constructor with paging ON and given index and result count.
|
Modifier and Type | Method and Description |
---|---|
Long |
getModelInstanceId() |
String |
getTitle()
Returns the todo title.
|
String |
getTitlePattern()
Returns title pattern.
|
boolean |
isIncludeAllocatedByOthers()
Returns whether to include todos that are allocated by others.
|
boolean |
isIncludeContent()
Returns true if todo content should be included.
|
boolean |
isIncludePerformers()
Returns true if todo performers should be included.
|
boolean |
isIncludeSubstituted()
Returns whether to include todos of substituted persons.
|
boolean |
isTitlePatternCaseInsensitive()
Returns a flag indicating whether the title pattern is case insensitive or not.
|
void |
setIncludeAllocatedByOthers(boolean includeAllocatedByOthers)
Sets whether to include todos that are allocated by others.
|
void |
setIncludeContent(boolean includeContent)
Sets whether to include todo content, default
false . |
void |
setIncludePerformers(boolean includePerformers)
Sets whether to include todo performers, default
false . |
void |
setIncludeSubstituted(boolean includeSubstituted)
Sets whether to include todos of substituted persons, default
true . |
void |
setModelInstanceId(Long modelInstanceId)
Sets the model instance if, may be
null . |
void |
setTitle(String title)
Sets the title.
|
void |
setTitlePattern(String titlePattern)
Sets todo title pattern.
|
void |
setTitlePatternCaseInsensitive(boolean titlePatternCaseInsensitive)
Sets the flag indicating that title pattern is case insensitive.
|
getCount, getDynamicOrdering, getFilters, getIndex, isPaged, setCount, setDynamicOrdering, setFilters, setIndex
public TodoListCriteria()
public TodoListCriteria(int count)
count
- public TodoListCriteria(int index, int count)
index
- count
- public void setIncludeContent(boolean includeContent)
false
.includeContent
- public boolean isIncludeContent()
TodoIncludes
isIncludeContent
in interface TodoIncludes
public void setIncludePerformers(boolean includePerformers)
false
.includePerformers
- public boolean isIncludePerformers()
TodoIncludes
isIncludePerformers
in interface TodoIncludes
public void setIncludeSubstituted(boolean includeSubstituted)
true
.includeSubstituted
- public boolean isIncludeSubstituted()
public void setIncludeAllocatedByOthers(boolean includeAllocatedByOthers)
includeAllocatedByOthers
- public boolean isIncludeAllocatedByOthers()
public String getTitle()
public void setTitle(String title)
setTitlePattern(String)
,
this will create a query where equals is used to compare todo title.title
- public String getTitlePattern()
public void setTitlePattern(String titlePattern)
titlePattern
- public boolean isTitlePatternCaseInsensitive()
public void setTitlePatternCaseInsensitive(boolean titlePatternCaseInsensitive)
titlePatternCaseInsensitive
- public Long getModelInstanceId()
null
public void setModelInstanceId(Long modelInstanceId)
null
.modelInstanceId
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.