Package com.aquima.interactions.trace
Class TraceSearchCriteria
java.lang.Object
com.aquima.interactions.trace.TraceSearchCriteria
- All Implemented Interfaces:
Serializable
Search query builder for searching traces.
- Since:
- 9.2
- Author:
- A.Pragt
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the current application id filter, null if not set.Returns the current date filter, null if not set.Returns the direction in which the entries are sorted on, may be nullString[]
Returns the properties containing a filter, never null.int
Return the index of the first item to be returnedint
Return the maximum number of items to be returnedgetPropertyFilter
(String property) Returns the current filter for the property, null if not set.Returns the current type filter, null if not set.boolean
Returns indicator if an application id filter has been set.boolean
Returns an indicator if a date filter has been set.boolean
hasPropertyFilter
(String property) Returns an indicator if a filter has been set for a property.boolean
Returns indicator if an type filter has been set.void
setAppIdFilter
(IPropertyFilter filter) Sets the application id filter with OR as the default filterOperatorSets the application id filter with OR as the default filterOperatorSets the date filter with OR as the default filterOperator.void
setDateSort
(SortDirection sortDirection) Sort the result by datevoid
setFirstResult
(int firstResult) Sets the index of the first item to be returnedvoid
setMaxResults
(int maxResults) Sets the maximum number of results to return, default is 0 to use the JDBC driver's defaultsetPropertyFilter
(String property) Sets the filter for a specific property with OR as the default filterOperator.void
setResultRange
(int firstResult, int maxResults) Specify the range of items to returnSets the type filter with OR as the default filterOperator
-
Constructor Details
-
TraceSearchCriteria
public TraceSearchCriteria()
-
-
Method Details
-
hasApplicationIdFilter
public boolean hasApplicationIdFilter()Returns indicator if an application id filter has been set.- Returns:
- The type filter indicator.
-
setApplicationIdFilter
Sets the application id filter with OR as the default filterOperator- Returns:
- The new application id filter, not null.
-
setAppIdFilter
Sets the application id filter with OR as the default filterOperator- Parameters:
filter
- The property filter used for filtering
-
getApplicationIdFilter
Returns the current application id filter, null if not set.- Returns:
- The type filter or null.
-
hasTypeFilter
public boolean hasTypeFilter()Returns indicator if an type filter has been set.- Returns:
- The type filter indicator.
-
setTypeFilter
Sets the type filter with OR as the default filterOperator- Returns:
- The new type filter, not null.
-
getTypeFilter
Returns the current type filter, null if not set.- Returns:
- The type filter or null.
-
hasDateFilter
public boolean hasDateFilter()Returns an indicator if a date filter has been set.- Returns:
- indicator if date filter has been set
-
setDateFilter
Sets the date filter with OR as the default filterOperator.- Returns:
- The new date filter, not null.
-
getDateFilter
Returns the current date filter, null if not set.- Returns:
- The date filter or null.
-
hasPropertyFilter
Returns an indicator if a filter has been set for a property.- Parameters:
property
- The name of the property to check, not null.- Returns:
- Indicator for filter.
-
setPropertyFilter
Sets the filter for a specific property with OR as the default filterOperator.- Parameters:
property
- The name of the property to set a filter for, not null.- Returns:
- The newly set filter.
-
getFilteredProperties
Returns the properties containing a filter, never null.- Returns:
- The names of the properties containing a filter.
-
getPropertyFilter
Returns the current filter for the property, null if not set.- Parameters:
property
- The name of the property to retrieve, not null.- Returns:
- The current set filter or null.
-
getDateSort
Returns the direction in which the entries are sorted on, may be null- Returns:
- a sortdirection indicating in which direction the entries will be sorted
-
setDateSort
Sort the result by date- Parameters:
sortDirection
- The direction to sort in, may be null to specify no sorting
-
getFirstResult
public int getFirstResult()Return the index of the first item to be returned- Returns:
- The index of the first item to be returned
-
setFirstResult
public void setFirstResult(int firstResult) Sets the index of the first item to be returned- Parameters:
firstResult
- index of the first item
-
getMaxResults
public int getMaxResults()Return the maximum number of items to be returned- Returns:
- The maximum number of items to be returned
-
setMaxResults
public void setMaxResults(int maxResults) Sets the maximum number of results to return, default is 0 to use the JDBC driver's default- Parameters:
maxResults
- maximum number of results
-
setResultRange
public void setResultRange(int firstResult, int maxResults) Specify the range of items to return- Parameters:
firstResult
- The index of the first item to returnmaxResults
- The maximum number of items to return
-