What would be the good practices regarding sqlite on Android? I use a single db contract for all tables (each table a class inside the main contract class)?
public final class FeedReaderContract {
// To prevent someone from accidentally instantiating the contract class,
// make the constructor private.
private FeedReaderContract() {}
/* Inner class that defines the table contents */
public static class FeedEntry implements BaseColumns {
public static final String TABLE_NAME = "entry";
public static final String COLUMN_NAME_TITLE = "title";
public static final String COLUMN_NAME_SUBTITLE = "subtitle";
}
public static class OutraTabela implements BaseColumns {
....
}
}
Or do I create a contract class for each table?