Abort operation as per Section 5.2.8 of RFC 7047
[ovsdb.git] / library / src / main / java / org / opendaylight / ovsdb / lib / operations / Operations.java
1 /*
2  *
3  *  * Copyright (C) 2014 EBay Software Foundation
4  *  *
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
8  *  *
9  *  * Authors : Ashwin Raveendran
10  *
11  */
12
13 package org.opendaylight.ovsdb.lib.operations;
14
15 import org.opendaylight.ovsdb.lib.schema.TableSchema;
16
17 public class Operations {
18     public static Operations op = new Operations();
19
20     public <E extends TableSchema<E>> Insert<E> insert(TableSchema<E> schema) {
21         return new Insert<>(schema);
22     }
23
24     public  <E extends TableSchema<E>> Update<E> update(TableSchema<E> schema) {
25         return new Update<>(schema);
26     }
27
28     public  <E extends TableSchema<E>> Delete<E> delete(TableSchema<E> schema) {
29         return new Delete<>(schema);
30     }
31
32     public Commit commit(Boolean durable) {
33         return new Commit(durable);
34     }
35
36     public Abort abort() {
37         return new Abort();
38     }
39 }