3 * * Copyright (C) 2014 EBay Software Foundation
5 * * This program and the accompanying materials are made available under the
6 * * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 * * and is available at http://www.eclipse.org/legal/epl-v10.html
9 * * Authors : Ashwin Raveendran
13 package org.opendaylight.ovsdb.lib.operations;
15 import org.opendaylight.ovsdb.lib.schema.TableSchema;
17 public class Operations {
18 public static Operations op = new Operations();
20 public <E extends TableSchema<E>> Insert<E> insert(TableSchema<E> schema) {
21 return new Insert<>(schema);
24 public <E extends TableSchema<E>> Update<E> update(TableSchema<E> schema) {
25 return new Update<>(schema);
28 public <E extends TableSchema<E>> Delete<E> delete(TableSchema<E> schema) {
29 return new Delete<>(schema);
32 public Commit commit(Boolean durable) {
33 return new Commit(durable);
36 public Abort abort() {
40 public <E extends TableSchema<E>> Select<E> select(TableSchema<E> schema) {
41 return new Select<>(schema);
44 public Comment comment(String comment) {
45 return new Comment(comment);