|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TranslationDao
Provides data access for the Translation entity.
| Method Summary | |
|---|---|
Translation |
create()
Creates an empty translation instance that is not persisted to the database |
void |
delete(Translation translation)
Deletes the given translation |
Map<String,Object> |
getIdPropertyMetadata(TranslatedEntity entity)
Returns a map that holds the following data for the given entity: "name" --> idProperty (the name of the id property, always a String) "type" --> idProperty's type (usually either Long or String) |
Translation |
readTranslation(TranslatedEntity entity,
String entityId,
String fieldName,
String localeCode)
Reads a translation for the requested parameters. |
Translation |
readTranslationById(Long translationId)
Reads a translation by its own primary key |
List<Translation> |
readTranslations(TranslatedEntity entity,
String entityId,
String fieldName)
Reads all translations for a given field |
Translation |
save(Translation translation)
Persists the given translation |
| Method Detail |
|---|
Translation save(Translation translation)
translation -
Translation create()
void delete(Translation translation)
translation - Map<String,Object> getIdPropertyMetadata(TranslatedEntity entity)
entity -
Translation readTranslationById(Long translationId)
translationId -
List<Translation> readTranslations(TranslatedEntity entity,
String entityId,
String fieldName)
entity - entityId - fieldName -
Translation readTranslation(TranslatedEntity entity,
String entityId,
String fieldName,
String localeCode)
entity - entityId - fieldName - localeCode -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||