Package com.emc.documentum.rest.dfc.query

# Class GenericQueryTemplate

java.lang.Object
com.emc.documentum.rest.dfc.query.GenericQueryTemplate

public abstract class GenericQueryTemplate extends Object
An abstract query template to build DQL for collection without pagination.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GenericQueryTemplate()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected abstract List<String>`
  `fields()`
  get the fields list which is used by query "select", exclude "select" key word
  `protected abstract String`
  `from()`
  get the query from clause, exclude "from" key word
  `final String`
  `getQuery()`
  Get DQL query expression for the template
  `protected abstract String`
  `qualification()`
  get the qualification of the query, exclude "where" key word
  `protected abstract List<SortOrder>`
  `sort()`
  get the sort definition list, used as order

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### GenericQueryTemplate

    public GenericQueryTemplate()

- ## Method Details

  - ### getQuery

    public final String getQuery()
    Get DQL query expression for the template
    Returns:
      DQL query expression

  - ### fields

    protected abstract List<String> fields()
    get the fields list which is used by query "select", exclude "select" key word
    Returns:
      attributes selected

  - ### qualification

    protected abstract String qualification()
    get the qualification of the query, exclude "where" key word
    Returns:
      qualification

  - ### from

    protected abstract String from()
    get the query from clause, exclude "from" key word
    Returns:
      from clause

  - ### sort

    protected abstract List<SortOrder> sort()
    get the sort definition list, used as order
    Returns:
      sort definition list