Interface Wishlist2Dao
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultWishlist2Dao
-
Method Summary
Modifier and TypeMethodDescriptionfindAllWishlists(UserModel user) Retrieves all wishlists of the specificUserModelfindDefaultWishlist(UserModel user) Retrieves the default wishlist of the specificUserModelfindWishlistEntryByProduct(ProductModel product, Wishlist2Model wishlist) Retrieves all wishlist entries which contain the given product from the specific wishlist
-
Method Details
-
findAllWishlists
Retrieves all wishlists of the specificUserModel- Parameters:
user- the owner of the wishlists- Returns:
- all found wishlists
-
findDefaultWishlist
Retrieves the default wishlist of the specificUserModel- Parameters:
user- the owner of the default wishlist- Returns:
- the found wishlist, or null if no default wishlist can be found.
-
findWishlistEntryByProduct
Retrieves all wishlist entries which contain the given product from the specific wishlist- Parameters:
product- the product which is contained in the wishlist entry which needs to be foundwishlist- the wishlist which contains the wishlist entry- Returns:
- all found wishlist entries
-