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 String
ATTR_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 void
copyBasics(ALocalization<TBase> clone)
TBase
getBaseEntity()
Gets the entity for which this localization is intended.String
getData()
Gets the localized data.LocalizationId
getId()
String
getKey()
Gets the key for this localized database object.String
getLanguageTag()
Gets the language this database object is localized for in form of its language tag.boolean
isPersisted()
void
setBaseEntity(TBase baseEntity)
Sets the entity for which this localization is intended.void
setData(String data)
Sets the localized data.void
setId(LocalizationId id)
void
setKey(String i18nName)
Sets the key for this localization.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
-
-
-
-
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:ILocalization
Gets the entity for which this localization is intended.- Specified by:
getBaseEntity
in 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:ILocalization
Sets the entity for which this localization is intended.- Specified by:
setBaseEntity
in 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:ILocalizedDatabaseObject
Gets the language this database object is localized for in form of its language tag.- Specified by:
getLanguageTag
in interfaceILocalizedDatabaseObject<String,LocalizationId>
- 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<String,LocalizationId>
- Parameters:
languageTag
- the language tag to set
-
getKey
public String getKey()
Description copied from interface:IScopedLocalizedDatabaseObject
Gets the key for this localized database object. The key is used to identify the localized database object.- Specified by:
getKey
in interfaceIScopedLocalizedDatabaseObject<String,LocalizationId>
- Returns:
- the key for this localized database object
-
setKey
public void setKey(String i18nName)
Description copied from interface:ILocalization
Sets the key for this localization. The key is used to identify the localization.- Specified by:
setKey
in 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:ILocalizedDatabaseObject
Gets the localized data.- Specified by:
getData
in interfaceILocalizedDatabaseObject<String,LocalizationId>
- Returns:
- the localized data
-
isPersisted
public boolean isPersisted()
-
setData
public void setData(String data)
Description copied from interface:ILocalization
Sets the localized data.- Specified by:
setData
in interfaceILocalization<TBase extends de.xima.cmn.dao.interfaces.IEntity<Long>,LocalizationId>
- Parameters:
data
- the data to set
-
copyBasics
protected void copyBasics(ALocalization<TBase> clone)
-
-