Interface MTVariableQuery

All Superinterfaces:
MTDateFilterQuery, MTPatternQuery, MTQuery, MTSortableQuery

public interface MTVariableQuery extends MTQuery, MTDateFilterQuery, MTPatternQuery, MTSortableQuery
  • Method Details

    • selectAll

      MTVariableQuery selectAll()
      Selects all variables in the repository.
    • selectUnusedDocumentRoots

      MTVariableQuery selectUnusedDocumentRoots()
      Select variables of type "mtDocumentRoot" that are not used for any documents in the repository.
    • select

      MTVariableQuery select(List<Long> ids)
      Selects variables by their ID.
      Parameters:
      ids - The ID:s of the variables to select.
    • selectByKeys

      MTVariableQuery selectByKeys(List<String> keys)
      Selects variables by their keys.
      Parameters:
      keys - The keys of the variables to select.
    • selectByTypes

      MTVariableQuery selectByTypes(List<String> types)
      Selects variables by their types.
      Parameters:
      types - The types of the variables to select.
    • selectByNamedQuery

      MTVariableQuery selectByNamedQuery(MTNamedQuery namedQuery)
      Selects from a named query. This way you can base queries on other named queries and filter them further.
      Parameters:
      namedQuery - The named query to base this query on.
    • withPattern

      MTVariableQuery withPattern(String pattern, MTLanguage language, boolean exactMatch, boolean ignoreCase)
      Excludes results where the title does not contain pattern as a substring.
      Specified by:
      withPattern in interface MTPatternQuery
      Parameters:
      pattern - The pattern to search for.
      language - The language of the title to find the pattern in.
      exactMatch - Require the pattern to match the title exactly rather than containing the pattern.
      ignoreCase - Ignores case. This makes "exact match" check lowercase strings for equality and "contains match" check lowercase for contains.
    • withChangesSince

      MTVariableQuery withChangesSince(Date date)
      Excludes variables that have not been modified since a given date.
      Specified by:
      withChangesSince in interface MTDateFilterQuery
      Parameters:
      date - The date to compare against.
    • sort

      MTVariableQuery sort(MTQuery.SortColumn sortColumn, boolean ascending, MTLanguage language, Locale locale)
      Sorts the selected variables.
      Specified by:
      sort in interface MTSortableQuery
      Parameters:
      sortColumn - The column to sort by
      ascending - true for ascending order, false for descending
      language - The language to sort by
      locale - the locale to use when sorting