Interface TranslationKey

    • Method Detail

      • getKey

        String getKey()
        Get the value for Key. (Key for looking up a translation.) This value is mandatory, and therefore will not be null if this object has been retrieved from the database.
        Returns:
        the field
        Throws:
        ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • setKey

        void setKey​(String newKey)
        Set the value for Key. (Key for looking up a translation.) This value is mandatory.
        Parameters:
        newKey - the new value for Key. If this is null, then the object cannot be persisted.
        Throws:
        ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • getTranslationByLanguage

        Translation getTranslationByLanguage​(Language language)
        Get the Translation by TranslationKeyLanguage.
        Parameters:
        language -
        Returns:
        the Translation, or null if it could not be found