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

Method accept

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

Source from the content-addressed store, hash-verified

147
148
149 @Override
150 public final void accept(Context<?> ctx) {
151 int max = Tools.maxParameterCount(ctx);
152
153 // [#19335] Work around PostgreSQL's 100 function arguments limit
154 if (entries.size() > max / 2) {
155 List<QOM.JSONObject<T>> r = new ArrayList<>();
156
157 for (List<? extends JSONEntry<?>> chunk : chunks(entries, max / 2))
158 r.add($arg2(QOM.unmodifiable(chunk)));
159
160 if (getDataType().getFromType() == JSON.class)
161 ctx.visit(new JSONConcat<>(r, getDataType()).cast(JSON));
162 else
163 ctx.visit(new JSONConcat<>(r, getDataType()));
164 }
165 else
166 accept0(ctx);
167 }
168
169 final void accept0(Context<?> ctx) {
170 switch (ctx.family()) {

Callers

nothing calls this directly

Calls 11

maxParameterCountMethod · 0.95
$arg2Method · 0.95
unmodifiableMethod · 0.95
accept0Method · 0.95
chunksMethod · 0.80
sizeMethod · 0.65
addMethod · 0.65
getFromTypeMethod · 0.65
getDataTypeMethod · 0.65
visitMethod · 0.65
castMethod · 0.65

Tested by

no test coverage detected