+/*
+ * 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;
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;
public static final int TYPE_METADATA_REPLY = 7;
private JDBCResultSet rs = null;
- private Map record = null;
+ private Map<String, Object> record = null;
private int rsID = -1;
private Exception err = null;
private XSQLBluePrint bluePrint = null;
this.rsID = rs.getID();
}
- public JDBCCommand(Map _record, int _rsID) {
+ public JDBCCommand(Map<String, Object> _record, int _rsID) {
this.record = _record;
this.rsID = _rsID;
this.type = TYPE_QUERY_RECORD;
return this.rs;
}
- public Map getRecord() {
+ public Map<String, Object> getRecord() {
return this.record;
}