Package de.xima.fc.entities.common.i18n
Class ALocalization<TBase extends de.xima.cmn.dao.interfaces.IEntity<Long>>
- java.lang.Object
-
- de.xima.fc.entities.common.i18n.ALocalization<TBase>
-
- Type Parameters:
TBase- type of the base entity for which the localization is intended.
- All Implemented Interfaces:
ILocalization<TBase>,ILocalizedDatabaseObject,Serializable
- Direct Known Subclasses:
ClientPortalConfigLocalization,ProjectLocalization,UserPortalAuthConfigLocalization,UserPortalLocalization,UserPortalStateLocalization,UserPortalTagLocalization
@MappedSuperclass public abstract class ALocalization<TBase extends de.xima.cmn.dao.interfaces.IEntity<Long>> extends Object implements ILocalization<TBase>
Abstract base class for entity localizations- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface de.xima.fc.entities.interfaces.i18n.ILocalization
ATTR_ENTITY, ATTR_I18N_NAME, ATTR_I18N_VALUE, COL_ENTITY_ID, COL_I18N_NAME, COL_I18N_VALUE
-
Fields inherited from interface de.xima.fc.entities.interfaces.i18n.ILocalizedDatabaseObject
ATTR_LANGUAGE_TAG, COL_LANGUAGE_TAG
-
-
Constructor Summary
Constructors Constructor Description ALocalization()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcopyBasics(ALocalization<TBase> clone)TBasegetBaseEntity()Gets the entity for which this localization is intended.StringgetI18nName()Gets the i18n nameStringgetI18nValue()Gets the i18n valueLocalizationIdgetId()StringgetLanguageTag()Gets the language this database object is localized for in form of its language tag.voidsetBaseEntity(TBase baseEntity)Sets the entity for which this localization is intended.voidsetI18nName(String i18nName)Sets the i18n namevoidsetI18nValue(String i18nValue)Sets the i18n valuevoidsetId(LocalizationId id)voidsetLanguageTag(String languageTag)Sets the tag of the language this database object is localized for.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.entities.interfaces.i18n.ILocalizedDatabaseObject
getLocale, setLocale
-
-
-
-
Method Detail
-
getId
public LocalizationId getId()
-
setId
public void setId(LocalizationId id)
-
getBaseEntity
public TBase getBaseEntity()
Description copied from interface:ILocalizationGets the entity for which this localization is intended.- Specified by:
getBaseEntityin interfaceILocalization<TBase extends de.xima.cmn.dao.interfaces.IEntity<Long>>- Returns:
- the base entity
-
setBaseEntity
public void setBaseEntity(TBase baseEntity)
Description copied from interface:ILocalizationSets the entity for which this localization is intended.- Specified by:
setBaseEntityin interfaceILocalization<TBase extends de.xima.cmn.dao.interfaces.IEntity<Long>>- Parameters:
baseEntity- the base entity to set
-
getLanguageTag
public String getLanguageTag()
Description copied from interface:ILocalizedDatabaseObjectGets the language this database object is localized for in form of its language tag.- Specified by:
getLanguageTagin interfaceILocalizedDatabaseObject- Returns:
- the language tag
-
setLanguageTag
public void setLanguageTag(String languageTag)
Description copied from interface:ILocalizedDatabaseObjectSets the tag of the language this database object is localized for.- Specified by:
setLanguageTagin interfaceILocalizedDatabaseObject- Parameters:
languageTag- the language tag to set
-
getI18nName
public String getI18nName()
Description copied from interface:ILocalizationGets the i18n name- Specified by:
getI18nNamein interfaceILocalization<TBase extends de.xima.cmn.dao.interfaces.IEntity<Long>>- Returns:
- the i18n name
-
setI18nName
public void setI18nName(String i18nName)
Description copied from interface:ILocalizationSets the i18n name- Specified by:
setI18nNamein interfaceILocalization<TBase extends de.xima.cmn.dao.interfaces.IEntity<Long>>- Parameters:
i18nName- the i18n name to set
-
getI18nValue
public String getI18nValue()
Description copied from interface:ILocalizationGets the i18n value- Specified by:
getI18nValuein interfaceILocalization<TBase extends de.xima.cmn.dao.interfaces.IEntity<Long>>- Returns:
- the i18n value
-
setI18nValue
public void setI18nValue(String i18nValue)
Description copied from interface:ILocalizationSets the i18n value- Specified by:
setI18nValuein interfaceILocalization<TBase extends de.xima.cmn.dao.interfaces.IEntity<Long>>- Parameters:
i18nValue- the i18n value to set
-
copyBasics
protected void copyBasics(ALocalization<TBase> clone)
-
-