mirror of https://github.com/tasks/tasks
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.9 KiB
Java
63 lines
1.9 KiB
Java
package com.todoroo.astrid.data;
|
|
|
|
import android.content.ContentValues;
|
|
|
|
import com.todoroo.andlib.data.AbstractModel;
|
|
import com.todoroo.andlib.data.Property;
|
|
import com.todoroo.andlib.data.Property.LongProperty;
|
|
import com.todoroo.andlib.data.Property.StringProperty;
|
|
import com.todoroo.andlib.data.Table;
|
|
|
|
public class UserActivityOutstanding extends OutstandingEntry<UserActivity> {
|
|
|
|
/** table for this model */
|
|
public static final Table TABLE = new Table("user_activity_outstanding", UserActivityOutstanding.class);
|
|
|
|
// --- properties
|
|
|
|
/** ID */
|
|
public static final LongProperty ID = new LongProperty(
|
|
TABLE, ID_PROPERTY_NAME);
|
|
|
|
public static final LongProperty TASK_ID = new LongProperty(
|
|
TABLE, ENTITY_ID_PROPERTY_NAME);
|
|
|
|
public static final StringProperty COLUMN_STRING = new StringProperty(
|
|
TABLE, COLUMN_STRING_PROPERTY_NAME);
|
|
|
|
public static final StringProperty VALUE_STRING = new StringProperty(
|
|
TABLE, VALUE_STRING_PROPERTY_NAME);
|
|
|
|
public static final LongProperty CREATED_AT = new LongProperty(
|
|
TABLE, CREATED_AT_PROPERTY_NAME);
|
|
|
|
private static final ContentValues defaultValues = new ContentValues();
|
|
|
|
static {
|
|
defaultValues.put(TASK_ID.name, 0);
|
|
defaultValues.put(COLUMN_STRING.name, "");
|
|
defaultValues.put(VALUE_STRING.name, "");
|
|
}
|
|
|
|
/** List of all properties for this model */
|
|
public static final Property<?>[] PROPERTIES = generateProperties(UserActivityOutstanding.class);
|
|
|
|
@Override
|
|
public ContentValues getDefaultValues() {
|
|
return defaultValues;
|
|
}
|
|
|
|
@Override
|
|
public long getId() {
|
|
return getIdHelper(ID);
|
|
}
|
|
|
|
public static final Creator<UserActivityOutstanding> CREATOR = new ModelCreator<UserActivityOutstanding>(UserActivityOutstanding.class);
|
|
|
|
@Override
|
|
protected Creator<? extends AbstractModel> getCreator() {
|
|
return CREATOR;
|
|
}
|
|
|
|
}
|