public interface LocaleDAO
| Modifier and Type | Method and Description |
|---|---|
Pair<Long,Locale> |
getDefaultLocalePair() |
Pair<Long,Locale> |
getLocalePair(Locale locale) |
Pair<Long,Locale> |
getLocalePair(Long id) |
Pair<Long,Locale> |
getOrCreateDefaultLocalePair()
Find or create the details representing the default locale.
|
Pair<Long,Locale> |
getOrCreateLocalePair(Locale locale)
Gets the locale ID for an existing instance or creates a new entity if
one doesn't exist.
|
Pair<Long,Locale> getLocalePair(Long id)
id - the unique ID of the entityorg.springframework.dao.DataIntegrityViolationException - if the ID provided is invalidPair<Long,Locale> getLocalePair(Locale locale)
locale - the locale to fetch or null to get the default localePair<Long,Locale> getDefaultLocalePair()
Pair<Long,Locale> getOrCreateLocalePair(Locale locale)
locale - the locale to fetch or null to get or create the default locale.Pair<Long,Locale> getOrCreateDefaultLocalePair()
Copyright © 2005–2021 Alfresco Software. All rights reserved.