Skip to content

Instantly share code, notes, and snippets.

@jezinka
Created Mar 20, 2017
Embed
What would you like to do?
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