/** * @param identifier * identifier to check * @return is specified identifier may be used without quotes */ @Override public boolean isSimpleIdentifier(String identifier) throws SQLException { return ParserUtil.isSimpleIdentifier(identifier, true); }
/** * Add double quotes around an identifier if required. * * @param s the identifier * @return the quoted identifier */ public static String quoteIdentifier(String s) { if (s == null) { return "\"\""; } if (ParserUtil.isSimpleIdentifier(s, false)) { return s; } return StringUtils.quoteIdentifier(s); }