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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidlongcount()Count the number of instances ofIDataProviderDaolongCount the number of instances ofIDataProviderDaostatic longstatic voidstatic voiddelete(Locale l, StringLabel entity) voiddelete(StringLabel entity, Long userId) Delete an instance ofIDataProviderDaoget(long id) get(long start, long count) Get a list of instances ofIDataProviderDaoGet an instance of anIDataProviderDaoget(String search, long start, long count, org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> order) Get a list of instances ofIDataProviderDaostatic List<StringLabel>get(Locale l, String search, long start, long count, org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> sort) static Stringstatic OmLanguagegetLanguage(Long id) static LonggetLanguage(Locale loc, Long def) static Localestatic OmLanguagegetOmLanguage(Locale loc, Long def) static Stringstatic voidstatic StringLabelupdate(Locale l, StringLabel entity) update(StringLabel entity, Long userId) Update an instance ofIDataProviderDaostatic voidupload(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:
getin interfaceIDataProviderDao<StringLabel>
-
get
Description copied from interface:IDataProviderDaoGet an instance of anIDataProviderDao- Specified by:
getin interfaceIDataProviderDao<StringLabel>- Parameters:
id- - id of instance to retrieve- Returns:
- instance with the id gived
-
get
Description copied from interface:IDataProviderDaoGet a list of instances ofIDataProviderDao- Specified by:
getin 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:IDataProviderDaoGet a list of instances ofIDataProviderDao- Specified by:
getin 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:IDataProviderDaoCount the number of instances ofIDataProviderDao- Specified by:
countin interfaceIDataProviderDao<StringLabel>- Returns:
- count of instances
-
count
Description copied from interface:IDataProviderDaoCount the number of instances ofIDataProviderDao- Specified by:
countin interfaceIDataProviderDao<StringLabel>- Parameters:
search- - string search criteria to filter entities- Returns:
- count of instances satisfying given search criteria
-
count
-
update
Description copied from interface:IDataProviderDaoUpdate an instance ofIDataProviderDao- Specified by:
updatein interfaceIDataProviderDao<StringLabel>- Parameters:
entity- - entity to be updateduserId- - user performed update- Returns:
- - updated entity
-
update
- Throws:
Exception
-
delete
Description copied from interface:IDataProviderDaoDelete an instance ofIDataProviderDao- Specified by:
deletein interfaceIDataProviderDao<StringLabel>- Parameters:
entity- - entity to be deleteduserId- - user performed delete
-
delete
- Throws:
Exception
-
delete
-