public override bool Equals(Clob clob)
{
if (clob == null) return false;
if (clob == this) return true;
ExternalClob ec = clob as ExternalClob;
if (ec == null || !this.Connection.Equals(ec.Connection) || this.identifier.Length != ec.identifier.Length ||
!this.encoding.Equals(ec.encoding) ||
(this.compression != ec.compression && this.compression != null && !this.compression.Equals(ec.compression))) return false;
byte[] a = this.identifier, b = ec.identifier;
for (int i = 0; i < a.Length; i++)
if (a[i] != b[i]) return false;
return true;
}
}