MCPcopy Create free account
hub / github.com/jOOQ/jOOQ / initFieldAliases

Method initFieldAliases

jOOQ/src/main/java/org/jooq/impl/TableAlias.java:104–115  ·  view source on GitHub ↗

Register fields for this table alias

()

Source from the content-addressed store, hash-verified

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.

Callers 1

fields0Method · 0.95

Calls 11

mapMethod · 0.95
hasFieldAliasesMethod · 0.80
removeGeneratorMethod · 0.80
fieldsMethod · 0.65
fieldsRowMethod · 0.65
getUnqualifiedNameMethod · 0.65
getMethod · 0.65
getDataTypeMethod · 0.65
getCommentPartMethod · 0.65
getBindingMethod · 0.65
wrappedMethod · 0.45

Tested by

no test coverage detected