MCPcopy Index your code
hub / github.com/jOOQ/jOOQ / accept

Method accept

jOOQ/src/main/java/org/jooq/impl/SelectIsNotNull.java:77–101  ·  view source on GitHub ↗
(Context<?> ctx)

Source from the content-addressed store, hash-verified

75 }
76
77 @Override
78 public final void accept(Context<?> ctx) {
79
80
81
82
83
84
85 if (SelectIsNull.EMULATE_NULL_QUERY.contains(ctx.dialect())) {
86
87 // [#11011] Avoid the RVE IS NULL emulation for queries of degree 1
88 // [#16319] Flatten embeddables to find collection size
89 List<Field<?>> f = collect(flattenCollection(select.getSelect()));
90 if (f.size() == 1) {
91 acceptStandard(ctx);
92 }
93 else {
94 Name[] n = fieldNames(f.size());
95 Table<?> t = new AliasedSelect<>(select, true, true, false, n).as("t");
96 ctx.visit(inline(1).eq(selectCount().from(t).where(allNotNull(fieldsByName(n)))));
97 }
98 }
99 else
100 acceptStandard(ctx);
101 }
102
103 private final void acceptStandard(Context<?> ctx) {
104 visitSubquery(ctx, select, PREDICAND);

Callers

nothing calls this directly

Calls 15

acceptStandardMethod · 0.95
flattenCollectionMethod · 0.80
fieldNamesMethod · 0.80
inlineMethod · 0.80
allNotNullMethod · 0.80
fieldsByNameMethod · 0.80
containsMethod · 0.65
dialectMethod · 0.65
collectMethod · 0.65
getSelectMethod · 0.65
sizeMethod · 0.65
asMethod · 0.65

Tested by

no test coverage detected