@Test void inSelectClauseSql() { Alias<WidgetRow> sut = Alias.of(widgetTable, "fred"); String result = sut.inSelectClauseSql("WIDGET_ID"); assertThat(result, is("fred.WIDGET_ID")); }
public String inSelectClauseSql(String columnName) { return String.format("%s.%s", aliasName.orElseGet(table::qualifiedName), columnName); }
Alias { public String inSelectClauseSql(String columnName) { return String.format("%s.%s", aliasName.orElseGet(table::qualifiedName), columnName); } }
Alias { public String inSelectClauseSql(String columnName) { return String.format("%s.%s", aliasName.orElseGet(table::qualifiedName), columnName); } protected  Alias(Table<R> table, Optional<String> aliasName); }
Alias { public String inSelectClauseSql(String columnName) { return String.format("%s.%s", aliasName.orElseGet(table::qualifiedName), columnName); } protected  Alias(Table<R> table, Optional<String> aliasName); @Override boolean equals(Object o); @Override int hashCode(); TypeToken<R> type(); String inWhereClause(); String inSelectClauseSql(String columnName); String inSelectClauseLabel(String columnName); ExpressionBuilder<T,BooleanExpression> column(Function1<R,T> getter); ExpressionBuilder<T,BooleanExpression> column(FunctionOptional1<R,T> getter); Table<R> table(); Optional<String> aliasName(); Column<T,R> column(MethodInfo<R,T> methodInfo); RowMapper<R> rowMapper(); DynamicRowMapper<R> dynamicRowMapper(); static Alias<U> of(Table<U> table); static Alias<U> of(Table<U> table, String aliasName); }
Alias { public String inSelectClauseSql(String columnName) { return String.format("%s.%s", aliasName.orElseGet(table::qualifiedName), columnName); } protected  Alias(Table<R> table, Optional<String> aliasName); @Override boolean equals(Object o); @Override int hashCode(); TypeToken<R> type(); String inWhereClause(); String inSelectClauseSql(String columnName); String inSelectClauseLabel(String columnName); ExpressionBuilder<T,BooleanExpression> column(Function1<R,T> getter); ExpressionBuilder<T,BooleanExpression> column(FunctionOptional1<R,T> getter); Table<R> table(); Optional<String> aliasName(); Column<T,R> column(MethodInfo<R,T> methodInfo); RowMapper<R> rowMapper(); DynamicRowMapper<R> dynamicRowMapper(); static Alias<U> of(Table<U> table); static Alias<U> of(Table<U> table, String aliasName);  }