RenameColumn

public abstract @interface RenameColumn
implements Annotation

androidx.room.RenameColumn


Repeatable annotation declaring the renamed columns in the AutoMigration.to() version of an auto migration.

See also:

Summary

Nested classes

@interface RenameColumn.Entries

Container annotation for the repeatable annotation RenameColumn

Public methods

String fromColumnName()

Name of the column in the AutoMigration.from() version of the database.

String tableName()

Name of the table in the AutoMigration.from() version of the database the renamed column is found in.

String toColumnName()

Name of the column in the AutoMigration.to() version of the database.

Inherited methods

Public methods

fromColumnName

public String fromColumnName ()

Name of the column in the AutoMigration.from() version of the database.

Returns
String Name of the column.

tableName

public String tableName ()

Name of the table in the AutoMigration.from() version of the database the renamed column is found in. The name in AutoMigration.from() version is used in case the table was renamed in the AutoMigration.to() version.

Returns
String Name of the table

toColumnName

public String toColumnName ()

Name of the column in the AutoMigration.to() version of the database.

Returns
String Name of the column.