Back to project page KeepMySecret.
The source code is released under:
GNU General Public License
If you think the Android project KeepMySecret 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 keepmysecretapp.app.com.keepmysecretapp.tables; //ww w . ja v a 2 s . c o m import keepmysecretapp.app.com.keepmysecretapp.db.EntryType; public class GroupTable implements QueryTable { public static final String KEY_ID = "ID"; public static final String KEY_GROUP_NAME = "GROUP_NAME"; public static final String KEY_GROUP_DESCRIBE = "GROUP_DESCRIBE"; public String getKeyId() { return KEY_ID; } public String getKeyGroupName() { return KEY_GROUP_NAME; } public String getKeyGroupDescribe() { return KEY_GROUP_DESCRIBE; } @Override public String getUpgradeQuery() { StringBuilder sb = new StringBuilder(); sb.append("DROP TABLE IF EXISTS " + EntryType.GROUPS); return sb.toString(); } @Override public String getCreationQuery() { StringBuilder sb = new StringBuilder(); sb.append("CREATE TABLE " + EntryType.GROUPS); sb.append("(" + getKeyId() + " INTEGER PRIMARY KEY, "); sb.append(getKeyGroupName() + " TEXT, "); sb.append(getKeyGroupDescribe() + " TEXT" + ")"); return sb.toString(); } }