X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-xsql%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fdom%2Fxsql%2Fjdbc%2FJDBCCommand.java;h=20b8589bbad569d5de7b28f908d1b228408e2111;hb=bd1cb1ea115b99847a2d305a6df8336cd3988cf3;hp=019711157cc30db5bb7a2e43a6d4f5b2725858f2;hpb=b06d2c5bbffa48b1e219ac92cf0be60528aff34a;p=controller.git diff --git a/opendaylight/md-sal/sal-dom-xsql/src/main/java/org/opendaylight/controller/md/sal/dom/xsql/jdbc/JDBCCommand.java b/opendaylight/md-sal/sal-dom-xsql/src/main/java/org/opendaylight/controller/md/sal/dom/xsql/jdbc/JDBCCommand.java index 019711157c..20b8589bba 100644 --- a/opendaylight/md-sal/sal-dom-xsql/src/main/java/org/opendaylight/controller/md/sal/dom/xsql/jdbc/JDBCCommand.java +++ b/opendaylight/md-sal/sal-dom-xsql/src/main/java/org/opendaylight/controller/md/sal/dom/xsql/jdbc/JDBCCommand.java @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2014, 2015 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, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ + package org.opendaylight.controller.md.sal.dom.xsql.jdbc; import java.io.Serializable; @@ -5,7 +13,13 @@ import java.util.Map; import org.opendaylight.controller.md.sal.dom.xsql.XSQLBluePrint; +/** + * To be removed in Nitrogen + */ +@Deprecated public class JDBCCommand implements Serializable { + private static final long serialVersionUID = 1L; + public int type = 0; public static final int TYPE_EXECUTE_QUERY = 1; public static final int TYPE_QUERY_REPLY = 2; @@ -16,7 +30,7 @@ public class JDBCCommand implements Serializable { public static final int TYPE_METADATA_REPLY = 7; private JDBCResultSet rs = null; - private Map record = null; + private Map record = null; private int rsID = -1; private Exception err = null; private XSQLBluePrint bluePrint = null; @@ -47,7 +61,7 @@ public class JDBCCommand implements Serializable { this.rsID = rs.getID(); } - public JDBCCommand(Map _record, int _rsID) { + public JDBCCommand(Map _record, int _rsID) { this.record = _record; this.rsID = _rsID; this.type = TYPE_QUERY_RECORD; @@ -66,7 +80,7 @@ public class JDBCCommand implements Serializable { return this.rs; } - public Map getRecord() { + public Map getRecord() { return this.record; }