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 |
Public methods | |
|---|---|
String
|
fromColumnName()
Name of the column in the |
String
|
tableName()
Name of the table in the |
String
|
toColumnName()
Name of the column in the |
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. |
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-04-21 UTC.