@Test public void testCheckAndReplace() { KeywordChecker keywordChecker = KeywordCheckerFactory.getKeywordChecker(JdbcConstants.MYSQL); Assertions.assertEquals("`desc`", keywordChecker.checkAndReplace("desc")); }
@Override public String checkAndReplace(String fieldOrTableName) { return check(fieldOrTableName) ? "`" + fieldOrTableName + "`" : fieldOrTableName; }
MySQLKeywordChecker implements KeywordChecker { @Override public String checkAndReplace(String fieldOrTableName) { return check(fieldOrTableName) ? "`" + fieldOrTableName + "`" : fieldOrTableName; } }
MySQLKeywordChecker implements KeywordChecker { @Override public String checkAndReplace(String fieldOrTableName) { return check(fieldOrTableName) ? "`" + fieldOrTableName + "`" : fieldOrTableName; } private  MySQLKeywordChecker(); }
MySQLKeywordChecker implements KeywordChecker { @Override public String checkAndReplace(String fieldOrTableName) { return check(fieldOrTableName) ? "`" + fieldOrTableName + "`" : fieldOrTableName; } private  MySQLKeywordChecker(); static KeywordChecker getInstance(); @Override boolean check(String fieldOrTableName); @Override String checkAndReplace(String fieldOrTableName); }
MySQLKeywordChecker implements KeywordChecker { @Override public String checkAndReplace(String fieldOrTableName) { return check(fieldOrTableName) ? "`" + fieldOrTableName + "`" : fieldOrTableName; } private  MySQLKeywordChecker(); static KeywordChecker getInstance(); @Override boolean check(String fieldOrTableName); @Override String checkAndReplace(String fieldOrTableName);  }