Back to project page SNISI-droid.
The source code is released under:
Apache License
If you think the Android project SNISI-droid 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 com.yeleman.snisidroid; //from w w w . ja v a 2s . co m import com.orm.SugarRecord; import com.orm.dsl.Ignore; import java.util.Date; public class ReportData extends SugarRecord { @Ignore private static final String TAG = Constants.getLogTag("ReportData"); private String name; private String status; private Date modifiedOn; public void setName(String name) { this.name = name; } public String getName() { return this.name; } protected String buildName() { return "Unknown"; } public void updateName() { this.setName(this.buildName()); } public void setStatus(String status) { this.status = status; } public String getStatus() { return this.status; } public static <T> T getUniqueRecord(Class<T> type) { return findById(type, (long) 1); } public void safeSave() { this.setId((long) 1); super.save(); } public Date getModifiedOn() { return this.modifiedOn; } public void setModifiedOn(Date modifiedOn) { this.modifiedOn = modifiedOn; } public void updateModifiedOn() { this.setModifiedOn(new Date()); } public void updateMetaData() { this.updateName(); this.updateModifiedOn(); } public String buildSMSText() { return "-"; } }