code: protected boolean isEnclosedBySingleQuot(String sql, String val) {
  		int valLength = val.length();
  		boolean enclosed = false;
  		for (int i = 0; i < sql.length(); i++) {
  			char c = sql.charAt(i);
  			if (c == '\'') {
  				enclosed = !enclosed;
  			}
  			if (enclosed == true) {
  				continue;
  			}
  			if (val.equals(sql.substring(i, i + valLength)) == true) {
  				return false;
  			}
  		}
  		if (enclosed == true) {
  			throw new IllegalArgumentException(Message.getMessage("00011"));
  		}
  		return true;
  	}
docs: "'val'"や"'foo val bar'"ならtrue<br>
  "'' val"や、"val 'val'"はfalse