Interface IRatingDAO
- All Known Implementing Classes:
RatingDAO
public interface IRatingDAO
IRatingDAO.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete.voiddeleteByIdExtenderHistory(long nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete By Id extender History.voiddeleteByListExtenderHistory(List<Long> listIdExtenderHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete By list Id extender History.voiddeleteByResource(String strIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete by resourcefindByHistoryExtenderId(long lIdHistoryExtenderId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find aRatingfindByHistoryExtenderIds(List<Long> lIdHistoryExtenderId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find a listRatingfindByResourceAndRatingType(List<String> listExtendableResource, String strExtendableResourceType, String ratingType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find a listRatingvoidInsert.load(int nIdRating, fr.paris.lutece.portal.service.plugin.Plugin plugin) load by primary keyload(String strIdExtendableResource, String strExtendableResourceType, String ratingType, double value, String userGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin) load by primary keyloadByResource(String strIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Select by resource.selectRatingByFilter(RatingExtenderFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin) float[]selectRatingValue(List<String> listIdResource, String strExtendableResourceType, String strRatingType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
-
Method Details
-
delete
void delete(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete.- Parameters:
nId- the n id ratingplugin- the plugin
-
deleteByIdExtenderHistory
void deleteByIdExtenderHistory(long nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete By Id extender History.- Parameters:
nId- the Id extender Historyplugin- the plugin
-
deleteByListExtenderHistory
void deleteByListExtenderHistory(List<Long> listIdExtenderHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete By list Id extender History.- Parameters:
listIdExtenderHistory- the list Id extender Historyplugin- the plugin
-
deleteByResource
void deleteByResource(String strIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete by resource- Parameters:
strIdExtendableResource- the Extendable resource idstrExtendableResourceType- the Extendable Resourcer typeplugin- the plugin
-
insert
Insert.- Parameters:
rating- the ratingplugin- the plugin
-
load
load by primary key- Parameters:
nIdRating- the rating idplugin- the plugin- Returns:
- the corresponding
Rating
-
load
Optional<Rating> load(String strIdExtendableResource, String strExtendableResourceType, String ratingType, double value, String userGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin) load by primary key- Parameters:
strIdExtendableResource- the str id extendable resourcestrExtendableResourceType- the str extendable resource typeratingType- the rating typevalue- the rating valueplugin- the plugin- Returns:
- the rating
-
loadByResource
List<Rating> loadByResource(String strIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Select by resource.- Parameters:
strIdExtendableResource- the str id extendable resourcestrExtendableResourceType- the str extendable resource typeplugin- the plugin- Returns:
- the rating list
-
findByHistoryExtenderId
Rating findByHistoryExtenderId(long lIdHistoryExtenderId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find aRating- Parameters:
lIdHistoryExtenderId- the extender idplugin- the plugin- Returns:
- the corresponding
Rating
-
findByResourceAndRatingType
List<Rating> findByResourceAndRatingType(List<String> listExtendableResource, String strExtendableResourceType, String ratingType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find a listRating- Parameters:
listExtendableResource- the list of extender resource idstrExtendableResourceType- the str extendable resource typeratingType- the rating typeplugin- the plugin- Returns:
- the corresponding list
Rating
-
findByHistoryExtenderIds
List<Rating> findByHistoryExtenderIds(List<Long> lIdHistoryExtenderId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find a listRating- Parameters:
lIdHistoryExtenderId- the list of extender idplugin- the plugin- Returns:
- the corresponding list
Rating
-
selectRatingValue
-
selectRatingByFilter
List<Rating> selectRatingByFilter(RatingExtenderFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
-