Add the logging statements for when
[aai/aai-common.git] / aai-core / src / main / java / org / onap / aai / serialization / engines / query / QueryEngine.java
index 110f862..1e2da4b 100644 (file)
@@ -37,7 +37,7 @@ public abstract class QueryEngine {
        /**
         * Instantiates a new query engine.
         *
-        * @param graphEngine the graph engine
+     * @param g     graph traversal source to traverse the graph
         */
        public QueryEngine (GraphTraversalSource g) {
                this.g = g;
@@ -100,6 +100,15 @@ public abstract class QueryEngine {
         */
        public abstract List<Vertex> findDeletable(Vertex start);
 
+    /**
+     * Find all vertices that should be deleted in a cascade from a delete of start vertexes
+     *
+     * @param   startVertexes   Specifies the list of start vertexes
+     *
+     * @return  the list of vertices to be deleted when start list of vertexes is deleted
+     */
+    public abstract List<Vertex> findDeletable(List<Vertex> startVertexes);
+
        /**
         * Finds the subgraph under start, including cousins as well as start's children/grandchildren/etc.
         * More specifically, this includes start, all its descendants, start's cousins, and start's