Package com.emc.documentum.rest.dfc.conversion

# Class QueryResultSetConverter

java.lang.Object
com.emc.documentum.rest.dfc.conversion.QueryResultSetConverter

public class QueryResultSetConverter extends Object
Convert for query result set

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `QueryResultSetConverter(List<com.documentum.fc.client.IDfTypedObject> resultSet)`
  Init the converter

- ## Method Summary

  Modifier and Type
  Method
  Description
  `List<PersistentObject>`
  `convert()`
  Convert the objects in query result set to intances of `PersistentObject`
  `<T extends PersistentObject>
  List<T>`
  `convert(Class<T> clazz)`
  Convert the objects in query result set to instances of type `T`

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

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

- ## Constructor Details

  - ### QueryResultSetConverter

    public QueryResultSetConverter(List<com.documentum.fc.client.IDfTypedObject> resultSet)
    Init the converter
    Parameters:
      `resultSet` - query result set

- ## Method Details

  - ### convert

    public <T extends PersistentObject> List<T> convert(Class<T> clazz) throws com.documentum.fc.common.DfException
    Convert the objects in query result set to instances of type `T`
    Type Parameters:
      `T` - target type for the query results
    Parameters:
      `clazz` - Class object of type `T`
    Returns:
      converted query result set
    Throws:
      `com.documentum.fc.common.DfException` - exception during the operation

  - ### convert

    public List<PersistentObject> convert() throws com.documentum.fc.common.DfException
    Convert the objects in query result set to intances of `PersistentObject`
    Returns:
      converted query result set
    Throws:
      `com.documentum.fc.common.DfException` - exception during the operation