Package de.xima.fc.entities.common.i18n
Class LocalizationId
- java.lang.Object
-
- de.xima.fc.entities.common.i18n.LocalizationId
-
- All Implemented Interfaces:
Serializable
@Embeddable public class LocalizationId extends Object implements Serializable
Composite, embeddable ID class forentity localizations
.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTR_ENTITY_ID
-
Constructor Summary
Constructors Constructor Description LocalizationId()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalizationId
cloneBasics()
boolean
equals(Object o)
Long
getEntityId()
String
getI18nName()
String
getLanguageTag()
int
hashCode()
static <TBase extends de.xima.cmn.dao.interfaces.IEntity<Long>>
LocalizationIdofLocalization(ILocalization<TBase> localization)
Creates a newLocalizationId
with the data from the givenILocalization
.void
setEntityId(Long entityId)
void
setI18nName(String i18nName)
void
setLanguageTag(String languageTag)
-
-
-
Field Detail
-
ATTR_ENTITY_ID
public static final String ATTR_ENTITY_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEntityId
public Long getEntityId()
-
setEntityId
public void setEntityId(Long entityId)
-
getLanguageTag
public String getLanguageTag()
-
setLanguageTag
public void setLanguageTag(String languageTag)
-
getI18nName
public String getI18nName()
-
setI18nName
public void setI18nName(String i18nName)
-
cloneBasics
public LocalizationId cloneBasics()
-
ofLocalization
public static <TBase extends de.xima.cmn.dao.interfaces.IEntity<Long>> LocalizationId ofLocalization(ILocalization<TBase> localization)
Creates a newLocalizationId
with the data from the givenILocalization
.- Type Parameters:
TBase
- The type of the base entity.- Parameters:
localization
- The localization to create the ID from.- Returns:
- The new ID.
-
-