@Override
	public CommerceOrderPayment findByPrimaryKey(Serializable primaryKey)
		throws NoSuchOrderPaymentException {
		CommerceOrderPayment commerceOrderPayment = fetchByPrimaryKey(primaryKey);

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

			throw new NoSuchOrderPaymentException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
				primaryKey);
		}

		return commerceOrderPayment;
	}
@ Override public CommerceOrderPayment findByPrimaryKey ( Serializable primaryKey ) throws NoSuchOrderPaymentException { CommerceOrderPayment commerceOrderPayment = fetchByPrimaryKey ( primaryKey ) ; if ( commerceOrderPayment == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchOrderPaymentException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return commerceOrderPayment ; }
Returns the commerce order payment with the primary key or throws a {@link com.liferay.portal.kernel.exception.NoSuchModelException} if it could not be found.

@param primaryKey the primary key of the commerce order payment
@return the commerce order payment
@throws NoSuchOrderPaymentException if a commerce order payment with the primary key could not be found