@Override
	public CommerceShippingFixedOptionRel fetchByPrimaryKey(
		Serializable primaryKey) {
		Serializable serializable = entityCache.getResult(CommerceShippingFixedOptionRelModelImpl.ENTITY_CACHE_ENABLED,
				CommerceShippingFixedOptionRelImpl.class, primaryKey);

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

		CommerceShippingFixedOptionRel commerceShippingFixedOptionRel = (CommerceShippingFixedOptionRel)serializable;

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

			try {
				session = openSession();

				commerceShippingFixedOptionRel = (CommerceShippingFixedOptionRel)session.get(CommerceShippingFixedOptionRelImpl.class,
						primaryKey);

				if (commerceShippingFixedOptionRel != null) {
					cacheResult(commerceShippingFixedOptionRel);
				}
				else {
					entityCache.putResult(CommerceShippingFixedOptionRelModelImpl.ENTITY_CACHE_ENABLED,
						CommerceShippingFixedOptionRelImpl.class, primaryKey,
						nullModel);
				}
			}
			catch (Exception e) {
				entityCache.removeResult(CommerceShippingFixedOptionRelModelImpl.ENTITY_CACHE_ENABLED,
					CommerceShippingFixedOptionRelImpl.class, primaryKey);

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

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

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