@Override
	public CommerceWarehouseItem findByPrimaryKey(Serializable primaryKey)
		throws NoSuchWarehouseItemException {
		CommerceWarehouseItem commerceWarehouseItem = fetchByPrimaryKey(primaryKey);

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

			throw new NoSuchWarehouseItemException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
				primaryKey);
		}

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