@Override
	public CommerceUserSegmentEntry findByPrimaryKey(Serializable primaryKey)
		throws NoSuchUserSegmentEntryException {
		CommerceUserSegmentEntry commerceUserSegmentEntry = fetchByPrimaryKey(primaryKey);

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

			throw new NoSuchUserSegmentEntryException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
				primaryKey);
		}

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