summaryrefslogtreecommitdiffstats
path: root/blueprints-processor/adaptors/data-adaptor-provider/src/main/java/org/onap/ccsdk/config/data/adaptor/service/ConfigResourceServiceImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'blueprints-processor/adaptors/data-adaptor-provider/src/main/java/org/onap/ccsdk/config/data/adaptor/service/ConfigResourceServiceImpl.java')
-rw-r--r--blueprints-processor/adaptors/data-adaptor-provider/src/main/java/org/onap/ccsdk/config/data/adaptor/service/ConfigResourceServiceImpl.java45
1 files changed, 24 insertions, 21 deletions
diff --git a/blueprints-processor/adaptors/data-adaptor-provider/src/main/java/org/onap/ccsdk/config/data/adaptor/service/ConfigResourceServiceImpl.java b/blueprints-processor/adaptors/data-adaptor-provider/src/main/java/org/onap/ccsdk/config/data/adaptor/service/ConfigResourceServiceImpl.java
index 77fbbe1ab..c8803092a 100644
--- a/blueprints-processor/adaptors/data-adaptor-provider/src/main/java/org/onap/ccsdk/config/data/adaptor/service/ConfigResourceServiceImpl.java
+++ b/blueprints-processor/adaptors/data-adaptor-provider/src/main/java/org/onap/ccsdk/config/data/adaptor/service/ConfigResourceServiceImpl.java
@@ -1,15 +1,18 @@
/*
* Copyright © 2017-2018 AT&T Intellectual Property.
+ * Modifications Copyright © 2018 IBM.
*
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
*/
package org.onap.ccsdk.config.data.adaptor.service;
@@ -31,18 +34,18 @@ import com.att.eelf.configuration.EELFManager;
public class ConfigResourceServiceImpl implements ConfigResourceService {
private static EELFLogger logger = EELFManager.getInstance().getLogger(ConfigResourceServiceImpl.class);
private static final String CLASS_NAME = "ConfigResourceServiceImpl";
-
+
private TransactionLogDao transactionLogDao;
private ConfigResourceDao configResourceDao;
private QueryExecutorDao queryExecutorDao;
private NamedQueryExecutorDao namedQueryExecutorDao;
private ConfigPropertyMapDao configPropertyMapDao;
-
+
@SuppressWarnings("squid:S00107")
public ConfigResourceServiceImpl(TransactionLogDao transactionLogDao, ConfigResourceDao configResourceDao,
QueryExecutorDao queryExecutorDao, NamedQueryExecutorDao namedQueryExecutorDao,
ConfigPropertyMapDao configPropertyMapDao) {
-
+
logger.info("{} Constuctor Initated...", CLASS_NAME);
this.transactionLogDao = transactionLogDao;
this.configResourceDao = configResourceDao;
@@ -50,61 +53,61 @@ public class ConfigResourceServiceImpl implements ConfigResourceService {
this.namedQueryExecutorDao = namedQueryExecutorDao;
this.configPropertyMapDao = configPropertyMapDao;
}
-
+
@Override
public NamedParameterJdbcTemplate getNamedParameterJdbcTemplate() throws SvcLogicException {
return namedQueryExecutorDao.getNamedParameterJdbcTemplate();
}
-
+
@Override
public List<Map<String, Object>> query(String sql, Map<String, Object> parameters) throws SvcLogicException {
return namedQueryExecutorDao.query(sql, parameters);
}
-
+
@Override
public int update(String sql, Map<String, Object> parameters) throws SvcLogicException {
return namedQueryExecutorDao.update(sql, parameters);
}
-
+
@Override
public List<Map<String, Object>> query(String sql, Object[] data) throws SvcLogicException {
return queryExecutorDao.query(sql, data);
}
-
+
@Override
public int update(String sql, Object[] data) throws SvcLogicException {
return queryExecutorDao.update(sql, data);
}
-
+
@Override
public void save(TransactionLog transactionLog) throws SvcLogicException {
transactionLogDao.save(transactionLog);
}
-
+
@Override
public List<TransactionLog> getTransactionsByRequestId(String requestId) throws SvcLogicException {
return transactionLogDao.getTransactionsByRequestId(requestId);
}
-
+
@Override
public List<TransactionLog> getTransactionsByRequestId(String requestId, String messageType)
throws SvcLogicException {
return transactionLogDao.getTransactionsByRequestId(requestId, messageType);
}
-
+
@Override
public List<ConfigResource> getConfigResource(ConfigResource configResource) throws SvcLogicException {
return configResourceDao.findByConfigResource(configResource);
}
-
+
@Override
public ConfigResource saveConfigResource(ConfigResource configResource) throws SvcLogicException {
return configResourceDao.save(configResource);
}
-
+
@Override
public String getConfigPropertyByKey(String key) throws SvcLogicException {
return configPropertyMapDao.getConfigPropertyByKey(key);
}
-
+
}