Code example for PersistenceContext

Methods: getBatchFetchQueue

0
	 */ 
	public BatchFetchQueue getBatchFetchQueue() { 
		if (batchFetchQueue==null) { 
			batchFetchQueue = new BatchFetchQueue(this); 
		} 
		return batchFetchQueue; 
	} 
 
	public void clear() { 
		for ( Object o : proxiesByKey.values() ) { 
			final LazyInitializer li = ((HibernateProxy) o).getHibernateLazyInitializer(); 
			li.unsetSession(); 
		} 
		Map.Entry[] collectionEntryArray = IdentityMap.concurrentEntries( collectionEntries ); 
		for ( Map.Entry aCollectionEntryArray : collectionEntryArray ) { 
			((PersistentCollection) aCollectionEntryArray.getKey()).unsetSession( getSession() ); 
		} 
		arrayHolders.clear(); 
		entitiesByKey.clear(); 
		entitiesByUniqueKey.clear();