Add TypedReflections 12/86212/2
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 30 Nov 2019 12:27:24 +0000 (13:27 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 5 Dec 2019 12:45:59 +0000 (13:45 +0100)
commit8a8f8cfdfb6439d897aacbf7e2b244d8670ef3ea
tree2cd476d2533701c432f448c8c1ca64982762056b
parentd97430282ae6a1fc03a3e8e80db8666c29dd8284
Add TypedReflections

We have multiple places which are accessing annotation-based type
information. This provides a single place to obtain that information.

As we have proper encapsulation, add caches for table/column
versions. Since we are dealing with Version, this class is updated
to be immutable and provide a Range<Version> factory.

Change-Id: I5c2f1d3553392cbd222a1927fdd36564f895475b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit fe88fed9e88ee27a191143678ac3598296597a12)
library/impl/src/main/java/org/opendaylight/ovsdb/lib/impl/OvsdbClientImpl.java
library/impl/src/main/java/org/opendaylight/ovsdb/lib/notation/Version.java
library/impl/src/main/java/org/opendaylight/ovsdb/lib/schema/typed/TypedReflections.java [new file with mode: 0644]
library/impl/src/main/java/org/opendaylight/ovsdb/lib/schema/typed/TyperUtils.java
library/impl/src/test/java/org/opendaylight/ovsdb/lib/schema/typed/TyperUtilsTest.java