ead397569c46c76371ae0f988a28efc8623f51e5
[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.dao.inf;
18
19 import java.util.List;
20 import java.util.Map;
21
22 import org.openo.nfvo.resmanagement.service.entity.VirtualLinkEntity;
23
24 /**
25  * <br>
26  * <p>
27  * </p>
28  * 
29  * @author
30  * @version NFVO 0.5 Oct 28, 2016
31  */
32 public interface VirtualLinkDao {
33
34     /**
35      * <br>
36      * 
37      * @param id
38      * @return
39      * @since NFVO 0.5
40      */
41     VirtualLinkEntity getVl(String id);
42
43     /**
44      * <br>
45      * 
46      * @param condition
47      * @return
48      * @since NFVO 0.5
49      */
50     List<VirtualLinkEntity> getVls(Map<String, Object> condition);
51
52     /**
53      * <br>
54      * 
55      * @param virtualLinkEntity
56      * @return
57      * @since NFVO 0.5
58      */
59     int addVl(VirtualLinkEntity virtualLinkEntity);
60
61     /**
62      * <br>
63      * 
64      * @param id
65      * @return
66      * @since NFVO 0.5
67      */
68     int deleteVlById(String id);
69 }