Package pro.taskana.task.internal
Class TaskCommentQueryImpl
java.lang.Object
pro.taskana.task.internal.TaskCommentQueryImpl
- All Implemented Interfaces:
BaseQuery<TaskComment,,TaskCommentQueryColumnName> TaskCommentQuery
TaskCommentQuery for generating dynamic sql.
-
Nested Class Summary
Nested classes/interfaces inherited from interface pro.taskana.common.api.BaseQuery
BaseQuery.SortDirection -
Method Summary
Modifier and TypeMethodDescriptionlongcount()createdNotWithin(TimeInterval... intervals) Add the time intervals within which the TaskComment was not created to your query.createdWithin(TimeInterval... intervals) Add the time intervals within which the TaskComment was created to your query.Add the UserIds of the creator to your query.creatorLike(String... creators) Add the UserIds of the creator for pattern matching to your query.creatorNotIn(String... creators) Add the UserIds of the creator to your query, which should not be contained.creatorNotLike(String... creators) Add the UserIds of the creator for pattern matching to your query, which should not be contained.String[]String[]String[]String[]String[]String[]getIdIn()String[]String[]String[]String[]String[]String[]Filter for TaskComments which are containing one of the given taskCommentIds.Add your taskCommentIds for pattern matching to your query.Filter for TaskComments which are containing non of the given taskCommentIds.Add your taskCommentIds for pattern matching to your query, which should not be contained.booleanlist()list(int offset, int limit) listValues(TaskCommentQueryColumnName columnName, BaseQuery.SortDirection sortDirection) modifiedNotWithin(TimeInterval... intervals) Add the time intervals within which the TaskComment was not modified to your query.modifiedWithin(TimeInterval... intervals) Add the time intervals within which the TaskComment was modified to your query.orderByCreated(BaseQuery.SortDirection sortDirection) This method sorts the query result according to the created timestamp.orderByModified(BaseQuery.SortDirection sortDirection) This method sorts the query result according to the modified timestamp.voidsetIncludeLongName(boolean joinWithUserInfo) single()Add your Task ids to your query.textFieldLike(String... texts) Add your texts for pattern matching to your query.textFieldNotLike(String... texts) Add your texts for pattern matching to your query, which should not be contained.toString()
-
Method Details
-
idIn
Description copied from interface:TaskCommentQueryFilter for TaskComments which are containing one of the given taskCommentIds.- Specified by:
idInin interfaceTaskCommentQuery- Parameters:
taskCommentIds- The ids of the searched-for TaskComments.- Returns:
- the query
-
idNotIn
Description copied from interface:TaskCommentQueryFilter for TaskComments which are containing non of the given taskCommentIds.- Specified by:
idNotInin interfaceTaskCommentQuery- Parameters:
taskCommentIds- The ids of the searched-for TaskComments.- Returns:
- the query
-
idLike
Description copied from interface:TaskCommentQueryAdd your taskCommentIds for pattern matching to your query. It will be compared in SQL with a LIKE. If you use a wildcard like % then it will be transmitted to the database.- Specified by:
idLikein interfaceTaskCommentQuery- Parameters:
taskCommentIds- The ids of the searched-for TaskComments.- Returns:
- the query
-
idNotLike
Description copied from interface:TaskCommentQueryAdd your taskCommentIds for pattern matching to your query, which should not be contained. It will be compared in SQL with a LIKE. If you use a wildcard like % then it will be transmitted to the database.- Specified by:
idNotLikein interfaceTaskCommentQuery- Parameters:
taskCommentIds- The ids of the searched-for TaskComments.- Returns:
- the query
-
taskIdIn
Description copied from interface:TaskCommentQueryAdd your Task ids to your query.- Specified by:
taskIdInin interfaceTaskCommentQuery- Parameters:
taskIds- the Task ids as Strings- Returns:
- the query
-
textFieldLike
Description copied from interface:TaskCommentQueryAdd your texts for pattern matching to your query. It will be compared in SQL with the LIKE operator. You may use a wildcard like % to specify the pattern. If you specify multiple arguments they are combined with the OR keyword.- Specified by:
textFieldLikein interfaceTaskCommentQuery- Parameters:
texts- your texts of the TaskComment- Returns:
- the query
-
textFieldNotLike
Description copied from interface:TaskCommentQueryAdd your texts for pattern matching to your query, which should not be contained. It will be compared in SQL with the LIKE operator. You may use a wildcard like % to specify the pattern. If you specify multiple arguments they are combined with the OR keyword.- Specified by:
textFieldNotLikein interfaceTaskCommentQuery- Parameters:
texts- your texts of the TaskComment- Returns:
- the query
-
creatorIn
Description copied from interface:TaskCommentQueryAdd the UserIds of the creator to your query.- Specified by:
creatorInin interfaceTaskCommentQuery- Parameters:
creators- of the queried TaskComments- Returns:
- the query
-
creatorNotIn
Description copied from interface:TaskCommentQueryAdd the UserIds of the creator to your query, which should not be contained.- Specified by:
creatorNotInin interfaceTaskCommentQuery- Parameters:
creators- of the queried TaskComments- Returns:
- the query
-
creatorLike
Description copied from interface:TaskCommentQueryAdd the UserIds of the creator for pattern matching to your query. It will be compared in SQL with the LIKE operator. You may use a wildcard like % to specify the pattern. If you specify multiple arguments they are combined with the OR keyword.- Specified by:
creatorLikein interfaceTaskCommentQuery- Parameters:
creators- of the queried TaskComments- Returns:
- the query
-
creatorNotLike
Description copied from interface:TaskCommentQueryAdd the UserIds of the creator for pattern matching to your query, which should not be contained. It will be compared in SQL with the LIKE operator. You may use a wildcard like % to specify the pattern. If you specify multiple arguments they are combined with the OR keyword.- Specified by:
creatorNotLikein interfaceTaskCommentQuery- Parameters:
creators- of the queried TaskComments- Returns:
- the query
-
createdWithin
Description copied from interface:TaskCommentQueryAdd the time intervals within which the TaskComment was created to your query. For each time interval, the database query will search for tasks whose created timestamp is after or at the interval's begin and before or at the interval's end. If more than one interval is specified, the query will connect them with the OR keyword. If either begin or end of an interval are null, these values will not be specified in the query.- Specified by:
createdWithinin interfaceTaskCommentQuery- Parameters:
intervals- - the TimeIntervals within which the TaskComment was created- Returns:
- the query
-
createdNotWithin
Description copied from interface:TaskCommentQueryAdd the time intervals within which the TaskComment was not created to your query. For each time interval, the database query will search for tasks whose created timestamp is after or at the interval's begin and before or at the interval's end. If more than one interval is specified, the query will connect them with the OR keyword. If either begin or end of an interval are null, these values will not be specified in the query.- Specified by:
createdNotWithinin interfaceTaskCommentQuery- Parameters:
intervals- - the TimeIntervals within which the TaskComment was created- Returns:
- the query
-
modifiedWithin
Description copied from interface:TaskCommentQueryAdd the time intervals within which the TaskComment was modified to your query. For each time interval, the database query will search for tasks whose modified timestamp is after or at the interval's begin and before or at the interval's end. If more than one interval is specified, the query will connect them with the OR keyword. If either begin or end of an interval are null, these values will not be specified in the query.- Specified by:
modifiedWithinin interfaceTaskCommentQuery- Parameters:
intervals- - the TimeIntervals within which the TaskComment was modified- Returns:
- the query
-
modifiedNotWithin
Description copied from interface:TaskCommentQueryAdd the time intervals within which the TaskComment was not modified to your query. For each time interval, the database query will search for tasks whose modified timestamp is after or at the interval's begin and before or at the interval's end. If more than one interval is specified, the query will connect them with the OR keyword. If either begin or end of an interval are null, these values will not be specified in the query.- Specified by:
modifiedNotWithinin interfaceTaskCommentQuery- Parameters:
intervals- - the TimeIntervals within which the TaskComment was modified- Returns:
- the query
-
list
- Specified by:
listin interfaceBaseQuery<TaskComment,TaskCommentQueryColumnName>
-
list
- Specified by:
listin interfaceBaseQuery<TaskComment,TaskCommentQueryColumnName>
-
listValues
public List<String> listValues(TaskCommentQueryColumnName columnName, BaseQuery.SortDirection sortDirection) - Specified by:
listValuesin interfaceBaseQuery<TaskComment,TaskCommentQueryColumnName>
-
single
- Specified by:
singlein interfaceBaseQuery<TaskComment,TaskCommentQueryColumnName>
-
count
public long count()- Specified by:
countin interfaceBaseQuery<TaskComment,TaskCommentQueryColumnName>
-
getQueryColumnName
-
getIdIn
-
getIdNotIn
-
getIdLike
-
getIdNotLike
-
getTaskIdIn
-
getCreatorIn
-
getCreatorNotIn
-
getCreatorLike
-
getCreatorNotLike
-
getTextFieldLike
-
getTextFieldNotLike
-
getModifiedIn
-
getModifiedNotIn
-
getCreatedIn
-
getCreatedNotIn
-
getAccessIdIn
-
isIncludeLongName
public boolean isIncludeLongName() -
setIncludeLongName
public void setIncludeLongName(boolean joinWithUserInfo) -
orderByCreated
Description copied from interface:TaskCommentQueryThis method sorts the query result according to the created timestamp.- Specified by:
orderByCreatedin interfaceTaskCommentQuery- Parameters:
sortDirection- Determines whether the result is sorted in ascending or descending order. If sortDirection is null, the result is sorted in ascending order- Returns:
- the query
-
orderByModified
Description copied from interface:TaskCommentQueryThis method sorts the query result according to the modified timestamp.- Specified by:
orderByModifiedin interfaceTaskCommentQuery- Parameters:
sortDirection- Determines whether the result is sorted in ascending or descending order. If sortDirection is null, the result is sorted in ascending order- Returns:
- the query
-
toString
-