Handling Policy deploy/undeploy audit models
[policy/models.git] / models-dao / src / main / java / org / onap / policy / models / dao / PfDao.java
index 8447593..378ae59 100644 (file)
@@ -251,6 +251,17 @@ public interface PfDao {
      */
     <T extends PfConcept> List<T> getAll(Class<T> someClass, PfConceptKey parentKey);
 
+    /**
+     * Get all the objects in the database of a given type.
+     *
+     * @param <T> the type of the objects to get, a subclass of {@link PfConcept}
+     * @param someClass the class of the objects to get, a subclass of {@link PfConcept}
+     * @param orderBy field from class to order results by
+     * @param numRecords number of records to be retrieved
+     * @return the objects or null if no objects were retrieved
+     */
+    <T extends PfConcept> List<T> getAll(Class<T> someClass, String orderBy, Integer numRecords);
+
     /**
      * Get all the objects in the database of a given type.
      *