Class LabelDao
java.lang.Object
org.apache.openmeetings.db.dao.label.LabelDao
- All Implemented Interfaces:
IDataProviderDao<StringLabel>
CRUD operations for
StringLabel
- Author:
- swagner
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
long
count()
Count the number of instances ofIDataProviderDao
long
Count the number of instances ofIDataProviderDao
static long
static void
static void
delete
(Locale l, StringLabel entity) void
delete
(StringLabel entity, Long userId) Delete an instance ofIDataProviderDao
get
(long id) get
(long start, long count) Get a list of instances ofIDataProviderDao
Get an instance of anIDataProviderDao
get
(String search, long start, long count, org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> order) Get a list of instances ofIDataProviderDao
static List<StringLabel>
get
(Locale l, String search, long start, long count, org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> sort) static String
static OmLanguage
getLanguage
(Long id) static Long
getLanguage
(Locale loc, Long def) static Locale
static OmLanguage
getOmLanguage
(Locale loc, Long def) static String
static void
static StringLabel
update
(Locale l, StringLabel entity) update
(StringLabel entity, Long userId) Update an instance ofIDataProviderDao
static void
upload
(Locale l, InputStream is)
-
Field Details
-
ENTRY_ELEMENT
- See Also:
-
KEY_ATTR
- See Also:
-
APP_RESOURCES_PREFIX
- See Also:
-
APP_RESOURCES_SUFFIX
- See Also:
-
-
Constructor Details
-
LabelDao
public LabelDao()
-
-
Method Details
-
add
- Throws:
Exception
-
getString
-
initLanguageMap
public static void initLanguageMap() -
getLabelFileName
-
upload
- Throws:
Exception
-
get
- Specified by:
get
in interfaceIDataProviderDao<StringLabel>
-
get
Description copied from interface:IDataProviderDao
Get an instance of anIDataProviderDao
- Specified by:
get
in interfaceIDataProviderDao<StringLabel>
- Parameters:
id
- - id of instance to retrieve- Returns:
- instance with the id gived
-
get
Description copied from interface:IDataProviderDao
Get a list of instances ofIDataProviderDao
- Specified by:
get
in interfaceIDataProviderDao<StringLabel>
- Parameters:
start
- - the start to range to retrievecount
- - maximum instance count to retrieve- Returns:
- list of instances in the range specified
-
get
public List<StringLabel> get(String search, long start, long count, org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> order) Description copied from interface:IDataProviderDao
Get a list of instances ofIDataProviderDao
- Specified by:
get
in interfaceIDataProviderDao<StringLabel>
- Parameters:
search
- - string search criteria to filter entitiesstart
- - the start to range to retrievecount
- - maximum instance count to retrieveorder
- - column and sort order- Returns:
- list of instances in the range specified
-
getLanguage
-
getLocale
-
getOmLanguage
-
getLanguage
-
getLanguages
-
get
public static List<StringLabel> get(Locale l, String search, long start, long count, org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> sort) -
count
public long count()Description copied from interface:IDataProviderDao
Count the number of instances ofIDataProviderDao
- Specified by:
count
in interfaceIDataProviderDao<StringLabel>
- Returns:
- count of instances
-
count
Description copied from interface:IDataProviderDao
Count the number of instances ofIDataProviderDao
- Specified by:
count
in interfaceIDataProviderDao<StringLabel>
- Parameters:
search
- - string search criteria to filter entities- Returns:
- count of instances satisfying given search criteria
-
count
-
update
Description copied from interface:IDataProviderDao
Update an instance ofIDataProviderDao
- Specified by:
update
in interfaceIDataProviderDao<StringLabel>
- Parameters:
entity
- - entity to be updateduserId
- - user performed update- Returns:
- - updated entity
-
update
- Throws:
Exception
-
delete
Description copied from interface:IDataProviderDao
Delete an instance ofIDataProviderDao
- Specified by:
delete
in interfaceIDataProviderDao<StringLabel>
- Parameters:
entity
- - entity to be deleteduserId
- - user performed delete
-
delete
- Throws:
Exception
-
delete
-