* org.onap.dmaap
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ *
+ * Modifications Copyright (C) 2019 IBM.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
import java.sql.*;
import java.util.*;
+import org.onap.dmaap.dbcapi.model.*;
+
import com.att.eelf.configuration.EELFLogger;
import com.att.eelf.configuration.EELFManager;
try {
objget = c.getMethod("is" + camelcase);
} catch (Exception e) {
- errorLogger.error("Error", e);
+ errorLogger.warn("No 'is' method for " + c.getName() + " so trying 'get' method");
objget = c.getMethod("get" + camelcase);
}
objset = c.getMethod("set" + camelcase, objget.getReturnType());
ps.setString(index, null);
return;
}
- StringBuffer sb = new StringBuffer();
+ StringBuilder sb = new StringBuilder();
String sep = "";
for (String s: val) {
sb.append(sep).append(fesc(s));