Class Hash
- java.lang.Object
-
- lumis.service.socialnetworkservices.microblog.entity.Hash
-
- All Implemented Interfaces:
java.io.Serializable
public class Hash extends java.lang.Object implements java.io.Serializable
This entity class contains information about a Hashtag present in a Post.- Since:
- 6.1.0
- Version:
- $Revision: 13757 $ $Date: 2011-10-14 11:52:52 -0300 (Fri, 14 Oct 2011) $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FIND_BY_POST_ID
Named Query that finds a Hash based on a postId specified by parameterpostId
.protected HashPK
id
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
HashPK
getId()
Returns the object-Id (composite keyHashPK
)java.lang.String
getStemmed()
int
hashCode()
static java.lang.String
normalizeHashtag(java.lang.String hashtag)
void
setId(HashPK id)
Sets the object-Id (composite keyHashPK
)void
setStemmed(java.lang.String stemmed)
java.lang.String
toString()
-
-
-
Field Detail
-
FIND_BY_POST_ID
public static final java.lang.String FIND_BY_POST_ID
Named Query that finds a Hash based on a postId specified by parameterpostId
.- See Also:
- Constant Field Values
-
id
protected HashPK id
-
-
Constructor Detail
-
Hash
public Hash()
Constructor for JPA.- Since:
- 6.1.0
-
Hash
public Hash(HashPK hashPK)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setStemmed
public void setStemmed(java.lang.String stemmed)
-
getStemmed
public java.lang.String getStemmed()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
normalizeHashtag
public static java.lang.String normalizeHashtag(java.lang.String hashtag)
-
-