@Test void precedence() { CastBuilder<String> builder = new CastBuilder<>(expression); TypedExpression<String> sut = builder.asVarchar(20); Precedence result = sut.precedence(); assertThat(result, is(Precedence.UNARY)); verifyNoMoreInteractions(expression, scope, dialect, database, resultSet); }
@Override public Precedence precedence() { return Precedence.UNARY; }
CastExpression implements TypedExpression<T> { @Override public Precedence precedence() { return Precedence.UNARY; } }
CastExpression implements TypedExpression<T> { @Override public Precedence precedence() { return Precedence.UNARY; } CastExpression(TypedExpression<F> from, DataType<T> to, DbTypeId<T> toType, BiFunction<DbType<T>,Database,String> toSql); }
CastExpression implements TypedExpression<T> { @Override public Precedence precedence() { return Precedence.UNARY; } CastExpression(TypedExpression<F> from, DataType<T> to, DbTypeId<T> toType, BiFunction<DbType<T>,Database,String> toSql); @Override String label(Scope scope); @Override RowMapper<T> rowMapper(Scope scope, Optional<String> label); @Override TypeToken<T> type(); @Override String sql(Scope scope); @Override Stream<Object> args(Scope scope); @Override Precedence precedence(); @Override String toString(); }
CastExpression implements TypedExpression<T> { @Override public Precedence precedence() { return Precedence.UNARY; } CastExpression(TypedExpression<F> from, DataType<T> to, DbTypeId<T> toType, BiFunction<DbType<T>,Database,String> toSql); @Override String label(Scope scope); @Override RowMapper<T> rowMapper(Scope scope, Optional<String> label); @Override TypeToken<T> type(); @Override String sql(Scope scope); @Override Stream<Object> args(Scope scope); @Override Precedence precedence(); @Override String toString();  }