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; //from ww w . j a v a 2 s. co m import keepmysecretapp.app.com.keepmysecretapp.db.EntryType; public class AuthTable implements QueryTable { public static final String KEY_ID = "ID"; public static final String KEY_USER_NAME = "USER_NAME"; public static final String KEY_USER_PASSWORD = "USER_PASSWORD"; public String getKeyId() { return KEY_ID; } public String getKeyUserName() { return KEY_USER_NAME; } public String getKeyUserPassword() { return KEY_USER_PASSWORD; } @Override public String getUpgradeQuery() { StringBuilder sb = new StringBuilder(); sb.append("DROP TABLE IF EXISTS " + EntryType.AUTH); return sb.toString(); } @Override public String getCreationQuery() { StringBuilder sb = new StringBuilder(); sb.append("CREATE TABLE " + EntryType.AUTH); sb.append("(" + getKeyId() + " INTEGER PRIMARY KEY, "); sb.append(getKeyUserName() + " TEXT, "); sb.append(getKeyUserPassword() + " TEXT" + ")"); return sb.toString(); } }