public class LanguageDAO extends Object
Modifier and Type | Method and Description |
---|---|
static void |
create(Language lang)
Create language in database
|
static void |
delete(String id)
Delete
|
static List<Language> |
findAll()
Find all languages
|
static Language |
findByPk(String id)
Find translations by pk
|
static Set<Translation> |
findTransAll(String langId)
Get all language translations
|
static String |
getTranslation(String lang,
String module,
String key)
Get translation
|
static void |
normalizeTranslation(Language language)
Normalize translation
|
static void |
refresh()
Refresh 2nd level cache
|
static void |
update(Language lang)
Update language in database
|
public static Language findByPk(String id) throws DatabaseException
DatabaseException
public static List<Language> findAll() throws DatabaseException
DatabaseException
public static void refresh() throws DatabaseException
DatabaseException
public static void delete(String id) throws DatabaseException
DatabaseException
public static void update(Language lang) throws DatabaseException
DatabaseException
public static void create(Language lang) throws DatabaseException
DatabaseException
public static Set<Translation> findTransAll(String langId) throws DatabaseException
DatabaseException
public static String getTranslation(String lang, String module, String key) throws DatabaseException
DatabaseException
public static void normalizeTranslation(Language language) throws DatabaseException
DatabaseException
Copyright © 2017 Open Knowledge Management System S.L.. All rights reserved.