2 * Copyright 2016 Huawei Technologies Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package org.onap.vfc.nfvo.resmanagement.service.dao.impl;
19 import java.util.List;
22 import org.onap.vfc.nfvo.resmanagement.service.dao.impl.AbstractDao;
23 import org.onap.vfc.nfvo.resmanagement.service.dao.inf.NetworkDao;
24 import org.onap.vfc.nfvo.resmanagement.service.entity.NetworkEntity;
25 import org.onap.vfc.nfvo.resmanagement.service.mapper.NetworkMapper;
29 * Network DAO implementation class.<br>
34 * @version NFVO 0.5 Sep 10, 2016
36 public class NetworkDaoImpl extends AbstractDao implements NetworkDao {
39 public NetworkEntity getNetwork(String id) {
40 return getMapperManager(NetworkMapper.class).getNetwork(id);
44 public List<NetworkEntity> getNetworks(Map<String, Object> condition) {
45 return getMapperManager(NetworkMapper.class).getNetworks(condition);
49 public int deleteNetwork(String id) {
50 return getMapperManager(NetworkMapper.class).deleteNetwork(id);
54 public int deleteNetworkByVimId(String vimId) {
55 return getMapperManager(NetworkMapper.class).deleteNetworkByVimId(vimId);
59 public int addNetwork(NetworkEntity networkEntity) {
60 return getMapperManager(NetworkMapper.class).addNetwork(networkEntity);
64 public int addNetworkSelective(NetworkEntity networkEntity) {
65 return getMapperManager(NetworkMapper.class).addNetworkSelective(networkEntity);
69 public int updateNetworkSelective(NetworkEntity networkEntity) {
70 return getMapperManager(NetworkMapper.class).updateNetworkSelective(networkEntity);
74 public int updateNetwork(NetworkEntity networkEntity) {
75 return getMapperManager(NetworkMapper.class).updateNetwork(networkEntity);
79 public int updateNetworkByVimId(NetworkEntity networkEntity) {
80 return getMapperManager(NetworkMapper.class).updateNetworkByVimId(networkEntity);