Class QueryResultSetConverter

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

public class QueryResultSetConverter extends Object
Convert for query result set
  • 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