Package lumis.service.likeit
Class Like
- java.lang.Object
-
- lumis.service.likeit.Like
-
public class Like extends java.lang.Object
A liking expressed by an user about some entity.- Since:
- 8.0.0
- Version:
- $Revision: 17049 $ $Date: 2015-03-03 11:26:53 -0300 (Tue, 03 Mar 2015) $
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
NAMED_QUERY_DELETE_BY_SERVICEINSTANCEID
protected static java.lang.String
NAMED_QUERY_FIND_BY_ITEMID
protected static java.lang.String
NAMED_QUERY_FIND_BY_ITEMID_AND_SERVICEINSTANCEID
protected static java.lang.String
NAMED_QUERY_FIND_LIKE_BY_ITEMID_AND_USERID_AND_SERVICEINSTANCEID
-
Constructor Summary
Constructors Constructor Description Like()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getId()
Returns this liking's identifier.java.lang.String
getItemId()
Returns the identifier of the entity which this liking is related.java.lang.String
getItemName()
Returns the title of the entity which this liking is related.java.lang.String
getItemServiceInstanceId()
Returns the identifier of the service instance from the entity which this liking is related.java.lang.String
getItemUrl()
Returns the URL to the details page of entity which this liking is related.java.util.Date
getLikeDate()
Returns this liking's expression date.java.lang.String
getServiceInstanceId()
Returns the identifier of the service instance from this liking.java.lang.String
getUserId()
Returns the identifier of the user which expressed this liking.void
setId(java.lang.String id)
Sets this liking's identifier.void
setItemId(java.lang.String itemId)
Sets the identifier of the entity which this liking is related.void
setItemName(java.lang.String itemName)
Sets the title of the entity which this liking is related.void
setItemServiceInstanceId(java.lang.String itemServiceInstanceId)
Sets the identifier of the service instance from the entity which this liking is related.void
setItemUrl(java.lang.String itemUrl)
Sets the URL to the details page of entity which this liking is related.void
setServiceInstanceId(java.lang.String serviceInstanceId)
Sets the identifier of the service instance from this liking.
-
-
-
Field Detail
-
NAMED_QUERY_FIND_BY_ITEMID
protected static final java.lang.String NAMED_QUERY_FIND_BY_ITEMID
- See Also:
- Constant Field Values
-
NAMED_QUERY_DELETE_BY_SERVICEINSTANCEID
protected static final java.lang.String NAMED_QUERY_DELETE_BY_SERVICEINSTANCEID
- See Also:
- Constant Field Values
-
NAMED_QUERY_FIND_BY_ITEMID_AND_SERVICEINSTANCEID
protected static final java.lang.String NAMED_QUERY_FIND_BY_ITEMID_AND_SERVICEINSTANCEID
- See Also:
- Constant Field Values
-
NAMED_QUERY_FIND_LIKE_BY_ITEMID_AND_USERID_AND_SERVICEINSTANCEID
protected static final java.lang.String NAMED_QUERY_FIND_LIKE_BY_ITEMID_AND_USERID_AND_SERVICEINSTANCEID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public java.lang.String getId()
Returns this liking's identifier.- Returns:
- this liking's identifier.
- Since:
- 8.0.0
-
setId
public void setId(java.lang.String id)
Sets this liking's identifier.- Parameters:
id
- the identifier value to set.- Since:
- 8.0.0
-
getServiceInstanceId
public java.lang.String getServiceInstanceId()
Returns the identifier of the service instance from this liking.- Returns:
- the identifier of the service instance from this liking.
- Since:
- 8.0.0
-
setServiceInstanceId
public void setServiceInstanceId(java.lang.String serviceInstanceId)
Sets the identifier of the service instance from this liking.- Parameters:
serviceInstanceId
- the service instance identifier value to set.- Since:
- 8.0.0
-
getItemId
public java.lang.String getItemId()
Returns the identifier of the entity which this liking is related.- Returns:
- the the identifier of the entity which this liking is related.
- Since:
- 8.0.0
-
setItemId
public void setItemId(java.lang.String itemId)
Sets the identifier of the entity which this liking is related.- Parameters:
itemId
- the liking's identifier value to set.- Since:
- 8.0.0
-
getItemName
public java.lang.String getItemName()
Returns the title of the entity which this liking is related.- Returns:
- the title of the entity which this liking is related.
- Since:
- 8.0.0
-
setItemName
public void setItemName(java.lang.String itemName)
Sets the title of the entity which this liking is related.- Parameters:
itemName
- the liking's title value to set.- Since:
- 8.0.0
-
getItemServiceInstanceId
public java.lang.String getItemServiceInstanceId()
Returns the identifier of the service instance from the entity which this liking is related.- Returns:
- the identifier of the service instance from the entity which this liking is related.
- Since:
- 8.0.0
-
setItemServiceInstanceId
public void setItemServiceInstanceId(java.lang.String itemServiceInstanceId)
Sets the identifier of the service instance from the entity which this liking is related.- Parameters:
itemServiceInstanceId
- the liking's service instance identifier value to set.- Since:
- 8.0.0
-
getItemUrl
public java.lang.String getItemUrl()
Returns the URL to the details page of entity which this liking is related.- Returns:
- the URL to the details page of entity which this liking is related.
- Since:
- 8.0.0
-
setItemUrl
public void setItemUrl(java.lang.String itemUrl)
Sets the URL to the details page of entity which this liking is related.- Parameters:
itemUrl
- the liking's details page URL value to set.- Since:
- 8.0.0
-
getLikeDate
public java.util.Date getLikeDate()
Returns this liking's expression date.- Returns:
- this liking's expression date.
- Since:
- 8.0.0
-
getUserId
public java.lang.String getUserId()
Returns the identifier of the user which expressed this liking.- Returns:
- the identifier of the user which expressed this liking.
- Since:
- 8.0.0
-
-