code: @Override
  	public CommerceUserSegmentCriterion fetchByPrimaryKey(
  		Serializable primaryKey) {
  		Serializable serializable = entityCache.getResult(CommerceUserSegmentCriterionModelImpl.ENTITY_CACHE_ENABLED,
  				CommerceUserSegmentCriterionImpl.class, primaryKey);
  
  		if (serializable == nullModel) {
  			return null;
  		}
  
  		CommerceUserSegmentCriterion commerceUserSegmentCriterion = (CommerceUserSegmentCriterion)serializable;
  
  		if (commerceUserSegmentCriterion == null) {
  			Session session = null;
  
  			try {
  				session = openSession();
  
  				commerceUserSegmentCriterion = (CommerceUserSegmentCriterion)session.get(CommerceUserSegmentCriterionImpl.class,
  						primaryKey);
  
  				if (commerceUserSegmentCriterion != null) {
  					cacheResult(commerceUserSegmentCriterion);
  				}
  				else {
  					entityCache.putResult(CommerceUserSegmentCriterionModelImpl.ENTITY_CACHE_ENABLED,
  						CommerceUserSegmentCriterionImpl.class, primaryKey,
  						nullModel);
  				}
  			}
  			catch (Exception e) {
  				entityCache.removeResult(CommerceUserSegmentCriterionModelImpl.ENTITY_CACHE_ENABLED,
  					CommerceUserSegmentCriterionImpl.class, primaryKey);
  
  				throw processException(e);
  			}
  			finally {
  				closeSession(session);
  			}
  		}
  
  		return commerceUserSegmentCriterion;
  	}
docs: Returns the commerce user segment criterion with the primary key or returns <code>null</code> if it could not be found.
  
  @param primaryKey the primary key of the commerce user segment criterion
  @return the commerce user segment criterion, or <code>null</code> if a commerce user segment criterion with the primary key could not be found