b727f4f3826e9afef11bd6aa515788170aa242ba
[vfc/nfvo/resmanagement.git] /
1 /*
2  * Copyright 2016 Huawei Technologies Co., Ltd.
3  *
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
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 package org.openo.nfvo.resmanagement.service.mapper;
18
19 import java.util.List;
20 import java.util.Map;
21
22 import org.openo.nfvo.resmanagement.service.entity.NetworkEntity;
23
24 /**
25  *
26  * Network Mapper Class.<br>
27  * <p>
28  * </p>
29  *
30  * @author
31  * @version     NFVO 0.5  Sep 10, 2016
32  */
33 public interface NetworkMapper {
34
35     /**
36      *
37      * Get network details.<br>
38      *
39      * @param id
40      * @return
41      * @since  NFVO 0.5
42      */
43     NetworkEntity getNetwork(String id);
44
45     /**
46      *
47      * Get details of networks.<br>
48      *
49      * @param condition
50      * @return
51      * @since  NFVO 0.5
52      */
53     List<NetworkEntity> getNetworks(Map<String, Object> condition);
54
55     /**
56      *
57      * Delete network.<br>
58      *
59      * @param id
60      * @return
61      * @since  NFVO 0.5
62      */
63     int deleteNetwork(String id);
64
65     /**
66      *
67      * Delete network by VIM ID.<br>
68      *
69      * @param vimId
70      * @return
71      * @since  NFVO 0.5
72      */
73     int deleteNetworkByVimId(String vimId);
74
75     /**
76      *
77      * Add network.<br>
78      *
79      * @param networkEntity
80      * @return
81      * @since  NFVO 0.5
82      */
83     int addNetwork(NetworkEntity networkEntity);
84
85     /**
86      *
87      * Add selective network.<br>
88      *
89      * @param networkEntity
90      * @return
91      * @since  NFVO 0.5
92      */
93     int addNetworkSelective(NetworkEntity networkEntity);
94
95     /**
96      *
97      * Update selective network.<br>
98      *
99      * @param networkEntity
100      * @return
101      * @since  NFVO 0.5
102      */
103     int updateNetworkSelective(NetworkEntity networkEntity);
104
105     /**
106      *
107      * Update network.<br>
108      *
109      * @param networkEntity
110      * @return
111      * @since  NFVO 0.5
112      */
113     int updateNetwork(NetworkEntity networkEntity);
114
115     /**
116      *
117      * Update network by VIM Id.<br>
118      *
119      * @param networkEntity
120      * @return
121      * @since  NFVO 0.5
122      */
123     int updateNetworkByVimId(NetworkEntity networkEntity);
124
125 }