2 * Copyright 2015 Open Networking Laboratory
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 package org.onosproject.ovsdb.rfc.tableservice;
18 import org.onosproject.ovsdb.rfc.notation.Column;
19 import org.onosproject.ovsdb.rfc.notation.UUID;
22 * Representation of conversion between Ovsdb table and Row.
24 public interface OvsdbTableService {
27 * Get Column from row.
28 * @param columndesc Column description
31 public Column getColumnHandler(ColumnDescription columndesc);
35 * @param columndesc Column description
36 * @return Object column data
38 public Object getDataHandler(ColumnDescription columndesc);
41 * Set column data of row.
42 * @param columndesc Column description
43 * @param obj column data
45 public void setDataHandler(ColumnDescription columndesc, Object obj);
48 * Returns UUID which column name is _uuid.
51 public UUID getTableUuid();
54 * Returns UUID Column which column name is _uuid.
57 public Column getTableUuidColumn();
60 * Returns UUID which column name is _version.
63 public UUID getTableVersion();
66 * Returns UUID Column which column name is _version.
69 public Column getTableVersionColumn();