@Override
	public CommerceWishListItem fetchByPrimaryKey(Serializable primaryKey) {
		Serializable serializable = entityCache.getResult(CommerceWishListItemModelImpl.ENTITY_CACHE_ENABLED,
				CommerceWishListItemImpl.class, primaryKey);

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

		CommerceWishListItem commerceWishListItem = (CommerceWishListItem)serializable;

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

			try {
				session = openSession();

				commerceWishListItem = (CommerceWishListItem)session.get(CommerceWishListItemImpl.class,
						primaryKey);

				if (commerceWishListItem != null) {
					cacheResult(commerceWishListItem);
				}
				else {
					entityCache.putResult(CommerceWishListItemModelImpl.ENTITY_CACHE_ENABLED,
						CommerceWishListItemImpl.class, primaryKey, nullModel);
				}
			}
			catch (Exception e) {
				entityCache.removeResult(CommerceWishListItemModelImpl.ENTITY_CACHE_ENABLED,
					CommerceWishListItemImpl.class, primaryKey);

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

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

@param primaryKey the primary key of the commerce wish list item
@return the commerce wish list item, or <code>null</code> if a commerce wish list item with the primary key could not be found