58b656ef6ce80dad7cb4b33fcec48b89ef1f4673
[onosfw.git] /
1 /*
2  * Copyright 2015 Open Networking Laboratory
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 package org.onosproject.ovsdb.rfc.tableservice;
17
18 import org.onosproject.ovsdb.rfc.notation.Column;
19 import org.onosproject.ovsdb.rfc.notation.UUID;
20
21 /**
22  * Representation of conversion between Ovsdb table and Row.
23  */
24 public interface OvsdbTableService {
25
26     /**
27      * Get Column from row.
28      * @param columndesc Column description
29      * @return Column
30      */
31     public Column getColumnHandler(ColumnDescription columndesc);
32
33     /**
34      * Get Data from row.
35      * @param columndesc Column description
36      * @return Object column data
37      */
38     public Object getDataHandler(ColumnDescription columndesc);
39
40     /**
41      * Set column data of row.
42      * @param columndesc Column description
43      * @param obj column data
44      */
45     public void setDataHandler(ColumnDescription columndesc, Object obj);
46
47     /**
48      * Returns UUID which column name is _uuid.
49      * @return UUID
50      */
51     public UUID getTableUuid();
52
53     /**
54      * Returns UUID Column which column name is _uuid.
55      * @return UUID Column
56      */
57     public Column getTableUuidColumn();
58
59     /**
60      * Returns UUID which column name is _version.
61      * @return UUID
62      */
63     public UUID getTableVersion();
64
65     /**
66      * Returns UUID Column which column name is _version.
67      * @return UUID Column
68      */
69     public Column getTableVersionColumn();
70 }