RenameTable
public
abstract
@interface
RenameTable
implements
Annotation
| androidx.room.RenameTable |
Repeatable annotation declaring the renamed tables in the new version of an auto migration.
See also:
Summary
Nested classes | |
|---|---|
@interface |
RenameTable.Entries
Container annotation for the repeatable annotation |
Public methods | |
|---|---|
String
|
fromTableName()
Name of the table in the |
String
|
toTableName()
Name of the table in the |
Inherited methods | |
|---|---|
Public methods
fromTableName
public String fromTableName ()
Name of the table in the AutoMigration.from() version of the database.
| Returns | |
|---|---|
String |
Name of the table to rename from. |
toTableName
public String toTableName ()
Name of the table in the AutoMigration.to() version of the database.
| Returns | |
|---|---|
String |
Name of the table to rename to. |
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.