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; /* w w w .jav a 2 s. co m*/ import keepmysecretapp.app.com.keepmysecretapp.db.EntryType; public class DataTable implements QueryTable { public static final String KEY_ID = "ID"; public static final String KEY_ENTRY_NAME = "ENTRY_NAME"; public static final String KEY_ENTRY_PASSWORD = "ENTRY_PASSWORD"; public static final String KEY_ENTRY_DESCRIBE = "ENTRY_DESCRIBE"; public static final String KEY_ENTRY_GROUP_ID = "GROUP_ID"; public String getKeyId() { return KEY_ID; } public String getKeyEntryName() { return KEY_ENTRY_NAME; } public String getKeyEntryPassword() { return KEY_ENTRY_PASSWORD; } public String getKeyEntryGroupId() { return KEY_ENTRY_GROUP_ID; } public String getKeyEntryDescribe() { return KEY_ENTRY_DESCRIBE; } @Override public String getUpgradeQuery() { StringBuilder sb = new StringBuilder(); sb.append("DROP TABLE IF EXISTS " + EntryType.DATA); return sb.toString(); } @Override public String getCreationQuery() { StringBuilder sb = new StringBuilder(); sb.append("CREATE TABLE " + EntryType.DATA); sb.append("(" + getKeyId() + " INTEGER PRIMARY KEY, "); sb.append(getKeyEntryName() + " TEXT, "); sb.append(getKeyEntryPassword() + " TEXT, "); sb.append(getKeyEntryDescribe() + " TEXT, "); sb.append(getKeyEntryGroupId() + " INTEGER" + ")"); return sb.toString(); } }