@Test public void testCheck() { KeywordChecker keywordChecker = KeywordCheckerFactory.getKeywordChecker(JdbcConstants.MYSQL); Assertions.assertTrue(keywordChecker.check("desc")); }
@Override public boolean check(String fieldOrTableName) { if (keywordSet.contains(fieldOrTableName)) { return true; } if (null != fieldOrTableName) { fieldOrTableName = fieldOrTableName.toUpperCase(); } return keywordSet.contains(fieldOrTableName); }
MySQLKeywordChecker implements KeywordChecker { @Override public boolean check(String fieldOrTableName) { if (keywordSet.contains(fieldOrTableName)) { return true; } if (null != fieldOrTableName) { fieldOrTableName = fieldOrTableName.toUpperCase(); } return keywordSet.contains(fieldOrTableName); } }
MySQLKeywordChecker implements KeywordChecker { @Override public boolean check(String fieldOrTableName) { if (keywordSet.contains(fieldOrTableName)) { return true; } if (null != fieldOrTableName) { fieldOrTableName = fieldOrTableName.toUpperCase(); } return keywordSet.contains(fieldOrTableName); } private  MySQLKeywordChecker(); }
MySQLKeywordChecker implements KeywordChecker { @Override public boolean check(String fieldOrTableName) { if (keywordSet.contains(fieldOrTableName)) { return true; } if (null != fieldOrTableName) { fieldOrTableName = fieldOrTableName.toUpperCase(); } return keywordSet.contains(fieldOrTableName); } private  MySQLKeywordChecker(); static KeywordChecker getInstance(); @Override boolean check(String fieldOrTableName); @Override String checkAndReplace(String fieldOrTableName); }
MySQLKeywordChecker implements KeywordChecker { @Override public boolean check(String fieldOrTableName) { if (keywordSet.contains(fieldOrTableName)) { return true; } if (null != fieldOrTableName) { fieldOrTableName = fieldOrTableName.toUpperCase(); } return keywordSet.contains(fieldOrTableName); } private  MySQLKeywordChecker(); static KeywordChecker getInstance(); @Override boolean check(String fieldOrTableName); @Override String checkAndReplace(String fieldOrTableName);  }