Back to project page 101AndroidApps.
The source code is released under:
Licenced under the Creative Commons Attribution 4.0 licence. For full text see http://creativecommons.org/licenses/by/4.0/
If you think the Android project 101AndroidApps 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.hulzenga.ioi.android.app_003.database; /*from w w w . j av a2 s.c om*/ import java.util.Arrays; import java.util.HashSet; /** * Contract definition for the Monster Database */ public class MonsterContract { //this class can not be instantiated private MonsterContract() { } //table name public static final String TABLE_MONSTERS = "Monsters"; //table fields public static final String COLUMN_MONSTER_ID = "_id"; public static final String COLUMN_MONSTER_NAME = "MonsterName"; public static final String COLUMN_MONSTER_DESCRIPTION = "Description"; //set of all table fields public static final HashSet<String> VALID_COLUMNS = new HashSet<String>( Arrays.asList(new String[]{ COLUMN_MONSTER_ID, COLUMN_MONSTER_NAME, COLUMN_MONSTER_DESCRIPTION}) ); }