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