in entity-browser-app/src/main/kotlin/jetbrains/xodus/browser/web/search/UITypes.kt [15:37]
fun find(tr: StoreTransaction, type: String, property: String, value: String): EntityIterable {
try {
if (!uiType.isValid(value)) {
return EntityIterableBase.EMPTY
}
val realValue = uiType.toValue(value)
logger.debug { "searching property '$property' by type '${realValue?.javaClass?.name}' and value '$realValue' " }
return if (realValue != null) {
var result = tr.find(type, property, realValue)
logger.debug { "found: ${result.size()} results" }
if (low != null) {
logger.debug { "searching children of " + low.uiType.clazz }
result = result.union(low.find(tr, type, property, value))
}
result
} else {
EntityIterableBase.EMPTY
}
} catch (e: Exception) {
//ignore
return EntityIterableBase.EMPTY
}
}