Package pro.taskana.task.internal
Class TaskCommentQueryImpl
- java.lang.Object
-
- pro.taskana.task.internal.TaskCommentQueryImpl
-
- All Implemented Interfaces:
BaseQuery<TaskComment,TaskCommentQueryColumnName>,TaskCommentQuery
public class TaskCommentQueryImpl extends Object implements TaskCommentQuery
TaskCommentQuery for generating dynamic sql.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface pro.taskana.common.api.BaseQuery
BaseQuery.SortDirection
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcount()TaskCommentQuerycreatedNotWithin(TimeInterval... intervals)Add the time intervals within which the TaskComment was not created to your query.TaskCommentQuerycreatedWithin(TimeInterval... intervals)Add the time intervals within which the TaskComment was created to your query.TaskCommentQuerycreatorIn(String... creators)Add the UserIds of the creator to your query.TaskCommentQuerycreatorLike(String... creators)Add the UserIds of the creator for pattern matching to your query.TaskCommentQuerycreatorNotIn(String... creators)Add the UserIds of the creator to your query, which should not be contained.TaskCommentQuerycreatorNotLike(String... creators)Add the UserIds of the creator for pattern matching to your query, which should not be contained.String[]getAccessIdIn()TimeInterval[]getCreatedIn()TimeInterval[]getCreatedNotIn()String[]getCreatorIn()String[]getCreatorLike()String[]getCreatorNotIn()String[]getCreatorNotLike()String[]getIdIn()String[]getIdLike()String[]getIdNotIn()String[]getIdNotLike()TimeInterval[]getModifiedIn()TimeInterval[]getModifiedNotIn()TaskCommentQueryColumnNamegetQueryColumnName()String[]getTaskIdIn()String[]getTextFieldLike()String[]getTextFieldNotLike()TaskCommentQueryidIn(String... taskCommentIds)Filter for TaskComments which are containing one of the given taskCommentIds.TaskCommentQueryidLike(String... taskCommentIds)Add your taskCommentIds for pattern matching to your query.TaskCommentQueryidNotIn(String... taskCommentIds)Filter for TaskComments which are containing non of the given taskCommentIds.TaskCommentQueryidNotLike(String... taskCommentIds)Add your taskCommentIds for pattern matching to your query, which should not be contained.booleanisIncludeLongName()List<TaskComment>list()List<TaskComment>list(int offset, int limit)List<String>listValues(TaskCommentQueryColumnName columnName, BaseQuery.SortDirection sortDirection)TaskCommentQuerymodifiedNotWithin(TimeInterval... intervals)Add the time intervals within which the TaskComment was not modified to your query.TaskCommentQuerymodifiedWithin(TimeInterval... intervals)Add the time intervals within which the TaskComment was modified to your query.TaskCommentQueryorderByCreated(BaseQuery.SortDirection sortDirection)This method sorts the query result according to the created timestamp.TaskCommentQueryorderByModified(BaseQuery.SortDirection sortDirection)This method sorts the query result according to the modified timestamp.voidsetIncludeLongName(boolean joinWithUserInfo)TaskCommentsingle()TaskCommentQuerytaskIdIn(String... taskIds)Add your Task ids to your query.TaskCommentQuerytextFieldLike(String... texts)Add your texts for pattern matching to your query.TaskCommentQuerytextFieldNotLike(String... texts)Add your texts for pattern matching to your query, which should not be contained.StringtoString()
-
-
-
Method Detail
-
idIn
public TaskCommentQuery idIn(String... taskCommentIds)
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
public TaskCommentQuery idNotIn(String... taskCommentIds)
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
public TaskCommentQuery idLike(String... taskCommentIds)
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
public TaskCommentQuery idNotLike(String... taskCommentIds)
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
public TaskCommentQuery taskIdIn(String... taskIds)
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
public TaskCommentQuery textFieldLike(String... texts)
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
public TaskCommentQuery textFieldNotLike(String... texts)
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
public TaskCommentQuery creatorIn(String... creators)
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
public TaskCommentQuery creatorNotIn(String... creators)
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
public TaskCommentQuery creatorLike(String... creators)
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
public TaskCommentQuery creatorNotLike(String... creators)
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
public TaskCommentQuery createdWithin(TimeInterval... intervals)
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
public TaskCommentQuery createdNotWithin(TimeInterval... intervals)
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
public TaskCommentQuery modifiedWithin(TimeInterval... intervals)
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
public TaskCommentQuery modifiedNotWithin(TimeInterval... intervals)
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
public List<TaskComment> list()
- Specified by:
listin interfaceBaseQuery<TaskComment,TaskCommentQueryColumnName>
-
list
public List<TaskComment> list(int offset, int limit)
- Specified by:
listin interfaceBaseQuery<TaskComment,TaskCommentQueryColumnName>
-
listValues
public List<String> listValues(TaskCommentQueryColumnName columnName, BaseQuery.SortDirection sortDirection)
- Specified by:
listValuesin interfaceBaseQuery<TaskComment,TaskCommentQueryColumnName>
-
single
public TaskComment single()
- Specified by:
singlein interfaceBaseQuery<TaskComment,TaskCommentQueryColumnName>
-
count
public long count()
- Specified by:
countin interfaceBaseQuery<TaskComment,TaskCommentQueryColumnName>
-
getQueryColumnName
public TaskCommentQueryColumnName getQueryColumnName()
-
getIdIn
public String[] getIdIn()
-
getIdNotIn
public String[] getIdNotIn()
-
getIdLike
public String[] getIdLike()
-
getIdNotLike
public String[] getIdNotLike()
-
getTaskIdIn
public String[] getTaskIdIn()
-
getCreatorIn
public String[] getCreatorIn()
-
getCreatorNotIn
public String[] getCreatorNotIn()
-
getCreatorLike
public String[] getCreatorLike()
-
getCreatorNotLike
public String[] getCreatorNotLike()
-
getTextFieldLike
public String[] getTextFieldLike()
-
getTextFieldNotLike
public String[] getTextFieldNotLike()
-
getModifiedIn
public TimeInterval[] getModifiedIn()
-
getModifiedNotIn
public TimeInterval[] getModifiedNotIn()
-
getCreatedIn
public TimeInterval[] getCreatedIn()
-
getCreatedNotIn
public TimeInterval[] getCreatedNotIn()
-
getAccessIdIn
public String[] getAccessIdIn()
-
isIncludeLongName
public boolean isIncludeLongName()
-
setIncludeLongName
public void setIncludeLongName(boolean joinWithUserInfo)
-
orderByCreated
public TaskCommentQuery orderByCreated(BaseQuery.SortDirection sortDirection)
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
public TaskCommentQuery orderByModified(BaseQuery.SortDirection sortDirection)
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
-
-