public class LabelDao extends Object implements IDataProviderDao<StringLabel>
StringLabel
Modifier and Type | Field and Description |
---|---|
static String |
APP_RESOURCES |
static String |
APP_RESOURCES_EN |
static Set<String> |
keys |
static ConcurrentHashMap<Locale,List<StringLabel>> |
labelCache |
static LinkedHashMap<Long,Locale> |
languages |
Constructor and Description |
---|
LabelDao() |
Modifier and Type | Method and Description |
---|---|
static void |
add(Locale l) |
long |
count()
Count the number of instances of
T |
long |
count(Locale l,
String search) |
long |
count(String search)
Count the number of instances of
T |
static void |
delete(Locale l) |
void |
delete(Locale l,
StringLabel entity) |
void |
delete(StringLabel entity,
Long userId)
Delete an instance of
T |
List<StringLabel> |
get(int start,
int count)
Get a list of instances of
T |
List<StringLabel> |
get(Locale l,
String search,
int start,
int count,
org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> sort) |
StringLabel |
get(Long id)
Get an instance of an
T |
List<StringLabel> |
get(String search,
int start,
int count,
String order)
Get a list of instances of
T |
static IApplication |
getApp(long langId) |
static String |
getLabelFileName(Locale l) |
String |
getString(long fieldValuesId,
long langId) |
String |
getString(String key,
long langId) |
List<Map<String,Object>> |
getStrings(Long language_id,
int start,
int count) |
static void |
initLanguageMap() |
StringLabel |
update(Locale l,
StringLabel entity) |
StringLabel |
update(StringLabel entity,
Long userId)
Update an instance of
T |
static void |
upload(Locale l,
InputStream is) |
public static final String APP_RESOURCES_EN
public static final String APP_RESOURCES
public static final LinkedHashMap<Long,Locale> languages
public static final ConcurrentHashMap<Locale,List<StringLabel>> labelCache
public static IApplication getApp(long langId)
public String getString(long fieldValuesId, long langId)
public static void initLanguageMap()
public static void upload(Locale l, InputStream is) throws Exception
Exception
public StringLabel get(Long id)
IDataProviderDao
T
get
in interface IDataProviderDao<StringLabel>
id
- - id of instance to retrievepublic List<StringLabel> get(int start, int count)
IDataProviderDao
T
get
in interface IDataProviderDao<StringLabel>
start
- - the start to range to retrievecount
- - maximum instance count to retrievepublic List<StringLabel> get(String search, int start, int count, String order)
IDataProviderDao
T
get
in interface IDataProviderDao<StringLabel>
search
- - string search criteria to filter entitiesstart
- - the start to range to retrievecount
- - maximum instance count to retrieveorder
- - column and sort orderpublic List<StringLabel> get(Locale l, String search, int start, int count, org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> sort)
public long count()
IDataProviderDao
T
count
in interface IDataProviderDao<StringLabel>
public long count(String search)
IDataProviderDao
T
count
in interface IDataProviderDao<StringLabel>
search
- - string search criteria to filter entitiespublic StringLabel update(StringLabel entity, Long userId)
IDataProviderDao
T
update
in interface IDataProviderDao<StringLabel>
entity
- - entity to be updateduserId
- - user performed updatepublic StringLabel update(Locale l, StringLabel entity) throws Exception
Exception
public void delete(StringLabel entity, Long userId)
IDataProviderDao
T
delete
in interface IDataProviderDao<StringLabel>
entity
- - entity to be deleteduserId
- - user performed deletepublic void delete(Locale l, StringLabel entity) throws Exception
Exception
public static void delete(Locale l)
Copyright © 2012–2016 Apache Software Foundation. All rights reserved.