Update URL according to microservice name
[vfc/nfvo/driver/vnfm/svnfm.git] / huawei / vnfmadapter / VnfmadapterService / service / src / main / java / org / openo / nfvo / vnfmadapter / service / mapper / VnfmMapper.java
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.vnfmadapter.service.mapper;
18
19 import java.util.List;
20
21 import org.apache.ibatis.annotations.Param;
22 import org.openo.nfvo.vnfmadapter.service.entity.Vnfm;
23
24 /**
25  * VNFM mapper.</br>
26  *
27  * @author
28  * @version     NFVO 0.5  Sep 14, 2016
29  */
30 public interface VnfmMapper {
31
32     /**
33      * Add VNFM
34      * <br>
35      *
36      * @param vnfm Vnfm
37      * @return
38      * @since  NFVO 0.5
39      */
40     int insertVnfm(Vnfm vnfm);
41
42     /**
43      * Update VNFM
44      * <br>
45      *
46      * @param vnfm Vnfm
47      * @return
48      * @since  NFVO 0.5
49      */
50     int updateVnfm(Vnfm vnfm);
51
52     /**
53      * Delete VNFM
54      * <br>
55      *
56      * @param vnfmDn
57      * @return
58      * @since  NFVO 0.5
59      */
60     int deleteVnfm(String vnfmDn);
61
62     /**
63      * Index VNFM
64      * <br>
65      *
66      * @param offset
67      * @param pageSize
68      * @return
69      * @since  NFVO 0.5
70      */
71     List<Vnfm> indexVnfms(@Param("offset") int offset, @Param("pageSize") int pageSize);
72
73     /**
74      * Get VNFM counts.
75      * <br>
76      *
77      * @return
78      * @since  NFVO 0.5
79      */
80     int getCountVnfms();
81
82     /**
83      * Get VNFM by id
84      * <br>
85      *
86      * @param id
87      * @return
88      * @since  NFVO 0.5
89      */
90     Vnfm getVnfmById(String id);
91 }