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

Method indexOrFail

jOOQ/src/main/java/org/jooq/impl/Tools.java:2345–2352  ·  view source on GitHub ↗
(Fields row, Field<?> field)

Source from the content-addressed store, hash-verified

2343 }
2344
2345 static final int indexOrFail(Fields row, Field<?> field) {
2346 int result = row.indexOf(field);
2347
2348 if (result < 0)
2349 throw indexFail(row, field);
2350
2351 return result;
2352 }
2353
2354 static final IllegalArgumentException indexFail(Fields row, String fieldName) {
2355 return indexFail(row, DSL.name(fieldName));

Callers 15

copyValueMethod · 0.95
mapperMethod · 0.45
typeMethod · 0.45
dataTypeMethod · 0.45
indexesOfMethod · 0.45
intoArrayMethod · 0.45
sortAscMethod · 0.45
getReturningIfNeededMethod · 0.45
getMethod · 0.45
setMethod · 0.45
setValuesMethod · 0.45

Calls 3

indexFailMethod · 0.95
indexOfMethod · 0.65
fieldMethod · 0.65

Tested by

no test coverage detected