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