Interface DataTranslationHandler
-
- All Known Implementing Classes:
DataTranslationHandlerImpl
public interface DataTranslationHandlerHandler class used to access data translations
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddToStorage(DataTranslation translation)Adds to the data translation storage the given data translation.StringgetName(NamedEntity entity)Returns the customized translation (or default value) for the name property of the given given entity, on the current languageStringgetName(Language language, NamedEntity entity)Returns the customized translation (or default value) for the name property of the given given entity, on the given languageStringgetValue(BaseEntity entity, com.querydsl.core.types.dsl.StringPath path)Returns the customized translation (or default value) for the given property of the given given entity, on the current languageStringgetValue(BaseEntity entity, String propertyName, boolean fallbackToDefault)Same asgetValue(Language, BaseEntity, String, boolean)but for the current languageStringgetValue(Language language, BaseEntity entity, com.querydsl.core.types.dsl.StringPath path)Returns the customized translation (or default value) for the given property of the given given entity, on the given languageStringgetValue(Language language, BaseEntity entity, String propertyName, boolean fallbackToDefault)Returns the customized translation for the given property of the given entity on the given language, optionally returning the default property value (if fallbackToDefault is true and there is no such translation)voidremoveFromStorage(DataTranslation translation)Removes from the data translation storage the given data translation.
-
-
-
Method Detail
-
addToStorage
void addToStorage(DataTranslation translation)
Adds to the data translation storage the given data translation.
-
getName
String getName(Language language, NamedEntity entity) throws FrameworkException
Returns the customized translation (or default value) for the name property of the given given entity, on the given language- Throws:
FrameworkException
-
getName
String getName(NamedEntity entity) throws FrameworkException
Returns the customized translation (or default value) for the name property of the given given entity, on the current language- Throws:
FrameworkException
-
getValue
String getValue(BaseEntity entity, String propertyName, boolean fallbackToDefault)
Same asgetValue(Language, BaseEntity, String, boolean)but for the current language
-
getValue
String getValue(BaseEntity entity, com.querydsl.core.types.dsl.StringPath path) throws FrameworkException
Returns the customized translation (or default value) for the given property of the given given entity, on the current language- Throws:
FrameworkException
-
getValue
String getValue(Language language, BaseEntity entity, String propertyName, boolean fallbackToDefault)
Returns the customized translation for the given property of the given entity on the given language, optionally returning the default property value (if fallbackToDefault is true and there is no such translation)
-
getValue
String getValue(Language language, BaseEntity entity, com.querydsl.core.types.dsl.StringPath path) throws FrameworkException
Returns the customized translation (or default value) for the given property of the given given entity, on the given language- Throws:
FrameworkException
-
removeFromStorage
void removeFromStorage(DataTranslation translation)
Removes from the data translation storage the given data translation.
-
-