|
|
|
@ -52,9 +52,8 @@ class FilterHelper { |
|
|
|
companion object { |
|
|
|
companion object { |
|
|
|
|
|
|
|
|
|
|
|
inline fun <reified T : Filterable> fieldNameForQueryType(queryType: QueryType): String? { |
|
|
|
inline fun <reified T : Filterable> fieldNameForQueryType(queryType: QueryType): String? { |
|
|
|
val clazz = T::class.java |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return when (clazz) { |
|
|
|
return when (T::class.java) { |
|
|
|
Session::class.java -> Session.fieldNameForQueryType(queryType) |
|
|
|
Session::class.java -> Session.fieldNameForQueryType(queryType) |
|
|
|
ComputableResult::class.java -> ComputableResult.fieldNameForQueryType(queryType) |
|
|
|
ComputableResult::class.java -> ComputableResult.fieldNameForQueryType(queryType) |
|
|
|
SessionSet::class.java -> SessionSet.fieldNameForQueryType(queryType) |
|
|
|
SessionSet::class.java -> SessionSet.fieldNameForQueryType(queryType) |
|
|
|
@ -62,6 +61,7 @@ class FilterHelper { |
|
|
|
throw UnmanagedFilterField("Filterable type fields are not defined for class ${T::class}") |
|
|
|
throw UnmanagedFilterField("Filterable type fields are not defined for class ${T::class}") |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|