@ Override public CommerceShippingFixedOption remove ( Serializable primaryKey ) throws NoSuchShippingFixedOptionException { Session session = null ; try { session = openSession ( ) ; CommerceShippingFixedOption commerceShippingFixedOption = ( CommerceShippingFixedOption ) session . get ( CommerceShippingFixedOptionImpl . class , primaryKey ) ; if ( commerceShippingFixedOption == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchShippingFixedOptionException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return remove ( commerceShippingFixedOption ) ; } catch ( NoSuchShippingFixedOptionException nsee ) { throw nsee ; } catch ( Exception e ) { throw processException ( e ) ; } finally { closeSession ( session ) ; } }
Removes the commerce shipping fixed option with the primary key from the database . Also notifies the appropriate model listeners .