public class Schema
extends java.lang.Object
implements android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<Schema> |
CREATOR |
| Constructor and Description |
|---|
Schema() |
Schema(java.lang.String name,
int version)
Constructs Schema object by setting Schema name and version.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTable(Table table)
Adds a Table object to the schema.
|
int |
describeContents() |
java.lang.String |
getName() |
java.util.ArrayList<Table> |
getTables() |
int |
getVersion()
Get version of Schema.
|
void |
setName(java.lang.String schemaName)
Set Schema name.
|
void |
setVersion(int version)
Sets the Schema version.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<Schema> CREATOR
public Schema()
public Schema(java.lang.String name,
int version)
name - name of Schema objectversion - version of Schema objectpublic void addTable(Table table)
table - Table object to be added in Schemapublic java.util.ArrayList<Table> getTables()
public java.lang.String getName()
public void setName(java.lang.String schemaName)
schemaName - name to set for Schema objectpublic int getVersion()
public void setVersion(int version)
version - version number of the Schema objectpublic int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable