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