|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.common.i18n.dao.TranslationDaoImpl
@Repository(value="blTranslationDao") public class TranslationDaoImpl
| Field Summary | |
|---|---|
protected DynamicDaoHelper |
dynamicDaoHelper
|
protected javax.persistence.EntityManager |
em
|
protected EntityConfiguration |
entityConfiguration
|
| Constructor Summary | |
|---|---|
TranslationDaoImpl()
|
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.persistence.EntityManager em
protected EntityConfiguration entityConfiguration
protected DynamicDaoHelper dynamicDaoHelper
| Constructor Detail |
|---|
public TranslationDaoImpl()
| Method Detail |
|---|
public Translation save(Translation translation)
TranslationDao
save in interface TranslationDaopublic Translation create()
TranslationDao
create in interface TranslationDaopublic void delete(Translation translation)
TranslationDao
delete in interface TranslationDaopublic Map<String,Object> getIdPropertyMetadata(TranslatedEntity entity)
TranslationDao
getIdPropertyMetadata in interface TranslationDaopublic Translation readTranslationById(Long translationId)
TranslationDao
readTranslationById in interface TranslationDao
public List<Translation> readTranslations(TranslatedEntity entity,
String entityId,
String fieldName)
TranslationDao
readTranslations in interface TranslationDao
public Translation readTranslation(TranslatedEntity entity,
String entityId,
String fieldName,
String localeCode)
TranslationDao
readTranslation in interface TranslationDao
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||