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 void
copyBasics(ALocalization<TBase> clone)
TBase
getBaseEntity()
Gets the entity for which this localization is intended.String
getI18nName()
Gets the i18n nameString
getI18nValue()
Gets the i18n valueLocalizationId
getId()
String
getLanguageTag()
Gets the language this database object is localized for in form of its language tag.void
setBaseEntity(TBase baseEntity)
Sets the entity for which this localization is intended.void
setI18nName(String i18nName)
Sets the i18n namevoid
setI18nValue(String i18nValue)
Sets the i18n valuevoid
setId(LocalizationId id)
void
setLanguageTag(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:ILocalization
Gets the entity for which this localization is intended.- Specified by:
getBaseEntity
in interfaceILocalization<TBase extends de.xima.cmn.dao.interfaces.IEntity<Long>>
- Returns:
- the base entity
-
setBaseEntity
public void setBaseEntity(TBase baseEntity)
Description copied from interface:ILocalization
Sets the entity for which this localization is intended.- Specified by:
setBaseEntity
in 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:ILocalizedDatabaseObject
Gets the language this database object is localized for in form of its language tag.- Specified by:
getLanguageTag
in interfaceILocalizedDatabaseObject
- Returns:
- the language tag
-
setLanguageTag
public void setLanguageTag(String languageTag)
Description copied from interface:ILocalizedDatabaseObject
Sets the tag of the language this database object is localized for.- Specified by:
setLanguageTag
in interfaceILocalizedDatabaseObject
- Parameters:
languageTag
- the language tag to set
-
getI18nName
public String getI18nName()
Description copied from interface:ILocalization
Gets the i18n name- Specified by:
getI18nName
in interfaceILocalization<TBase extends de.xima.cmn.dao.interfaces.IEntity<Long>>
- Returns:
- the i18n name
-
setI18nName
public void setI18nName(String i18nName)
Description copied from interface:ILocalization
Sets the i18n name- Specified by:
setI18nName
in 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:ILocalization
Gets the i18n value- Specified by:
getI18nValue
in interfaceILocalization<TBase extends de.xima.cmn.dao.interfaces.IEntity<Long>>
- Returns:
- the i18n value
-
setI18nValue
public void setI18nValue(String i18nValue)
Description copied from interface:ILocalization
Sets the i18n value- Specified by:
setI18nValue
in interfaceILocalization<TBase extends de.xima.cmn.dao.interfaces.IEntity<Long>>
- Parameters:
i18nValue
- the i18n value to set
-
copyBasics
protected void copyBasics(ALocalization<TBase> clone)
-
-