@Override
	public CommerceNotificationQueueEntry fetchByPrimaryKey(
		Serializable primaryKey) {
		Serializable serializable = entityCache.getResult(CommerceNotificationQueueEntryModelImpl.ENTITY_CACHE_ENABLED,
				CommerceNotificationQueueEntryImpl.class, primaryKey);

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

		CommerceNotificationQueueEntry commerceNotificationQueueEntry = (CommerceNotificationQueueEntry)serializable;

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

			try {
				session = openSession();

				commerceNotificationQueueEntry = (CommerceNotificationQueueEntry)session.get(CommerceNotificationQueueEntryImpl.class,
						primaryKey);

				if (commerceNotificationQueueEntry != null) {
					cacheResult(commerceNotificationQueueEntry);
				}
				else {
					entityCache.putResult(CommerceNotificationQueueEntryModelImpl.ENTITY_CACHE_ENABLED,
						CommerceNotificationQueueEntryImpl.class, primaryKey,
						nullModel);
				}
			}
			catch (Exception e) {
				entityCache.removeResult(CommerceNotificationQueueEntryModelImpl.ENTITY_CACHE_ENABLED,
					CommerceNotificationQueueEntryImpl.class, primaryKey);

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

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

@param primaryKey the primary key of the commerce notification queue entry
@return the commerce notification queue entry, or <code>null</code> if a commerce notification queue entry with the primary key could not be found