2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 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=========================================================
21 package org.openecomp.aai.dbgraphgen;
23 import java.util.ArrayList;
24 import java.util.HashMap;
25 import java.util.List;
28 import org.openecomp.aai.dbgen.PropertyLimitDesc;
29 import com.thinkaurelius.titan.core.TitanVertex;
31 public class ResultSet {
32 private TitanVertex vert;
33 private String newDataDelFlag;
34 private String doNotOutputFlag;
35 private String locationInModelSubGraph;
36 private List<ResultSet> subResultSet;
37 private PropertyLimitDesc propertyLimitDesc;
38 private Map<String,Object> propertyOverRideHash;
39 private Map<String,Object> extraPropertyHash;
42 * Instantiates a new result set.
46 this.newDataDelFlag = "";
47 this.doNotOutputFlag = "";
48 this.locationInModelSubGraph = "";
49 this.subResultSet = new ArrayList<>();
50 this.propertyLimitDesc = null;
51 this.propertyOverRideHash = new HashMap<>();
52 this.extraPropertyHash = new HashMap<>();
56 public void setPropertyLimitDesc(PropertyLimitDesc pld) {
57 this.propertyLimitDesc = pld;
65 public TitanVertex getVert(){
70 * Gets the sub result set.
72 * @return the sub result set
74 public List<ResultSet> getSubResultSet(){
75 return this.subResultSet;
79 * Gets the new data del flag.
81 * @return the new data del flag
83 public String getNewDataDelFlag(){
84 return this.newDataDelFlag;
88 * Gets the do not output flag.
90 * @return the do not output flag
92 public String getDoNotOutputFlag(){
93 return this.doNotOutputFlag;
97 * Gets the location in model sub graph.
99 * @return the location in model sub graph
101 public String getLocationInModelSubGraph(){
102 return this.locationInModelSubGraph;
106 * Gets the property limit desc.
108 * @return the property limit desc
110 public PropertyLimitDesc getPropertyLimitDesc(){
111 return this.propertyLimitDesc;
115 * Gets the property over ride hash.
117 * @return the property over ride hash
119 public Map<String,Object> getPropertyOverRideHash(){
120 return this.propertyOverRideHash;
124 * Gets the extra property hash.
126 * @return the extra property hash
128 public Map<String,Object> getExtraPropertyHash(){
129 return this.extraPropertyHash;
133 public void setVert(TitanVertex vert) {
138 public void setNewDataDelFlag(String newDataDelFlag) {
139 this.newDataDelFlag = newDataDelFlag;
143 public void setDoNotOutputFlag(String doNotOutputFlag) {
144 this.doNotOutputFlag = doNotOutputFlag;
148 public void setLocationInModelSubGraph(String locationInModelSubGraph) {
149 this.locationInModelSubGraph = locationInModelSubGraph;
153 public void setSubResultSet(List<ResultSet> subResultSet) {
154 this.subResultSet = subResultSet;
158 public void setPropertyOverRideHash(Map<String, Object> propertyOverRideHash) {
159 this.propertyOverRideHash = propertyOverRideHash;
163 public void setExtraPropertyHash(Map<String, Object> extraPropertyHash) {
164 this.extraPropertyHash = extraPropertyHash;