@Override
	public CommerceAccountUserRel fetchByPrimaryKey(Serializable primaryKey) {
		Serializable serializable = entityCache.getResult(CommerceAccountUserRelModelImpl.ENTITY_CACHE_ENABLED,
				CommerceAccountUserRelImpl.class, primaryKey);

		if (serializable == nullModel) {
			return null;
		}

		CommerceAccountUserRel commerceAccountUserRel = (CommerceAccountUserRel)serializable;

		if (commerceAccountUserRel == null) {
			Session session = null;

			try {
				session = openSession();

				commerceAccountUserRel = (CommerceAccountUserRel)session.get(CommerceAccountUserRelImpl.class,
						primaryKey);

				if (commerceAccountUserRel != null) {
					cacheResult(commerceAccountUserRel);
				}
				else {
					entityCache.putResult(CommerceAccountUserRelModelImpl.ENTITY_CACHE_ENABLED,
						CommerceAccountUserRelImpl.class, primaryKey, nullModel);
				}
			}
			catch (Exception e) {
				entityCache.removeResult(CommerceAccountUserRelModelImpl.ENTITY_CACHE_ENABLED,
					CommerceAccountUserRelImpl.class, primaryKey);

				throw processException(e);
			}
			finally {
				closeSession(session);
			}
		}

		return commerceAccountUserRel;
	}
@ Override public CommerceAccountUserRel fetchByPrimaryKey ( Serializable primaryKey ) { Serializable serializable = entityCache . getResult ( CommerceAccountUserRelModelImpl . ENTITY_CACHE_ENABLED , CommerceAccountUserRelImpl . class , primaryKey ) ; if ( serializable == nullModel ) { return null ; } CommerceAccountUserRel commerceAccountUserRel = ( CommerceAccountUserRel ) serializable ; if ( commerceAccountUserRel == null ) { Session session = null ; try { session = openSession ( ) ; commerceAccountUserRel = ( CommerceAccountUserRel ) session . get ( CommerceAccountUserRelImpl . class , primaryKey ) ; if ( commerceAccountUserRel != null ) { cacheResult ( commerceAccountUserRel ) ; } else { entityCache . putResult ( CommerceAccountUserRelModelImpl . ENTITY_CACHE_ENABLED , CommerceAccountUserRelImpl . class , primaryKey , nullModel ) ; } } catch ( Exception e ) { entityCache . removeResult ( CommerceAccountUserRelModelImpl . ENTITY_CACHE_ENABLED , CommerceAccountUserRelImpl . class , primaryKey ) ; throw processException ( e ) ; } finally { closeSession ( session ) ; } } return commerceAccountUserRel ; }
Returns the commerce account user rel with the primary key or returns <code>null</code> if it could not be found.

@param primaryKey the primary key of the commerce account user rel
@return the commerce account user rel, or <code>null</code> if a commerce account user rel with the primary key could not be found