public override bool Equals(object obj) { if (obj == null) { return(false); } if (GetType() != obj.GetType()) { return(false); } Net.Vpc.Upa.Persistence.PersistenceNameConfig other = (Net.Vpc.Upa.Persistence.PersistenceNameConfig)obj; if (this.names != other.names && (this.names == null || !this.names.Equals(other.names))) { return(false); } if ((this.globalPersistenceName == null) ? (other.globalPersistenceName != null) : !this.globalPersistenceName.Equals(other.globalPersistenceName)) { return(false); } if ((this.localPersistenceName == null) ? (other.localPersistenceName != null) : !this.localPersistenceName.Equals(other.localPersistenceName)) { return(false); } if ((this.persistenceNameEscape == null) ? (other.persistenceNameEscape != null) : !this.persistenceNameEscape.Equals(other.persistenceNameEscape)) { return(false); } return(true); }
public virtual void Init(Net.Vpc.Upa.Persistence.PersistenceStore persistenceStore, Net.Vpc.Upa.Persistence.PersistenceNameConfig model) { this.model = model; this.persistenceStore = persistenceStore; // modelMapPatterns.put("GLOBAL_PERSISTENCE_NAME", "{OBJECT_NAME}"); // modelMapPatterns.put("LOCAL_PERSISTENCE_NAME", "{OBJECT_NAME}"); // modelMapPatterns.put("PERSISTENCE_NAME_ESCAPE", null); // modelMapPatterns.put(PersistenceNameType.FK_CONSTRAINT.name(), ""); if (model != null) { modelMap["GLOBAL_PERSISTENCE_NAME"] = model.GetGlobalPersistenceName(); modelMap["LOCAL_PERSISTENCE_NAME"] = model.GetLocalPersistenceName(); modelMap["PERSISTENCE_NAME_ESCAPE"] = model.GetPersistenceNameEscape(); if (model.GetNames() != null) { foreach (Net.Vpc.Upa.Persistence.PersistenceName persistenceName in model.GetNames()) { if (Net.Vpc.Upa.Impl.Util.StringUtils.IsNullOrEmpty(persistenceName.GetObject())) { modelMap[persistenceName.GetPersistenceNameType().Name()] = persistenceName.GetValue(); } else { modelMap[persistenceName.GetPersistenceNameType().Name() + ":" + persistenceName.GetObject()] = persistenceName.GetValue(); } } } } }
public virtual void SetModel(Net.Vpc.Upa.Persistence.PersistenceNameConfig model) { this.model = model; }