Package mc.core.model.i18n
Class TextValue
java.lang.Object
mc.core.model.base.EntityText
mc.core.model.i18n.TextValue
- All Implemented Interfaces:
Serializable,IBaseEntity,ICoreEntity
entity for text in a locale. always owned by exactly one textSet
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class mc.core.model.base.EntityText
TEXT_MAX_LENGTH_STD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetId()getState()getText()intinthashCode()static StringprepareText(String text) truncate text (includes removing tags) if longer than TEXT_COLUMN_LENGTH_IDX to prepare for search/comparevoidsetId(long id) voidvoidvoidsetVersion(int version) toString()for testing/debugging
-
Constructor Details
-
TextValue
public TextValue() -
TextValue
-
-
Method Details
-
getId
public long getId()- Specified by:
getIdin interfaceIBaseEntity
-
setId
public void setId(long id) - Specified by:
setIdin interfaceIBaseEntity
-
getTextSet
-
getLocale
-
getDateCreated
-
getDateModified
-
getState
-
setState
-
getVersion
public int getVersion() -
setVersion
public void setVersion(int version) -
getText
-
setText
-
equals
-
hashCode
public int hashCode() -
toString
for testing/debugging -
prepareText
truncate text (includes removing tags) if longer than TEXT_COLUMN_LENGTH_IDX to prepare for search/compare
-