Object value = entry.getValue(); if (key != null && value != null) { template.setTemplate(key.toString(), value.toString());
@Override public SQLTemplate buildQuery() { SQLTemplate template = new SQLTemplate(); if (root != null) { template.setRoot(root); } template.setName(name); template.setDataMap(dataMap); template.initWithProperties(this.getProperties()); // init SQL template.setDefaultTemplate(this.getSql()); Map<String, String> adapterSql = this.getAdapterSql(); if (adapterSql != null) { for (Map.Entry<String, String> entry : adapterSql.entrySet()) { String key = entry.getKey(); String value = entry.getValue(); if (key != null && value != null) { template.setTemplate(key, value); } } } return template; }