Interface IRatingDAO
-
- All Known Implementing Classes:
RatingDAO
public interface IRatingDAOIRatingDAO.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(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 resourceRatingfindByHistoryExtenderId(long lIdHistoryExtenderId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find aRatingList<Rating>findByHistoryExtenderIds(List<Long> lIdHistoryExtenderId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find a listRatingList<Rating>findByResourceAndRatingType(List<String> listExtendableResource, String strExtendableResourceType, String ratingType, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find a listRatingvoidinsert(Rating rating, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert.Optional<Rating>load(int nIdRating, fr.paris.lutece.portal.service.plugin.Plugin plugin)load by primary keyOptional<Rating>load(String strIdExtendableResource, String strExtendableResourceType, String ratingType, double value, String userGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)load by primary keyList<Rating>loadByResource(String strIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)Select by resource.List<Rating>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 Detail
-
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
void insert(Rating rating, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert.- Parameters:
rating- the ratingplugin- the plugin
-
load
Optional<Rating> load(int nIdRating, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
float[] selectRatingValue(List<String> listIdResource, String strExtendableResourceType, String strRatingType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
-
selectRatingByFilter
List<Rating> selectRatingByFilter(RatingExtenderFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
-
-