public virtual void Init() {
     if (identityAdapterMap == null) {
         identityAdapterMap = new IdentityAdapterHashMap();
     }
     if (pocoAdapterMap == null) {
         pocoAdapterMap = new PocoAdapterHashMap();
     }
 }
Example #2
0
        public IdentityMapImpl(IOidGenerator oidGenerator, IIdentityAdapterMap identityAdapterMap, IPocoAdapterMap pocoAdapterMap)
        {
            Assert.AssertNotNull(oidGenerator);
            Assert.AssertNotNull(identityAdapterMap);
            Assert.AssertNotNull(pocoAdapterMap);

            this.oidGenerator       = oidGenerator;
            this.identityAdapterMap = identityAdapterMap;
            this.pocoAdapterMap     = pocoAdapterMap;
        }
 public void SetupMaps(IIdentityAdapterMap adapterMap, IPocoAdapterMap pocoMap) {
     identityAdapterMap = adapterMap;
     pocoAdapterMap = pocoMap;
 }
 public CreateIfNullPocoAdapterDecorator(MemoryObjectStore objectStore, IPocoAdapterMap decorated) {
     this.objectStore = objectStore;
     this.decorated = decorated;
 }