public class UpdateMap
extends java.lang.Object
implements android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<UpdateMap> |
CREATOR |
| Constructor and Description |
|---|
UpdateMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToDeleteTable(java.lang.String tableName)
add table name to remove this table from the database.
|
void |
addUpdateTableMap(UpdateTableMap map)
add UpdateTableMap object to describe how the table should be changed.
|
int |
describeContents() |
int |
getFromVersion()
Get the database version from which this object describes the update from.
|
UpdateTableMap |
getTableMap(java.lang.String tableName) |
java.util.ArrayList<java.lang.String> |
getTablesToDelete()
Returns the table names that will be deleted from the database.
|
java.util.ArrayList<UpdateTableMap> |
getTablesToUpdate()
Returns the TableMaps that will be updated at the database.
|
boolean |
hasTable(java.lang.String tableName)
Checks if the object has a specific table name in the list of tables to be updated.
|
void |
setFromVersion(int fromVersion)
Set the database version from which this object describes the update from.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<UpdateMap> CREATOR
public void addToDeleteTable(java.lang.String tableName)
tableName - table name to removepublic void addUpdateTableMap(UpdateTableMap map)
map - public int getFromVersion()
public void setFromVersion(int fromVersion)
fromVersion - version to update frompublic java.util.ArrayList<java.lang.String> getTablesToDelete()
public java.util.ArrayList<UpdateTableMap> getTablesToUpdate()
public UpdateTableMap getTableMap(java.lang.String tableName)
public boolean hasTable(java.lang.String tableName)
tableName - name of table to checkpublic int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable