Home
last modified time | relevance | path

Searched refs:QueryType (Results 1 – 6 of 6) sorted by relevance

/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/parser/
DSqlParser.kt38 val queryType: QueryType
43 }.filterNot { it == QueryType.UNKNOWN }.firstOrNull() ?: QueryType.UNKNOWN in <lambda>()
48 private fun findQueryType(statement: ParseTree): QueryType { in findQueryType()
54 QueryType.SELECT in findQueryType()
58 QueryType.DELETE in findQueryType()
61 QueryType.INSERT in findQueryType()
64 QueryType.UPDATE in findQueryType()
66 "EXPLAIN" -> QueryType.EXPLAIN in findQueryType()
67 else -> QueryType.UNKNOWN in findQueryType()
69 else -> QueryType.UNKNOWN in findQueryType()
[all …]
DParserErrors.kt25 fun invalidQueryType(type: QueryType): String { in invalidQueryType()
27 QueryType.SUPPORTED.joinToString(", ") { it.name } in invalidQueryType()
DParsedQuery.kt41 data class ParsedQuery(val original: String, val type: QueryType, in text()
48 val MISSING = ParsedQuery("missing query", QueryType.UNKNOWN, emptyList(), emptySet(), in text()
99 return if (QueryType.SUPPORTED.contains(type)) { in text()
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/processor/
DQueryMethodProcessor.kt23 import android.arch.persistence.room.parser.QueryType in <lambda>()
78 if (query.type == QueryType.DELETE) { in <lambda>()
87 context.checker.check(resultBinder.adapter != null || query.type != QueryType.SELECT, in <lambda>()
90 context.checker.check(query.type == QueryType.SELECT, executableElement, in <lambda>()
/frameworks/support/room/compiler/src/test/kotlin/android/arch/persistence/room/parser/
DSqlParserTest.kt43 assertThat(parsed.type, `is`(QueryType.DELETE)) in deleteQuery()
56 assertThat(parsed.type, `is`(QueryType.UPDATE)) in updateQuery()
62 ParserErrors.invalidQueryType(QueryType.EXPLAIN)) in explain()
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/writer/
DDaoWriter.kt25 import android.arch.persistence.room.parser.QueryType in <lambda>()
81 .filter { it.query.type == QueryType.DELETE || it.query.type == QueryType.UPDATE } in <lambda>()
108 dao.queryMethods.filter { it.query.type == QueryType.SELECT }.forEach { method -> in <lambda>()