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