/ Published in: Java
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/** * Replace the wildcard-character with defined charater for SQL queries * * @param var * value to be checked and replaced with proper wildcard * * @return formatted String */ if (var.indexOf(WILDCARD) != -1) { var = org.springframework.util.StringUtils.replace(var, WILDCARD, ORWILDCARD); return var.toUpperCase(); } else { return var.toUpperCase(); } }