2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
20 package org.onap.aai.dbgraphgen;
22 import java.util.ArrayList;
23 import java.util.HashMap;
24 import java.util.List;
27 import org.apache.tinkerpop.gremlin.structure.Vertex;
28 import org.onap.aai.dbgen.PropertyLimitDesc;
30 public class ResultSet {
32 private String newDataDelFlag;
33 private String doNotOutputFlag;
34 private String locationInModelSubGraph;
35 private List<ResultSet> subResultSet;
36 private PropertyLimitDesc propertyLimitDesc;
37 private Map<String,Object> propertyOverRideHash;
38 private Map<String,Object> extraPropertyHash;
41 * Instantiates a new result set.
45 this.newDataDelFlag = "";
46 this.doNotOutputFlag = "";
47 this.locationInModelSubGraph = "";
48 this.subResultSet = new ArrayList<>();
49 this.propertyLimitDesc = null;
50 this.propertyOverRideHash = new HashMap<>();
51 this.extraPropertyHash = new HashMap<>();
55 public void setPropertyLimitDesc(PropertyLimitDesc pld) {
56 this.propertyLimitDesc = pld;
64 public Vertex getVert(){
69 * Gets the sub result set.
71 * @return the sub result set
73 public List<ResultSet> getSubResultSet(){
74 return this.subResultSet;
78 * Gets the new data del flag.
80 * @return the new data del flag
82 public String getNewDataDelFlag(){
83 return this.newDataDelFlag;
87 * Gets the do not output flag.
89 * @return the do not output flag
91 public String getDoNotOutputFlag(){
92 return this.doNotOutputFlag;
96 * Gets the location in model sub graph.
98 * @return the location in model sub graph
100 public String getLocationInModelSubGraph(){
101 return this.locationInModelSubGraph;
105 * Gets the property limit desc.
107 * @return the property limit desc
109 public PropertyLimitDesc getPropertyLimitDesc(){
110 return this.propertyLimitDesc;
114 * Gets the property over ride hash.
116 * @return the property over ride hash
118 public Map<String,Object> getPropertyOverRideHash(){
119 return this.propertyOverRideHash;
123 * Gets the extra property hash.
125 * @return the extra property hash
127 public Map<String,Object> getExtraPropertyHash(){
128 return this.extraPropertyHash;
132 public void setVert(Vertex vert) {
137 public void setNewDataDelFlag(String newDataDelFlag) {
138 this.newDataDelFlag = newDataDelFlag;
142 public void setDoNotOutputFlag(String doNotOutputFlag) {
143 this.doNotOutputFlag = doNotOutputFlag;
147 public void setLocationInModelSubGraph(String locationInModelSubGraph) {
148 this.locationInModelSubGraph = locationInModelSubGraph;
152 public void setSubResultSet(List<ResultSet> subResultSet) {
153 this.subResultSet = subResultSet;
157 public void setPropertyOverRideHash(Map<String, Object> propertyOverRideHash) {
158 this.propertyOverRideHash = propertyOverRideHash;
162 public void setExtraPropertyHash(Map<String, Object> extraPropertyHash) {
163 this.extraPropertyHash = extraPropertyHash;