Interface Wishlist2Dao
-
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultWishlist2Dao
public interface Wishlist2Dao extends Dao
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<Wishlist2Model>findAllWishlists(UserModel user)Retrieves all wishlists of the specificUserModelWishlist2ModelfindDefaultWishlist(UserModel user)Retrieves the default wishlist of the specificUserModeljava.util.List<Wishlist2EntryModel>findWishlistEntryByProduct(ProductModel product, Wishlist2Model wishlist)Retrieves all wishlist entries which contain the given product from the specific wishlist
-
-
-
Method Detail
-
findAllWishlists
java.util.List<Wishlist2Model> findAllWishlists(UserModel user)
Retrieves all wishlists of the specificUserModel- Parameters:
user- the owner of the wishlists- Returns:
- all found wishlists
-
findDefaultWishlist
Wishlist2Model findDefaultWishlist(UserModel user)
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
java.util.List<Wishlist2EntryModel> findWishlistEntryByProduct(ProductModel product, Wishlist2Model wishlist)
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
-
-