Package org.minijax.dao
Class Avatar
- java.lang.Object
-
- org.minijax.dao.Avatar
-
- All Implemented Interfaces:
Serializable
@Embeddable public class Avatar extends Object implements Serializable
The Avatar class represents an avatar or profile picture for an entity. Entities that have an Avatar should implement the AvatarEntity interface. The avatar fields are intended to be "embedded" with the parent entity, such that each of these columns are added to the entity's database table.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intIMAGE_TYPE_DEFAULTThe image is the original generated default.static intIMAGE_TYPE_GOOGLEThe image was pulled from Google Plus.static intIMAGE_TYPE_GRAVATARThe image was pulled from Gravatar.static intIMAGE_TYPE_MANUALThe image was manually uploaded by the user.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetImageType()StringgetImageUrl()StringgetThumbUrl()voidsetImageType(int imageType)voidsetImageUrl(String imageUrl)voidsetThumbUrl(String thumbUrl)
-
-
-
Field Detail
-
IMAGE_TYPE_DEFAULT
public static final int IMAGE_TYPE_DEFAULT
The image is the original generated default.- See Also:
- Constant Field Values
-
IMAGE_TYPE_MANUAL
public static final int IMAGE_TYPE_MANUAL
The image was manually uploaded by the user.- See Also:
- Constant Field Values
-
IMAGE_TYPE_GRAVATAR
public static final int IMAGE_TYPE_GRAVATAR
The image was pulled from Gravatar.- See Also:
- Constant Field Values
-
IMAGE_TYPE_GOOGLE
public static final int IMAGE_TYPE_GOOGLE
The image was pulled from Google Plus.- See Also:
- Constant Field Values
-
-