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,LocalizationId>,ILocalizedDatabaseObject<String,LocalizationId>,IScopedLocalizedDatabaseObject<String,LocalizationId>,Serializable
- Direct Known Subclasses:
ClientAuthenticatorLocalization,EndUserStateLocalization,ProjectLocalization,ProjectPortalTagLocalization,SystemAuthenticatorLocalization,UserPortalLocalization
@MappedSuperclass public abstract class ALocalization<TBase extends de.xima.cmn.dao.interfaces.IEntity<Long>> extends Object implements ILocalization<TBase,LocalizationId>
Abstract base class for entity localizations- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_ID-
Fields inherited from interface de.xima.fc.entities.interfaces.i18n.ILocalization
ATTR_DATA, ATTR_ENTITY, ATTR_KEY, COL_DATA, COL_ENTITY_ID, COL_KEY
-
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.StringgetData()Gets the localized data.LocalizationIdgetId()StringgetKey()Gets the key for this localized database object.StringgetLanguageTag()Gets the language this database object is localized for in form of its language tag.booleanisPersisted()voidsetBaseEntity(TBase baseEntity)Sets the entity for which this localization is intended.voidsetData(String data)Sets the localized data.voidsetId(LocalizationId id)voidsetKey(String i18nName)Sets the key for this localization.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
-
-
-
-
Field Detail
-
ATTR_ID
public static final String ATTR_ID
- See Also:
- Constant Field Values
-
-
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>,LocalizationId>- 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>,LocalizationId>- 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<String,LocalizationId>- 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<String,LocalizationId>- Parameters:
languageTag- the language tag to set
-
getKey
public String getKey()
Description copied from interface:IScopedLocalizedDatabaseObjectGets the key for this localized database object. The key is used to identify the localized database object.- Specified by:
getKeyin interfaceIScopedLocalizedDatabaseObject<String,LocalizationId>- Returns:
- the key for this localized database object
-
setKey
public void setKey(String i18nName)
Description copied from interface:ILocalizationSets the key for this localization. The key is used to identify the localization.- Specified by:
setKeyin interfaceILocalization<TBase extends de.xima.cmn.dao.interfaces.IEntity<Long>,LocalizationId>- Parameters:
i18nName- the key to set
-
getData
public String getData()
Description copied from interface:ILocalizedDatabaseObjectGets the localized data.- Specified by:
getDatain interfaceILocalizedDatabaseObject<String,LocalizationId>- Returns:
- the localized data
-
isPersisted
public boolean isPersisted()
-
setData
public void setData(String data)
Description copied from interface:ILocalizationSets the localized data.- Specified by:
setDatain interfaceILocalization<TBase extends de.xima.cmn.dao.interfaces.IEntity<Long>,LocalizationId>- Parameters:
data- the data to set
-
copyBasics
protected void copyBasics(ALocalization<TBase> clone)
-
-