@ Override public CommerceWishList remove ( Serializable primaryKey ) throws NoSuchWishListException { Session session = null ; try { session = openSession ( ) ; CommerceWishList commerceWishList = ( CommerceWishList ) session . get ( CommerceWishListImpl . class , primaryKey ) ; if ( commerceWishList == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchWishListException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return remove ( commerceWishList ) ; } catch ( NoSuchWishListException nsee ) { throw nsee ; } catch ( Exception e ) { throw processException ( e ) ; } finally { closeSession ( session ) ; } }
Removes the commerce wish list with the primary key from the database . Also notifies the appropriate model listeners .