static A nuLike findConceptWhereCI(Class c, O... params) { ret findConceptWhereCI(db_mainConcepts(), c, params); } static A findConceptWhereCI(Concepts concepts, Class c, O... params) { params = expandParams(c, params); // indexed if (concepts.ciFieldIndices != null) for (int i = 0; i < l(params); i += 2) { IFieldIndex index = concepts.getCIFieldIndex(c, (S) params[i]); if (index != null) { for (A x : index.getAll(params[i+1])) if (checkConceptFieldsIC(x, params)) ret x; null; } } // table scan for (A x : concepts.list(c)) if (checkConceptFieldsIC(x, params)) ret x; null; } static Concept findConceptWhereCI(Concepts concepts, S c, O... params) { for (Concept x : concepts.list(c)) if (checkConceptFieldsIC(x, params)) ret x; null; }