+/*
+ * 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.net.ServerSocket;
import org.opendaylight.controller.md.sal.dom.xsql.XSQLColumn;
import org.opendaylight.controller.md.sal.dom.xsql.XSQLCriteria;
+/**
+ * To be removed in Nitrogen
+ */
+@Deprecated
public class JDBCServer extends Thread {
private ServerSocket socket = null;
private XSQLAdapter adapter = null;
return;
}
- Map<String, XSQLBluePrintNode> logicalNameToNode = new HashMap<String, XSQLBluePrintNode>();
- Map<String, String> origNameToName = new HashMap<String, String>();
+ Map<String, XSQLBluePrintNode> logicalNameToNode = new HashMap<>();
+ Map<String, String> origNameToName = new HashMap<>();
List<XSQLColumn> columnOrder = new ArrayList<>();
int nextLogField = addNextLogicalField(sql, 0,
logicalNameToNode, origNameToName,columnOrder);
Map<XSQLColumn, List<XSQLCriteria>> tblCriteria = rs.getCriteria().get(
col.getTableName());
if (tblCriteria == null) {
- tblCriteria = new ConcurrentHashMap<XSQLColumn, List<XSQLCriteria>>();
+ tblCriteria = new ConcurrentHashMap<>();
rs.getCriteria().put(col.getTableName(), tblCriteria);
}
List<XSQLCriteria> lstCriteria = tblCriteria.get(col);
if (lstCriteria == null) {
- lstCriteria = new ArrayList<XSQLCriteria>();
+ lstCriteria = new ArrayList<>();
tblCriteria.put(col, lstCriteria);
}
lstCriteria.add(c);