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(java.util.List<java.lang.Long> listIdExtenderHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete By list Id extender History.voiddeleteByResource(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete by resourceRatingfindByHistoryExtenderId(long lIdHistoryExtenderId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find aRatingjava.util.List<Rating>findByHistoryExtenderIds(java.util.List<java.lang.Long> lIdHistoryExtenderId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find a listRatingjava.util.List<Rating>findByResourceAndRatingType(java.util.List<java.lang.String> listExtendableResource, java.lang.String strExtendableResourceType, java.lang.String ratingType, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find a listRatingvoidinsert(Rating rating, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert.java.util.Optional<Rating>load(int nIdRating, fr.paris.lutece.portal.service.plugin.Plugin plugin)load by primary keyjava.util.Optional<Rating>load(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, java.lang.String ratingType, double value, java.lang.String userGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)load by primary keyjava.util.List<Rating>loadByResource(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)Select by resource.java.util.List<Rating>selectRatingByFilter(RatingExtenderFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)float[]selectRatingValue(java.util.List<java.lang.String> listIdResource, java.lang.String strExtendableResourceType, java.lang.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(java.util.List<java.lang.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(java.lang.String strIdExtendableResource, java.lang.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
java.util.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
java.util.Optional<Rating> load(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, java.lang.String ratingType, double value, java.lang.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
java.util.List<Rating> loadByResource(java.lang.String strIdExtendableResource, java.lang.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
java.util.List<Rating> findByResourceAndRatingType(java.util.List<java.lang.String> listExtendableResource, java.lang.String strExtendableResourceType, java.lang.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
java.util.List<Rating> findByHistoryExtenderIds(java.util.List<java.lang.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(java.util.List<java.lang.String> listIdResource, java.lang.String strExtendableResourceType, java.lang.String strRatingType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
-
selectRatingByFilter
java.util.List<Rating> selectRatingByFilter(RatingExtenderFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
-
-