@Override
	public CommerceTaxMethod remove(Serializable primaryKey)
		throws NoSuchTaxMethodException {
		Session session = null;

		try {
			session = openSession();

			CommerceTaxMethod commerceTaxMethod = (CommerceTaxMethod)session.get(CommerceTaxMethodImpl.class,
					primaryKey);

			if (commerceTaxMethod == null) {
				if (_log.isDebugEnabled()) {
					_log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);
				}

				throw new NoSuchTaxMethodException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
					primaryKey);
			}

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

@param primaryKey the primary key of the commerce tax method
@return the commerce tax method that was removed
@throws NoSuchTaxMethodException if a commerce tax method with the primary key could not be found