public class Category
extends com.orm.SugarRecord
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COLUMN_COLOR_RESOURCE_NAME |
static java.lang.String |
COLUMN_ID |
static java.lang.String |
COLUMN_MEDIA_TYPE_NAME |
static java.lang.String |
COLUMN_NAME |
Constructor and Description |
---|
Category()
Constructor
|
Category(Context context,
java.lang.String name,
int color,
MediaType mediaType)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
int |
getColor(Context context)
Getter
|
MediaType |
getMediaType()
Getter
|
java.lang.String |
getName()
Getter
|
void |
setColor(Context context,
int color)
Setter
|
void |
setMediaType(MediaType mediaType)
Setter
|
void |
setName(java.lang.String name)
Setter
|
count, count, count, delete, delete, deleteAll, deleteAll, deleteInTx, deleteInTx, executeQuery, find, find, findAll, findAsIterator, findAsIterator, findById, findById, findById, findWithQuery, findWithQueryAsIterator, first, getId, isSugarEntity, last, listAll, listAll, save, save, saveInTx, saveInTx, setId
public static final java.lang.String COLUMN_ID
public static final java.lang.String COLUMN_NAME
public static final java.lang.String COLUMN_MEDIA_TYPE_NAME
public static final java.lang.String COLUMN_COLOR_RESOURCE_NAME
public Category()
public Category(Context context, java.lang.String name, int color, MediaType mediaType)
context
- the contextname
- the category namecolor
- the category color RESOURCE IDmediaType
- the category media typepublic java.lang.String getName()
public int getColor(Context context)
context
- the contextpublic MediaType getMediaType()
public void setName(java.lang.String name)
name
- the category namepublic void setColor(Context context, int color)
context
- the contextcolor
- the category color RESOURCE IDpublic void setMediaType(MediaType mediaType)
mediaType
- the category media typepublic boolean equals(java.lang.Object object)
equals
in class java.lang.Object