@ Override public CommercePaymentMethodGroupRel remove ( Serializable primaryKey ) throws NoSuchPaymentMethodGroupRelException { Session session = null ; try { session = openSession ( ) ; CommercePaymentMethodGroupRel commercePaymentMethodGroupRel = ( CommercePaymentMethodGroupRel ) session . get ( CommercePaymentMethodGroupRelImpl . class , primaryKey ) ; if ( commercePaymentMethodGroupRel == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchPaymentMethodGroupRelException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return remove ( commercePaymentMethodGroupRel ) ; } catch ( NoSuchPaymentMethodGroupRelException nsee ) { throw nsee ; } catch ( Exception e ) { throw processException ( e ) ; } finally { closeSession ( session ) ; } }
Removes the commerce payment method group rel with the primary key from the database . Also notifies the appropriate model listeners .