Searched refs:columnName (Results 1 - 25 of 40) sorted by relevance

12

/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/vo/
H A DRelation.kt39 pojo.fields.map { it.columnName }
41 val entityFieldInResponse = pojo.fields.any { it.columnName == entityField.columnName }
43 resultFields += entityField.columnName
51 " WHERE ${entityField.columnName} IN (:args)"
H A DIndex.kt35 ON `$tableName` (${fields.map { it.columnName }.joinToString(", ") { "`$it`"}})
39 val columnNames by lazy { fields.map {it.columnName} }
41 fun toBundle(): IndexBundle = IndexBundle(name, unique, fields.map { it.columnName },
H A DPrimaryKey.kt30 val columnNames by lazy { fields.map {it.columnName} }
38 autoGenerateId, fields.map { it.columnName })
H A DForeignKey.kt31 return "FOREIGN KEY(${joinEscaped(childFields.map { it.columnName })})" +
50 childFields.map { it.columnName },
H A DField.kt33 val columnName: String = name,
125 return "`$columnName` ${(affinity ?: SQLTypeAffinity.TEXT).name}$columnSpec"
128 fun toBundle(): FieldBundle = FieldBundle(pathWithDotNotation, columnName,
/frameworks/support/room/compiler/src/test/kotlin/android/arch/persistence/room/vo/
H A DIndexTest.kt45 private fun mockField(columnName : String): Field {
49 name = columnName + "_field",
52 columnName = columnName
/frameworks/support/room/migration/src/main/java/android/arch/persistence/room/migration/bundle/
H A DFieldBundle.java33 @SerializedName("columnName")
40 public FieldBundle(String fieldPath, String columnName, String affinity, boolean nonNull) { argument
42 mColumnName = columnName;
/frameworks/base/core/java/android/database/
H A DAbstractCursor.java305 public int getColumnIndex(String columnName) { argument
307 final int periodIndex = columnName.lastIndexOf('.');
310 Log.e(TAG, "requesting column name with table name -- " + columnName, e);
311 columnName = columnName.substring(periodIndex + 1);
317 if (columnNames[i].equalsIgnoreCase(columnName)) {
324 Log.w("AbstractCursor", "Unknown column " + columnName);
331 public int getColumnIndexOrThrow(String columnName) { argument
332 final int index = getColumnIndex(columnName);
340 throw new IllegalArgumentException("column '" + columnName
[all...]
H A DCursor.java175 * @param columnName the name of the target column.
180 int getColumnIndex(String columnName); argument
188 * @param columnName the name of the target column.
193 int getColumnIndexOrThrow(String columnName) throws IllegalArgumentException; argument
H A DCursorWrapper.java80 public int getColumnIndex(String columnName) { argument
81 return mCursor.getColumnIndex(columnName);
85 public int getColumnIndexOrThrow(String columnName) argument
87 return mCursor.getColumnIndexOrThrow(columnName);
H A DMatrixCursor.java230 public RowBuilder add(String columnName, Object value) { argument
232 if (columnName.equals(columnNames[i])) {
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteCursor.java164 public int getColumnIndex(String columnName) { argument
177 final int periodIndex = columnName.lastIndexOf('.');
180 Log.e(TAG, "requesting column name with table name -- " + columnName, e);
181 columnName = columnName.substring(periodIndex + 1);
184 Integer i = mColumnNameMap.get(columnName);
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/processor/
H A DFieldProcessor.kt44 val columnName: String
53 columnName = fieldPrefix + if (nameInAnnotation == ColumnInfo.INHERIT_FIELD_NAME) {
76 columnName = fieldPrefix + name
81 context.checker.notBlank(columnName, element,
89 columnName = columnName,
H A DEntityProcessor.kt99 it.columnName, element.toString(),
105 name = createIndexName(listOf(it.columnName), tableName),
107 columnNames = listOf(it.columnName)
144 fields[it.index].columnName == it.value
148 val columnNames = fKey.childFields.map { it.columnName }
206 val fields = it.childColumns.map { columnName ->
207 val field = pojo.fields.find { it.columnName == columnName }
210 ProcessorErrors.foreignKeyChildColumnDoesNotExist(columnName,
211 pojo.fields.map { it.columnName }))
[all...]
H A DProcessorErrors.kt80 fun primaryKeyColumnDoesNotExist(columnName: String, allColumns: List<String>): String {
81 return "$columnName referenced in the primary key does not exists in the Entity." +
215 [${unusedFields.joinToString(", ") { it.columnName }}] which are not returned by the
228 Fields in $pojoTypeName: ${allFields.joinToString(", ") { it.columnName }}.
249 fun pojoDuplicateFieldNames(columnName: String, fieldPaths: List<String>): String {
250 return "Multiple fields have the same columnName: $columnName." +
261 fun indexColumnDoesNotExist(columnName: String, allColumns: List<String>): String {
262 return "$columnName referenced in the index does not exists in the Entity." +
306 fun relationCannotFindEntityField(entityName : String, columnName
[all...]
H A DPojoProcessor.kt134 fields.groupBy { it.columnName }
308 it.columnName == parentColumnInput
314 columnName = parentColumnInput,
315 availableColumns = myFields.map { it.columnName }))
355 it.columnName == entityColumnInput
362 columnName = entityColumnInput,
363 availableColumns = entity.fields.map { it.columnName }))
377 val missingColumns = projection.filterNot { columnName ->
378 entity.fields.any { columnName == it.columnName }
[all...]
H A DDatabaseProcessor.kt120 val parentFields = foreignKey.parentColumns.map { columnName ->
122 it.columnName == columnName
128 missingColumn = columnName,
129 allColumns = parent.fields.map { it.columnName }))
144 .map { it.columnName }))
/frameworks/base/test-runner/src/android/test/mock/
H A DMockCursor.java47 public int getColumnIndex(String columnName) { argument
52 public int getColumnIndexOrThrow(String columnName) { argument
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/writer/
H A DTableInfoValidationWriter.kt49 columnListVar, field.columnName, RoomTypeNames.TABLE_INFO_COLUMN,
50 /*name*/ field.columnName,
63 .joinToString(",") { "\"${it.columnName}\"" }
H A DEntityCursorConverterWriter.kt71 TypeName.INT, indexVar, cursorParam, it.columnName)
H A DRelationCollectorMethodWriter.kt49 "-${relation.entityField.columnName}" +
84 TypeName.INT, itemKeyIndexVar, cursorVar, relation.entityField.columnName)
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DCallerInfo.java531 String columnName = null;
536 columnName = RawContacts.CONTACT_ID;
542 columnName = Data.CONTACT_ID;
548 columnName = PhoneLookup._ID;
552 int columnIndex = (columnName != null) ? cursor.getColumnIndex(columnName) : -1;
553 if (VDBG) Rlog.v(TAG, "==> Using column '" + columnName
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/solver/query/result/
H A DPojoRowAdapter.kt54 val field = remainingFields.firstOrNull { it.columnName == column.name } ?:
55 pojo.fields.firstOrNull { it.columnName == column.name }
103 TypeName.INT, indexVar, cursorVarName, it.columnName)
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
H A DExportTestProvider.java157 public int getColumnIndex(String columnName) {
158 TestCase.assertEquals(Data.CONTACT_ID, columnName);
/frameworks/support/room/compiler/src/test/kotlin/android/arch/persistence/room/processor/
H A DEntityNameMatchingVariationsTest.kt70 columnName = fieldName,

Completed in 445 milliseconds

12