@Override
	public CommerceNotificationTemplateUserSegmentRel findByPrimaryKey(
		Serializable primaryKey)
		throws NoSuchNotificationTemplateUserSegmentRelException {
		CommerceNotificationTemplateUserSegmentRel commerceNotificationTemplateUserSegmentRel =
			fetchByPrimaryKey(primaryKey);

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

			throw new NoSuchNotificationTemplateUserSegmentRelException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
				primaryKey);
		}

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