SQLUtil { public static String getExactlyValue(final String value) { return null == value ? null : CharMatcher.anyOf("[]`'\"").removeFrom(value); }  static Number getExactlyNumber(final String value, final int radix); static String getExactlyValue(final String value); static String getExactlyExpression(final String value); static String getExpressionWithoutOutsideParentheses(final String value); static List<SubqueryTableSegment> getSubqueryTableSegmentFromTableSegment(final TableSegment tableSegment); static boolean isReadOnly(final SQLStatement sqlStatement);  }
@Test public void assertGetExactlyValue() { assertThat(SQLUtil.getExactlyValue("`xxx`"), is("xxx")); assertThat(SQLUtil.getExactlyValue("[xxx]"), is("xxx")); assertThat(SQLUtil.getExactlyValue("\"xxx\""), is("xxx")); assertThat(SQLUtil.getExactlyValue("'xxx'"), is("xxx")); }
@Test public void assertGetExactlyValueUsingNull() { assertNull(SQLUtil.getExactlyValue(null)); }