X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fmodification%2FAbstractModification.java;h=c81468d6617a9a2302a17a2218c9e613764ebe2a;hp=4f4f0fb8f17b3baf065c2340e97819ff97f2a43e;hb=35dfbc096623d860b6e24b2d17ac6e2c6a3dca1c;hpb=9b3246b5f5ed82559bf0c75141731dc3376125f9 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/modification/AbstractModification.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/modification/AbstractModification.java index 4f4f0fb8f1..c81468d661 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/modification/AbstractModification.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/modification/AbstractModification.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. + * Copyright (c) 2014, 2017 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, @@ -8,26 +8,33 @@ package org.opendaylight.controller.cluster.datastore.modification; - import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier; -import java.io.Serializable; - /** - * Base class to be used for all simple modifications that can be applied to a DOMStoreTransaction + * Base class to be used for all simple modifications that can be applied to a DOMStoreTransaction. */ -public abstract class AbstractModification implements Modification, - Serializable { +public abstract class AbstractModification implements Modification { - private static final long serialVersionUID = 1638042650152084457L; + private YangInstanceIdentifier path; + private short version; - protected final YangInstanceIdentifier path; + protected AbstractModification(short version) { + this.version = version; + } protected AbstractModification(YangInstanceIdentifier path) { this.path = path; } + protected void setPath(YangInstanceIdentifier path) { + this.path = path; + } + public YangInstanceIdentifier getPath() { return path; } + + public short getVersion() { + return version; + } }