public override string ToString() { System.Text.StringBuilder buffer = new System.Text.StringBuilder(); if (message != null) { buffer.Append(message).Append(" | "); } if (oldCi.GetId() != newCi.GetId()) { buffer.Append("old class=").Append(oldCi.GetFullClassName()).Append(" | new class=" ).Append(newCi.GetFullClassName()); } else { buffer.Append("class=").Append(oldCi.GetFullClassName()); } buffer.Append(" | field=").Append(oldCi.GetAttributeInfo(fieldIndex).GetName()); buffer.Append(" | old=").Append(oldValue.ToString()).Append(" | new=").Append(newValue .ToString()); buffer.Append(" | obj. hier. level=").Append(objectRecursionLevel); return(buffer.ToString()); }
public override string ToString() { System.Text.StringBuilder buffer = new System.Text.StringBuilder(classInfo.GetFullClassName ()).Append("(").Append(GetOid()).Append(")="); if (attributeValues == null) { buffer.Append("null attribute values"); return(buffer.ToString()); } for (int i = 0; i < attributeValues.Length; i++) { if (i != 0) { buffer.Append(","); } string attributeName = (classInfo != null ? (classInfo.GetAttributeInfo(i)).GetName () : "?"); buffer.Append(attributeName).Append("="); object @object = attributeValues[i]; if (@object == null) { buffer.Append(" null java object - should not happen , "); } else { NeoDatis.Odb.Core.Layers.Layer2.Meta.ODBType type = NeoDatis.Odb.Core.Layers.Layer2.Meta.ODBType .GetFromClass(attributeValues[i].GetType()); if (@object is NeoDatis.Odb.Core.Layers.Layer2.Meta.NonNativeNullObjectInfo) { buffer.Append("null"); continue; } if (@object is NeoDatis.Odb.Core.Layers.Layer2.Meta.NonNativeDeletedObjectInfo) { buffer.Append("deleted object"); continue; } if (@object is NeoDatis.Odb.Core.Layers.Layer2.Meta.NativeObjectInfo) { NeoDatis.Odb.Core.Layers.Layer2.Meta.NativeObjectInfo noi = (NeoDatis.Odb.Core.Layers.Layer2.Meta.NativeObjectInfo )@object; buffer.Append(noi.ToString()); continue; } if (@object is NeoDatis.Odb.Core.Layers.Layer2.Meta.NonNativeObjectInfo) { NeoDatis.Odb.Core.Layers.Layer2.Meta.NonNativeObjectInfo nnoi = (NeoDatis.Odb.Core.Layers.Layer2.Meta.NonNativeObjectInfo )@object; buffer.Append("@").Append(nnoi.GetClassInfo().GetFullClassName()).Append("(id="). Append(nnoi.GetOid()).Append(")"); continue; } if (@object is NeoDatis.Odb.Core.Layers.Layer2.Meta.ObjectReference) { buffer.Append(@object.ToString()); continue; } buffer.Append("@").Append(NeoDatis.Tool.Wrappers.OdbClassUtil.GetClassName(type.GetName ())); } } return(buffer.ToString()); }