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