@Test void type() { CastBuilder<String> builder = new CastBuilder<>(expression); TypedExpression<LocalDate> sut = builder.asDate(); TypeToken<LocalDate> result = sut.type(); assertThat(result, is(TypeToken.of(LocalDate.class))); verifyNoMoreInteractions(expression, scope, dialect, database, resultSet); }
@Override public TypeToken<T> type() { return TypeToken.of(to.javaClass()); }
CastExpression implements TypedExpression<T> { @Override public TypeToken<T> type() { return TypeToken.of(to.javaClass()); } }
CastExpression implements TypedExpression<T> { @Override public TypeToken<T> type() { return TypeToken.of(to.javaClass()); } CastExpression(TypedExpression<F> from, DataType<T> to, DbTypeId<T> toType, BiFunction<DbType<T>,Database,String> toSql); }
CastExpression implements TypedExpression<T> { @Override public TypeToken<T> type() { return TypeToken.of(to.javaClass()); } 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 TypeToken<T> type() { return TypeToken.of(to.javaClass()); } 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();  }