Code example for SessionImplementor

Methods: getFactory

0
	/*public void removeDatabaseSnapshot(EntityKey key) { 
		entitySnapshotsByKey.remove(key); 
	}*/ 
 
	public void addEntity(EntityKey key, Object entity) { 
		entitiesByKey.put(key, entity); 
		getBatchFetchQueue().removeBatchLoadableEntityKey(key); 
	} 
 
	/** 
	 * Get the entity instance associated with the given 
	 * <tt>EntityKey</tt> 
	 */ 
	public Object getEntity(EntityKey key) { 
		return entitiesByKey.get(key); 
	} 
 
	public boolean containsEntity(EntityKey key) { 
		return entitiesByKey.containsKey(key); 
	}