NativeSqlCondition { public final String asWhereConditionWithParam() { if (table == null) { return column + operator + ":" + column; } return table + "." + column + operator + ":" + column; } NativeSqlCondition(final String column, final String operator, final Object value);  NativeSqlCondition(final String table, final String column, final String operator,
            final Object value); final String getTable(); final String getColumn(); final String getOperator(); final Object getValue(); final String asWhereConditionWithParam(); @Override final String toString();  }
@Test public void testAsWhereConditionWithParam() { final NativeSqlCondition testee1 = new NativeSqlCondition("a", "=", 4711L); final NativeSqlCondition testee2 = new NativeSqlCondition("t", "a", "=", 4711L); final String whereSql1 = testee1.asWhereConditionWithParam(); final String whereSql2 = testee2.asWhereConditionWithParam(); assertThat(whereSql1).isEqualTo("a=:a"); assertThat(whereSql2).isEqualTo("t.a=:a"); }