public virtual void Init() {
     if (identityAdapterMap == null) {
         identityAdapterMap = new IdentityAdapterHashMap();
     }
     if (pocoAdapterMap == null) {
         pocoAdapterMap = new PocoAdapterHashMap();
     }
 }
        public IdentityMapImpl(IOidGenerator oidGenerator, IIdentityAdapterMap identityAdapterMap, INakedObjectAdapterMap nakedObjectAdapterMap) {
            Assert.AssertNotNull(oidGenerator);
            Assert.AssertNotNull(identityAdapterMap);
            Assert.AssertNotNull(nakedObjectAdapterMap);

            this.oidGenerator = oidGenerator;
            this.identityAdapterMap = identityAdapterMap;
            this.nakedObjectAdapterMap = nakedObjectAdapterMap;
        }
        public IdentityMapImpl(IOidGenerator oidGenerator, IIdentityAdapterMap identityAdapterMap, INakedObjectAdapterMap nakedObjectAdapterMap)
        {
            Assert.AssertNotNull(oidGenerator);
            Assert.AssertNotNull(identityAdapterMap);
            Assert.AssertNotNull(nakedObjectAdapterMap);

            this.oidGenerator          = oidGenerator;
            this.identityAdapterMap    = identityAdapterMap;
            this.nakedObjectAdapterMap = nakedObjectAdapterMap;
        }
 public IdentityMapImpl(IOidGenerator oidGenerator,
                        IIdentityAdapterMap identityAdapterMap,
                        INakedObjectAdapterMap nakedObjectAdapterMap,
                        ILogger <IdentityMapImpl> logger)
 {
     this.oidGenerator          = oidGenerator ?? throw new InitialisationException($"{nameof(oidGenerator)} is null");
     this.identityAdapterMap    = identityAdapterMap ?? throw new InitialisationException($"{nameof(identityAdapterMap)} is null");
     this.nakedObjectAdapterMap = nakedObjectAdapterMap ?? throw new InitialisationException($"{nameof(nakedObjectAdapterMap)} is null");
     this.logger = logger ?? throw new InitialisationException($"{nameof(logger)} is null");
 }
Exemplo n.º 5
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;
 }