@Override
	public CommerceNotificationTemplate findByPrimaryKey(
		Serializable primaryKey) throws NoSuchNotificationTemplateException {
		CommerceNotificationTemplate commerceNotificationTemplate = fetchByPrimaryKey(primaryKey);

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

			throw new NoSuchNotificationTemplateException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
				primaryKey);
		}

		return commerceNotificationTemplate;
	}
@ Override public CommerceNotificationTemplate findByPrimaryKey ( Serializable primaryKey ) throws NoSuchNotificationTemplateException { CommerceNotificationTemplate commerceNotificationTemplate = fetchByPrimaryKey ( primaryKey ) ; if ( commerceNotificationTemplate == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchNotificationTemplateException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return commerceNotificationTemplate ; }
Returns the commerce notification template 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 notification template
@return the commerce notification template
@throws NoSuchNotificationTemplateException if a commerce notification template with the primary key could not be found