2 * [[ Authors will Fill in the Copyright header ]]
\r
4 * This program and the accompanying materials are made available under the
\r
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
\r
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
\r
8 * Authors : Brent Salisbury, Evan Zeller
\r
10 package org.opendaylight.ovsdb.lib.database;
\r
12 import com.fasterxml.jackson.annotation.JsonProperty;
\r
13 import org.opendaylight.ovsdb.lib.notation.Condition;
\r
14 import org.opendaylight.ovsdb.lib.notation.Function;
\r
16 public class ColumnSchema {
\r
20 @JsonProperty("type")
\r
21 private OvsdbType type;
\r
23 @JsonProperty("ephemeral")
\r
24 private Boolean ephemeral;
\r
26 @JsonProperty("mutable")
\r
27 private Boolean mutable;
\r
29 public OvsdbType getType() {
\r
33 public Boolean getEphemeral() {
\r
37 public Boolean getMutable() {
\r
41 public String getName() {
\r
45 public void setName(String name) {
\r
49 public Condition opEqual(String some) {
\r
50 return new Condition(this.getName(), Function.EQUALS, some);
\r
53 public Condition opGreaterThan(Object val) {
\r
54 return new Condition(this.getName(), Function.GREATER_THAN, val);
\r
57 public Condition opLesserThan(int val) {
\r
58 return new Condition(this.getName(), Function.GREATER_THAN, val);
\r
61 public Condition opLesserThanOrEquals(Object val) {
\r
62 return new Condition(this.getName(), Function.LESS_THAN_OR_EQUALS, val);
\r
66 public String toString() {
\r
67 return "ColumnType [type=" + type + ", ephemeral=" + ephemeral
\r
68 + ", mutable=" + mutable + "]";
\r