Ejemplo n.º 1
0
 // only for writeable fields!
 public virtual void setFieldData(string field, ExtraCode3Table data)
 {
     if (field.Equals("title"))
     {
         Title = data.Title;
     }
     else if (field.Equals("groupCode"))
     {
         GroupCode = data.GroupCode;
     }
     else if (field.Equals("unit"))
     {
         Unit = data.Unit;
     }
     else if (field.Equals("unitFactor"))
     {
         UnitFactor = data.UnitFactor;
     }
     else if (field.Equals("notes"))
     {
         Notes = data.Notes;
     }
     else if (field.Equals("description"))
     {
         Description = data.Description;
     }
 }
Ejemplo n.º 2
0
        //	public boolean equals(Object val) {
        //		if ( !(val instanceof ExtraCode3Table) ) {
        //			return false;
        //		}
        //		final String lastUpdate = "lastUpdate";
        //		ExtraCode3Table group = (ExtraCode3Table)val;
        //		Iterator iter = group.o_map.keySet().iterator();
        //		while ( iter.hasNext() ) {
        //			String key = (String)iter.next();
        //			if ( key.equals(lastUpdate) )
        //				continue;
        //			else if ( !group.o_map.get(key).equals(o_map.get(key)) ) {
        //				return false;
        //			}
        //		}
        //		return true;
        //	}

        public virtual object Clone()
        {
            ExtraCode3Table obj = new ExtraCode3Table();

            obj.ExtraCode3Id = ExtraCode3Id;
            obj.LastUpdate   = LastUpdate;
            obj.Description  = Description;
            obj.GroupCode    = GroupCode;
            obj.Title        = Title;
            obj.Notes        = Notes;
            obj.EditorId     = EditorId;
            obj.Unit         = Unit;
            obj.UnitFactor   = UnitFactor;

            return(obj);
        }