Skip to content

Instantly share code, notes, and snippets.

@jezinka
Created March 20, 2017 08:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jezinka/edc50332bfaa02008f8fa2fa7c992be5 to your computer and use it in GitHub Desktop.
Save jezinka/edc50332bfaa02008f8fa2fa7c992be5 to your computer and use it in GitHub Desktop.
public class DinnerContract extends BaseTable implements BaseColumns {
String COLUMN_DATE_NAME;
String COLUMN_MEAL_ID;
public DinnerContract() {
this.TABLE_NAME = "dinner";
this.COLUMN_MEAL_ID = "meal_id";
this.COLUMN_DATE_NAME = "date";
this.SQL_CREATE_ENTRIES = "CREATE TABLE " + TABLE_NAME + " (" +
_ID + " INTEGER PRIMARY KEY," +
COLUMN_MEAL_ID + " INT, " +
COLUMN_DATE_NAME + " INT)"; // System.currentTimeMillis()
}
public boolean insertDinner(CoNaObiadDbHelper coNaObiadDbHelper, int mealID, Date date) {
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment