Class LocalizationId

java.lang.Object
de.xima.fc.entities.common.i18n.LocalizationId
All Implemented Interfaces:
Serializable, Comparable<LocalizationId>

@Embeddable public class LocalizationId extends Object implements Serializable, Comparable<LocalizationId>
Composite, embeddable ID class for entity localizations.
Since:
8.2.0
Author:
XIMA MEDIA GmbH
See Also:
  • Field Details

  • Constructor Details

    • LocalizationId

      public LocalizationId()
  • Method Details

    • compareTo

      public int compareTo(LocalizationId other)
      Specified by:
      compareTo in interface Comparable<LocalizationId>
    • getEntityId

      public Long getEntityId()
    • setEntityId

      public void setEntityId(Long entityId)
    • getLanguageTag

      public String getLanguageTag()
    • setLanguageTag

      public void setLanguageTag(String languageTag)
    • getKey

      public String getKey()
    • setKey

      public void setKey(String key)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • cloneBasics

      public LocalizationId cloneBasics()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • ofLocalization

      public static <TBase extends de.xima.cmn.dao.interfaces.IEntity<Long>> LocalizationId ofLocalization(ILocalization<TBase,?> localization)
      Creates a new LocalizationId with the data from the given ILocalization.
      Type Parameters:
      TBase - The type of the base entity.
      Parameters:
      localization - The localization to create the ID from.
      Returns:
      The new ID.