Back to project page chat.android.
The source code is released under:
GNU General Public License
If you think the Android project chat.android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.chat.android.models; /*from w w w . j a va2 s . c om*/ import java.util.Date; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.table.DatabaseTable; /** * Created by colin */ @DatabaseTable(tableName = "health_themes") public class HealthTheme { @DatabaseField(id = true, unique = true, index = true) private int id; @DatabaseField private String name; @DatabaseField private String en_observe_content; @DatabaseField private String en_record_content; @DatabaseField private String zu_observe_content; @DatabaseField private String zu_record_content; @DatabaseField private String color; @DatabaseField private Date created_at; @DatabaseField private Date modified_at; /** * Default Constructor needed by ormlite */ public HealthTheme() { } /** * Constructor that instantiates the private member variable(s) * @param id * @param name * @param en_observe_content (dep?) * @param en_record_content (dep?) * @param zu_observe_content (dep?) * @param zu_record_content (dep?) * @param color * @param created_at * @param modified_at * */ public HealthTheme(int id, String name, String en_observe_content, String en_record_content, String zu_observe_content, String zu_record_content, String color, Date created_at, Date modified_at) { this.id = id; this.name = name; this.en_observe_content = en_observe_content; this.en_record_content = en_record_content; this.zu_observe_content = zu_observe_content; this.zu_record_content = zu_record_content; this.color = color; this.created_at = created_at; this.modified_at = modified_at; } /** * Copy constructor * @param existingListModel - List model instance that is copied to new instance */ public HealthTheme(HealthTheme existingHealthThemeModel) { this.name = existingHealthThemeModel.name; this.en_observe_content = existingHealthThemeModel.en_observe_content; this.en_record_content = existingHealthThemeModel.en_record_content; this.zu_record_content = existingHealthThemeModel.zu_record_content; this.zu_record_content = existingHealthThemeModel.zu_record_content; this.color = existingHealthThemeModel.color; this.created_at = existingHealthThemeModel.created_at; this.modified_at = existingHealthThemeModel.modified_at; } public int getId() { return id; } public String getName() { return name; } public void setName(String name) { this.name = name; this.modified_at = new Date(); } public String getEnObserveContent() { return en_observe_content; } public void setEnObserveContent(String en_observe_content) { this.en_observe_content = en_observe_content; this.modified_at = new Date(); } public String getEnRecordContent() { return en_record_content; } public void setEnRecordContent(String en_record_content) { this.en_record_content = en_record_content; this.modified_at = new Date(); } public String getZuObserveContent() { return zu_observe_content; } public void setZuObserveContent(String zu_observe_content) { this.zu_observe_content = zu_observe_content; this.modified_at = new Date(); } public String getZuRecordContent() { return zu_record_content; } public void setZuRecordContent(String zu_record_content) { this.zu_record_content = zu_record_content; this.modified_at = new Date(); } public String getColor() { return color; } public void setColor(String color) { this.color = color; this.modified_at = new Date(); } }