/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/vo/ |
H A D | Relation.kt | 39 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 D | Index.kt | 35 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 D | PrimaryKey.kt | 30 val columnNames by lazy { fields.map {it.columnName} } 38 autoGenerateId, fields.map { it.columnName })
|
H A D | ForeignKey.kt | 31 return "FOREIGN KEY(${joinEscaped(childFields.map { it.columnName })})" + 50 childFields.map { it.columnName },
|
H A D | Field.kt | 33 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 D | IndexTest.kt | 45 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 D | FieldBundle.java | 33 @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 D | AbstractCursor.java | 305 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 D | Cursor.java | 175 * @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 D | CursorWrapper.java | 80 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 D | MatrixCursor.java | 230 public RowBuilder add(String columnName, Object value) { argument 232 if (columnName.equals(columnNames[i])) {
|
/frameworks/base/core/java/android/database/sqlite/ |
H A D | SQLiteCursor.java | 164 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 D | FieldProcessor.kt | 44 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 D | EntityProcessor.kt | 99 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 D | ProcessorErrors.kt | 80 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 D | PojoProcessor.kt | 134 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 D | DatabaseProcessor.kt | 120 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 D | MockCursor.java | 47 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 D | TableInfoValidationWriter.kt | 49 columnListVar, field.columnName, RoomTypeNames.TABLE_INFO_COLUMN, 50 /*name*/ field.columnName, 63 .joinToString(",") { "\"${it.columnName}\"" }
|
H A D | EntityCursorConverterWriter.kt | 71 TypeName.INT, indexVar, cursorParam, it.columnName)
|
H A D | RelationCollectorMethodWriter.kt | 49 "-${relation.entityField.columnName}" + 84 TypeName.INT, itemKeyIndexVar, cursorVar, relation.entityField.columnName)
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | CallerInfo.java | 531 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 D | PojoRowAdapter.kt | 54 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 D | ExportTestProvider.java | 157 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 D | EntityNameMatchingVariationsTest.kt | 70 columnName = fieldName,
|