Register fields for this table alias
()
| 102 | * Register fields for this table alias |
| 103 | */ |
| 104 | @SuppressWarnings({ "rawtypes", "unchecked" }) |
| 105 | private final FieldsImpl<R> initFieldAliases() { |
| 106 | |
| 107 | // [#13418] |
| 108 | List<Field<?>> result = Tools.map(this.alias.wrapped().fieldsRow().fields(), (f, i) -> new TableFieldImpl( |
| 109 | alias.hasFieldAliases() && alias.fieldAliases.length > i |
| 110 | ? alias.fieldAliases[i] |
| 111 | : f.getUnqualifiedName(), removeGenerator(CONFIG.get(), f.getDataType()), this, f.getCommentPart(), f.getBinding() |
| 112 | )); |
| 113 | |
| 114 | return new FieldsImpl<>(result); |
| 115 | } |
| 116 | |
| 117 | /** |
| 118 | * Get the aliased table wrapped by this table. |
no test coverage detected