Added more ignorable files to .gitignore
[ovsdb.git] / library / src / main / java / org / opendaylight / ovsdb / lib / notation / Mutation.java
1 /*
2  * Copyright (C) 2013 Red Hat, Inc.
3  *
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
7  *
8  * Authors : Madhu Venugopal, Ashwin Raveendran
9  */
10 package org.opendaylight.ovsdb.lib.notation;
11
12 import org.opendaylight.ovsdb.lib.notation.json.MutationSerializer;
13
14 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
15
16 @JsonSerialize(using = MutationSerializer.class)
17 public class Mutation {
18     String column;
19     Mutator mutator;
20     Object value;
21
22     public Mutation(String column, Mutator mutator, Object value) {
23         super();
24         this.column = column;
25         this.mutator = mutator;
26         this.value = value;
27     }
28
29     public String getColumn() {
30         return column;
31     }
32
33     public void setColumn(String column) {
34         this.column = column;
35     }
36
37     public Mutator getMutator() {
38         return mutator;
39     }
40
41     public void setMutator(Mutator mutator) {
42         this.mutator = mutator;
43     }
44
45     public Object getValue() {
46         return value;
47     }
48
49     public void setValue(Object value) {
50         this.value = value;
51     }
52 }