# ColumnInfo.SQLiteTypeAffinity

# ColumnInfo.SQLiteTypeAffinity

Artifact:[androidx.room:room-common](https://developer.android.com/jetpack/androidx/releases/room)  
[View Source](https://cs.android.com/search?q=file:androidx/room/ColumnInfo.kt+class:androidx.room.ColumnInfo.SQLiteTypeAffinity)  
Added in[2.0.0](https://developer.android.com/jetpack/androidx/releases/room#2.0.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/room/ColumnInfo.SQLiteTypeAffinity "View this page in Java")
Common/AllAndroid/JVMNative/C/iOSJavaScript
  - Cmn  

  ```
  @IntDef(value = [1, 2, 3, 4, 5])
  @Retention(value = AnnotationRetention.BINARY)
  annotation ColumnInfo.SQLiteTypeAffinity
  ```

*** ** * ** ***

The SQLite column type constants that can be used in typeAffinity()

## Summary

|                                                          ### Public constructors                                                          |
|-------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [SQLiteTypeAffinity](https://developer.android.com/reference/kotlin/androidx/room/ColumnInfo.SQLiteTypeAffinity#SQLiteTypeAffinity())`()` | Cmn |

## Public constructors

### SQLiteTypeAffinity

Cmn  

```
SQLiteTypeAffinity()
```