Add TypedReflections
[ovsdb.git] / library / impl / src / main / java / org / opendaylight / ovsdb / lib / schema / typed / TypedBaseTable.java
1 /*
2  * Copyright (c) 2014, 2015 Red Hat, Inc. and others. All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.ovsdb.lib.schema.typed;
10
11 import org.opendaylight.ovsdb.lib.notation.Column;
12 import org.opendaylight.ovsdb.lib.notation.Row;
13 import org.opendaylight.ovsdb.lib.notation.UUID;
14 import org.opendaylight.ovsdb.lib.schema.TableSchema;
15
16 public interface TypedBaseTable<E extends TableSchema<E>> {
17     @TypedColumn(name = "", method = MethodType.GETTABLESCHEMA)
18     E getSchema();
19
20     @TypedColumn(name = "", method = MethodType.GETROW)
21     Row<E> getRow();
22
23     @TypedColumn(name = "_uuid", method = MethodType.GETDATA)
24     UUID getUuid();
25
26     @TypedColumn(name = "_uuid", method = MethodType.GETCOLUMN)
27     Column<E, UUID> getUuidColumn();
28
29     @TypedColumn(name = "_version", method = MethodType.GETDATA)
30     UUID getVersion();
31
32     @TypedColumn(name = "_version", method = MethodType.GETCOLUMN)
33     Column<E, UUID> getVersionColumn();
34 }