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:
-
Field Summary
FieldsFields inherited from interface ILocalization
ATTR_DATA, ATTR_ENTITY, ATTR_KEY, COL_DATA, COL_ENTITY_ID, COL_KEYFields inherited from interface ILocalizedDatabaseObject
ATTR_LANGUAGE_TAG, COL_LANGUAGE_TAG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcopyBasics(ALocalization<TBase> clone) Gets the entity for which this localization is intended.getData()Gets the localized data.getId()getKey()Gets the key for this localized database object.Gets the language this database object is localized for in form of its language tag.booleanvoidsetBaseEntity(TBase baseEntity) Sets the entity for which this localization is intended.voidSets the localized data.voidsetId(LocalizationId id) voidSets the key for this localization.voidsetLanguageTag(String languageTag) Sets the tag of the language this database object is localized for.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ILocalizedDatabaseObject
getLocale, setLocale
-
Field Details
-
ATTR_ID
- See Also:
-
-
Constructor Details
-
ALocalization
public ALocalization()
-
-
Method Details
-
getId
-
setId
-
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
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
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
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
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
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
Description copied from interface:ILocalizedDatabaseObjectGets the localized data.- Specified by:
getDatain interfaceILocalizedDatabaseObject<String, LocalizationId>- Returns:
- the localized data
-
isPersisted
public boolean isPersisted() -
setData
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
-