Simplifying the User facing APIs in TyperUtils. 60/8160/7
authorMadhu Venugopal <mavenugo@gmail.com>
Fri, 20 Jun 2014 08:41:33 +0000 (01:41 -0700)
committerMadhu Venugopal <mavenugo@gmail.com>
Fri, 20 Jun 2014 17:10:14 +0000 (10:10 -0700)
commitb26f851bd5612c3da50aa6877cadd25b85d57293
tree65461f1540006c3f7048b834b972a1dd32af7322
parent356689c0ef847c6d281b9078711f61dd6c797771
Simplifying the User facing APIs in TyperUtils.

Based on Ashwin's comment to the library infra gerrit (8104), more simplified User Facing APIs are introduced :
1. Bridge rBridge = ovs.createTypedRowWrapper(TestBridge.class);
   replaces
   TestBridge rBridge = TyperUtils.getTypedRowWrapper(dbSchema, TestBridge.class, new Row<GenericTableSchema>());

2. rBridge.getSchema()
   replaces
   GenericTableSchema rBridgeSchema = TyperUtils.getTableSchema(dbSchema, TestBridge.class);

More such Simplified alternative APIs will be added based on usage.

Change-Id: Ibdee07b308145bf792c9309d7095a94aac2d23b3
Signed-off-by: Madhu Venugopal <mavenugo@gmail.com>
library/src/main/java/org/opendaylight/ovsdb/lib/OvsDBClient.java
library/src/main/java/org/opendaylight/ovsdb/lib/OvsDBClientImpl.java
library/src/main/java/org/opendaylight/ovsdb/lib/schema/typed/MethodType.java
library/src/main/java/org/opendaylight/ovsdb/lib/schema/typed/TypedBaseTable.java
library/src/main/java/org/opendaylight/ovsdb/lib/schema/typed/TyperUtils.java
library/src/test/java/org/opendaylight/ovsdb/lib/OvsDBClientTestITTyped.java
library/src/test/java/org/opendaylight/ovsdb/lib/VersionIncompatibleBridge.java [new file with mode: 0644]
schemas/Open_vSwitch/src/test/java/org/opendaylight/ovsdb/schema/openvswitch/TypedVSwitchdSchemaIT.java