dcf2c9fc3c9c5fb4200c68c524ac7c15126e4a1f
[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.LocationEntity;
23
24 /**
25  *
26  * Location DAO Class.<br>
27  * <p>
28  * </p>
29  *
30  * @author
31  * @version     NFVO 0.5  Sep 10, 2016
32  */
33 public interface LocationDao {
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 Locations.<br>
48      *
49      * @param condition
50      * @return
51      * @since  NFVO 0.5
52      */
53     List<LocationEntity> getLocations(Map<String, Object> condition);
54
55     /**
56      *
57      * Delete Location.<br>
58      *
59      * @param location
60      * @return
61      * @since  NFVO 0.5
62      */
63     int deleteLocation(String location);
64
65     /**
66      *
67      * Add Location.<br>
68      *
69      * @param sodoResEntity
70      * @return
71      * @since  NFVO 0.5
72      */
73     int addLocation(LocationEntity sodoResEntity);
74
75     /**
76      *
77      * Add Selective Location.<br>
78      *
79      * @param sodoResEntity
80      * @return
81      * @since  NFVO 0.5
82      */
83     int addLocationSelective(LocationEntity sodoResEntity);
84
85     /**
86      *
87      * Update selective location.<br>
88      *
89      * @param sodoResEntity
90      * @return
91      * @since  NFVO 0.5
92      */
93     int updateLocationSelective(LocationEntity sodoResEntity);
94
95     /**
96      *
97      * Update Location.<br>
98      *
99      * @param sodoResEntity
100      * @return
101      * @since  NFVO 0.5
102      */
103     int updateLocation(LocationEntity sodoResEntity);
104
105     /**
106      *
107      * Get Country.<br>
108      *
109      * @return
110      * @since  NFVO 0.5
111      */
112     List<String> getCountry();
113
114     /**
115      *
116      * Get Location by Country.<br>
117      *
118      * @param condition
119      * @return
120      * @since  NFVO 0.5
121      */
122     List<String> getLocationByCountry(Map<String, Object> condition);
123 }