2 * Copyright (C) 2014 Red Hat Inc,
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
8 * Authors : Dave Tucker
12 package org.opendaylight.ovsdb.lib.operations;
14 import java.util.List;
16 import org.opendaylight.ovsdb.lib.notation.Condition;
17 import org.opendaylight.ovsdb.lib.schema.TableSchema;
19 import com.google.common.collect.Lists;
21 public class Delete<E extends TableSchema<E>> extends Operation<E> implements ConditionalOperation {
23 public static final String DELETE = "delete";
24 List<Condition> where = Lists.newArrayList();
27 public Delete(TableSchema<E> schema) {
28 super(schema, DELETE);
31 public Delete<E> on(TableSchema schema){
35 public Where where(Condition condition) {
37 return new Where(this);
41 public void addCondition(Condition condition) {
42 this.where.add(condition);
45 public List<Condition> getWhere() {
49 public void setWhere(List<Condition> where) {
53 public Integer getCount() {
57 public void setCount(Integer count) {