Sonar reduce method parameter
[music.git] / src / main / java / org / onap / music / conductor / conditionals / UpdateDataObject.java
1 /*-
2  * ============LICENSE_START=======================================================
3  *  Copyright (C) 2019 Samsung Electronics Co., Ltd. All rights reserved.
4  * ================================================================================
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * SPDX-License-Identifier: Apache-2.0
18  * ============LICENSE_END=========================================================
19  */
20 package org.onap.music.conductor.conditionals;
21
22 import java.util.Map;
23 import org.onap.music.datastore.PreparedQueryObject;
24
25 public class UpdateDataObject {
26
27     Map<String, PreparedQueryObject> queryBank; 
28     String keyspace;
29     String tableName;
30     String primaryKey;
31     String primaryKeyValue;
32     String planId;
33     String cascadeColumnName;
34     Map<String, String> cascadeColumnValues;
35     String lockId;
36
37     public Map<String, PreparedQueryObject> getQueryBank() {
38         return queryBank;
39     }
40
41     public UpdateDataObject setQueryBank(Map<String, PreparedQueryObject> queryBank) {
42         this.queryBank = queryBank;
43         return this;
44     }
45
46     public String getKeyspace() {
47         return keyspace;
48     }
49
50     public UpdateDataObject setKeyspace(String keyspace) {
51         this.keyspace = keyspace;
52         return this;
53     }
54
55     public String getTableName() {
56         return tableName;
57     }
58
59     public UpdateDataObject setTableName(String tableName) {
60         this.tableName = tableName;
61         return this;
62     }
63
64     public String getPrimaryKey() {
65         return primaryKey;
66     }
67
68     public UpdateDataObject setPrimaryKey(String primaryKey) {
69         this.primaryKey = primaryKey;
70         return this;
71     }
72
73     public String getPrimaryKeyValue() {
74         return primaryKeyValue;
75     }
76
77     public UpdateDataObject setPrimaryKeyValue(String primaryKeyValue) {
78         this.primaryKeyValue = primaryKeyValue;
79         return this;
80     }
81
82     public String getPlanId() {
83         return planId;
84     }
85
86     public UpdateDataObject setPlanId(String planId) {
87         this.planId = planId;
88         return this;
89     }
90
91     public String getCascadeColumnName() {
92         return cascadeColumnName;
93     }
94
95     public UpdateDataObject setCascadeColumnName(String cascadeColumnName) {
96         this.cascadeColumnName = cascadeColumnName;
97         return this;
98     }
99
100     public Map<String, String> getCascadeColumnValues() {
101         return cascadeColumnValues;
102     }
103
104     public UpdateDataObject setLockId(String lockId) {
105         this.lockId=lockId;
106         return this;
107     }
108     
109     public String getLockId() {
110         return lockId;
111     }
112     
113     public UpdateDataObject setCascadeColumnValues(Map<String, String> cascadeColumnValues) {
114         this.cascadeColumnValues = cascadeColumnValues;
115         return this;
116     }
117
118
119 }