@Test public void testCanonicalizeBlanks() throws Exception { List<String> testBatch = ImmutableList.of("", " ", " ;; ; "); testBatch.forEach(sql -> assertEquals("", SQLString.canonicalizeString(sql))); }
public static String canonicalizeString(String sql) { return canonicalizeString(sql, false); }
SQLString extends BasicSQLString { public static String canonicalizeString(String sql) { return canonicalizeString(sql, false); } }
SQLString extends BasicSQLString { public static String canonicalizeString(String sql) { return canonicalizeString(sql, false); } private  SQLString(String sql); protected  SQLString(String key, String sql, DBType dbType); }
SQLString extends BasicSQLString { public static String canonicalizeString(String sql) { return canonicalizeString(sql, false); } private  SQLString(String sql); protected  SQLString(String key, String sql, DBType dbType); static RegisteredSQLString registerQuery(String key, String sql); static void registerQuery(String key, String sql, DBType... dbTypes); static RegisteredSQLString registerQuery(String key, String sql, DBType dbType); static boolean isQueryRegistered(String key); static boolean isValidKey(final String key); static String canonicalizeString(String sql); static void registerQueryVariants(String baseKey,
                                             Map<Set<String>, String> map, String sqlFormat,
                                             DBType type, List<SqlClause> clauses); static RegisteredSQLString getRegisteredQueryByKey(FinalSQLString key); }
SQLString extends BasicSQLString { public static String canonicalizeString(String sql) { return canonicalizeString(sql, false); } private  SQLString(String sql); protected  SQLString(String key, String sql, DBType dbType); static RegisteredSQLString registerQuery(String key, String sql); static void registerQuery(String key, String sql, DBType... dbTypes); static RegisteredSQLString registerQuery(String key, String sql, DBType dbType); static boolean isQueryRegistered(String key); static boolean isValidKey(final String key); static String canonicalizeString(String sql); static void registerQueryVariants(String baseKey,
                                             Map<Set<String>, String> map, String sqlFormat,
                                             DBType type, List<SqlClause> clauses); static RegisteredSQLString getRegisteredQueryByKey(FinalSQLString key);  }