4af0e3d21c130731f929a7f1d0f79bf833ffb947
[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.onap.vfc.nfvo.resmanagement.service.mapper;
18
19 import java.util.List;
20 import java.util.Map;
21
22 import org.onap.vfc.nfvo.resmanagement.service.entity.LocationEntity;
23
24 /**
25  *
26  * Location Mapper Class.<br>
27  * <p>
28  * </p>
29  *
30  * @author
31  * @version     NFVO 0.5  Sep 10, 2016
32  */
33 public interface LocationMapper {
34
35     /**
36      *
37      * Get location.<br>
38      *
39      * @param id
40      * @return
41      * @since  NFVO 0.5
42      */
43     LocationEntity getLocation(String id);
44
45     /**
46      *
47      * Get Country.<br>
48      *
49      * @return
50      * @since  NFVO 0.5
51      */
52     List<String> getCountry();
53
54     /**
55      *
56      * Get location by country.<br>
57      *
58      * @param condition
59      * @return
60      * @since  NFVO 0.5
61      */
62     List<String> getLocationByCountry(Map<String, Object> condition);
63
64     /**
65      *
66      * get locations.<br>
67      *
68      * @param condition
69      * @return
70      * @since  NFVO 0.5
71      */
72     List<LocationEntity> getLocations(Map<String, Object> condition);
73
74     /**
75      *
76      * Delete location.<br>
77      *
78      * @param location
79      * @return
80      * @since  NFVO 0.5
81      */
82     int deleteLocation(String location);
83
84     /**
85      *
86      * Add location.<br>
87      *
88      * @param locationEntity
89      * @return
90      * @since  NFVO 0.5
91      */
92     int addLocation(LocationEntity locationEntity);
93
94     /**
95      *
96      * Add selective location.<br>
97      *
98      * @param locationEntity
99      * @return
100      * @since  NFVO 0.5
101      */
102     int addLocationSelective(LocationEntity locationEntity);
103
104     /**
105      *
106      * Update selective location.<br>
107      *
108      * @param locationEntity
109      * @return
110      * @since  NFVO 0.5
111      */
112     int updateLocationSelective(LocationEntity locationEntity);
113
114     /**
115      *
116      * Update location.<br>
117      *
118      * @param locationEntity
119      * @return
120      * @since  NFVO 0.5
121      */
122     int updateLocation(LocationEntity locationEntity);
123 }