blob: 9e10601278bd98bfae53ad3fa02e5458c859b813 [file] [log] [blame]
Sho SHIMIZUe4efe452015-08-26 15:06:55 -07001/*
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 */
16package org.onosproject.ovsdb.rfc.tableservice;
17
18import org.onosproject.ovsdb.rfc.notation.Column;
Jonathan Hart51539b82015-10-29 09:53:04 -070019import org.onosproject.ovsdb.rfc.notation.Uuid;
Sho SHIMIZUe4efe452015-08-26 15:06:55 -070020
21/**
22 * Representation of conversion between Ovsdb table and Row.
23 */
24public 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 */
Jonathan Hart51539b82015-10-29 09:53:04 -070051 public Uuid getTableUuid();
Sho SHIMIZUe4efe452015-08-26 15:06:55 -070052
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 */
Jonathan Hart51539b82015-10-29 09:53:04 -070063 public Uuid getTableVersion();
Sho SHIMIZUe4efe452015-08-26 15:06:55 -070064
65 /**
66 * Returns UUID Column which column name is _version.
67 * @return UUID Column
68 */
69 public Column getTableVersionColumn();
70}