@Table(name = "obscreate") public class Obscreate extends Model implements Serializable {
public TableInfo(Class<? extends Model> type) { mType = type; final Table tableAnnotation = type.getAnnotation(Table.class); if (tableAnnotation != null) { mTableName = tableAnnotation.name(); mIdName = tableAnnotation.id(); } else { mTableName = type.getSimpleName(); } // Manually add the id column since it is not declared like the other columns. Field idField = getIdField(type); mColumnNames.put(idField, mIdName); List<Field> fields = new LinkedList<Field>(ReflectionUtils.getDeclaredColumnFields(type)); Collections.reverse(fields); for (Field field : fields) { if (field.isAnnotationPresent(Column.class)) { final Column columnAnnotation = field.getAnnotation(Column.class); String columnName = columnAnnotation.name(); if (TextUtils.isEmpty(columnName)) { columnName = field.getName(); } mColumnNames.put(field, columnName); } } }
@Table(name = "link") public class Link extends Model implements Serializable{
public TableInfo(Class<? extends Model> type) { mType = type; final Table tableAnnotation = type.getAnnotation(Table.class); if (tableAnnotation != null) { mTableName = tableAnnotation.name(); mIdName = tableAnnotation.id(); } else { mTableName = type.getSimpleName(); } // Manually add the id column since it is not declared like the other columns. Field idField = getIdField(type); mColumnNames.put(idField, mIdName); List<Field> fields = new LinkedList<Field>(ReflectionUtils.getDeclaredColumnFields(type)); Collections.reverse(fields); for (Field field : fields) { if (field.isAnnotationPresent(Column.class)) { final Column columnAnnotation = field.getAnnotation(Column.class); String columnName = columnAnnotation.name(); if (TextUtils.isEmpty(columnName)) { columnName = field.getName(); } mColumnNames.put(field, columnName); } } }
@Table(name = "LibreData", id = BaseColumns._ID) public class LibreData extends PlusModel { private static final String TAG = "LibreData";
public TableInfo(Class<? extends Model> type) { mType = type; final Table tableAnnotation = type.getAnnotation(Table.class); if (tableAnnotation != null) { mTableName = tableAnnotation.name(); mIdName = tableAnnotation.id(); } else { mTableName = type.getSimpleName(); } // Manually add the id column since it is not declared like the other columns. Field idField = getIdField(type); mColumnNames.put(idField, mIdName); List<Field> fields = new LinkedList<Field>(ReflectionUtils.getDeclaredColumnFields(type)); Collections.reverse(fields); for (Field field : fields) { if (field.isAnnotationPresent(Column.class)) { final Column columnAnnotation = field.getAnnotation(Column.class); String columnName = columnAnnotation.name(); if (TextUtils.isEmpty(columnName)) { columnName = field.getName(); } mColumnNames.put(field, columnName); } } }
@Table(name = "LibreData", id = BaseColumns._ID) public class LibreData extends PlusModel { private static final String TAG = "LibreData";
@Table(name = "LibreData", id = BaseColumns._ID) public class LibreData extends PlusModel { private static final String TAG = "LibreData";
@Table(name = "users") public class User extends Model {
@Table(name = "SensorSendQueue", id = BaseColumns._ID) public class SensorSendQueue extends Model {
@NoArgsConstructor @AllArgsConstructor @Table(name = "APStatus", id = BaseColumns._ID) public class APStatus extends PlusModel {
@NoArgsConstructor @AllArgsConstructor @Table(name = "APStatus", id = BaseColumns._ID) public class APStatus extends PlusModel {
@Table(name = "encountertype") public class EncounterType extends Model implements Serializable {
@Table(name = "SensorSendQueue", id = BaseColumns._ID) public class SensorSendQueue extends Model {
@Table(name = "SensorSendQueue", id = BaseColumns._ID) public class SensorSendQueue extends Model {
@Table(name = "formresource") public class FormResource extends Model implements Serializable{
@Table(name = "PebbleMovement", id = BaseColumns._ID) public class StepCounter extends Model {
@NoArgsConstructor @AllArgsConstructor @Table(name = "Prediction", id = BaseColumns._ID) public class Prediction extends PlusModel {
@Table(name = "PebbleMovement", id = BaseColumns._ID) public class PebbleMovement extends Model {
@NoArgsConstructor @AllArgsConstructor @Table(name = "Prediction", id = BaseColumns._ID) public class Prediction extends PlusModel {