Example #1
0
            //-------------------------------------------------------------------
            public bool IsLoaded(ISatisfactionBesoin satisfaction)
            {
                CCacheRelationsParContexte cache = null;

                if (!m_dicContexteToCache.TryGetValue(satisfaction.ContexteDonnee.IdContexteDonnee, out cache))
                {
                    return(false);
                }
                return(cache.IsLoaded(satisfaction));
            }
Example #2
0
            //-------------------------------------------------------------------
            public CListeObjetsDonnees GetRelations(ISatisfactionBesoin satisfaction)
            {
                CCacheRelationsParContexte cache = null;

                if (!m_dicContexteToCache.TryGetValue(satisfaction.ContexteDonnee.IdContexteDonnee, out cache))
                {
                    NettoieCache();
                    cache = new CCacheRelationsParContexte();
                    m_dicContexteToCache[satisfaction.ContexteDonnee.IdContexteDonnee] = cache;
                }
                return(cache.GetRelations(satisfaction));
            }
Example #3
0
            //-------------------------------------------------------------------
            public void SetRelations(ISatisfactionBesoin satisfaction, CListeObjetsDonnees lstRelations)
            {
                CCacheRelationsParContexte cache = null;

                if (!m_dicContexteToCache.TryGetValue(satisfaction.ContexteDonnee.IdContexteDonnee, out cache))
                {
                    NettoieCache();
                    cache = new CCacheRelationsParContexte();
                    m_dicContexteToCache[satisfaction.ContexteDonnee.IdContexteDonnee] = cache;
                }
                cache.SetRelations(satisfaction, lstRelations);
            }