Class TraceSearchCriteria

java.lang.Object
com.aquima.interactions.trace.TraceSearchCriteria
All Implemented Interfaces:
Serializable

public class TraceSearchCriteria extends Object implements Serializable
Search query builder for searching traces.
Since:
9.2
Author:
A.Pragt
See Also:
  • 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

      public PropertyFilter setApplicationIdFilter()
      Sets the application id filter with OR as the default filterOperator
      Returns:
      The new application id filter, not null.
    • setAppIdFilter

      public void setAppIdFilter(IPropertyFilter filter)
      Sets the application id filter with OR as the default filterOperator
      Parameters:
      filter - The property filter used for filtering
    • getApplicationIdFilter

      public PropertyFilter 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

      public PropertyFilter setTypeFilter()
      Sets the type filter with OR as the default filterOperator
      Returns:
      The new type filter, not null.
    • getTypeFilter

      public PropertyFilter 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

      public PropertyFilter setDateFilter()
      Sets the date filter with OR as the default filterOperator.
      Returns:
      The new date filter, not null.
    • getDateFilter

      public PropertyFilter getDateFilter()
      Returns the current date filter, null if not set.
      Returns:
      The date filter or null.
    • hasPropertyFilter

      public boolean hasPropertyFilter(String property)
      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

      public PropertyFilter setPropertyFilter(String property)
      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

      public String[] getFilteredProperties()
      Returns the properties containing a filter, never null.
      Returns:
      The names of the properties containing a filter.
    • getPropertyFilter

      public PropertyFilter getPropertyFilter(String property)
      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

      public SortDirection 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

      public void setDateSort(SortDirection sortDirection)
      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 return
      maxResults - The maximum number of items to return