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

Method getCachedSchemas

jOOQ/src/main/java/org/jooq/impl/AbstractMeta.java:291–306  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

289 }
290
291 private final Cached<Schema> getCachedSchemas() {
292 Cached<Schema> s = cachedSchemas;
293
294 if (s == null) {
295 s = new Cached<>(configuration());
296 s.init(schemaFilter != null
297 ? () -> Tools.filter(getSchemas0().iterator(), schemaFilter)
298 : () -> getSchemas0().iterator()
299 );
300 }
301
302 if (caching())
303 cachedSchemas = s;
304
305 return s;
306 }
307
308 List<Schema> getSchemas0() {
309 return flatMap(getCatalogs(), c -> c.getSchemas());

Callers 1

getSchemasMethod · 0.95

Calls 6

filterMethod · 0.95
getSchemas0Method · 0.95
cachingMethod · 0.95
configurationMethod · 0.65
iteratorMethod · 0.65
initMethod · 0.45

Tested by

no test coverage detected