MCPcopy
hub / github.com/jOOQ/jOOQ / componentDataType

Method componentDataType

jOOQ/src/main/java/org/jooq/impl/Tools.java:8105–8112  ·  view source on GitHub ↗
(Object[] array)

Source from the content-addressed store, hash-verified

8103 }
8104
8105 @SuppressWarnings("removal")
8106 static final DataType<?> componentDataType(Object[] array) {
8107 if (!isEmpty(array) && array[0] instanceof Field<?> f) {
8108 return f.getDataType();
8109 }
8110 else
8111 return DSL.getDataType(array.getClass().getComponentType());
8112 }
8113
8114 static final Object[] mostSpecificArray(Object[] array) {
8115 if (isEmpty(array))

Callers 1

ArrayTableEmulationMethod · 0.80

Calls 3

isEmptyMethod · 0.95
getDataTypeMethod · 0.95
getDataTypeMethod · 0.65

Tested by

no test coverage detected