21 namespace Deveel.Data.Sql.Objects {
29 int IComparable.CompareTo(
object obj) {
30 return (
this as
ISqlObject).CompareTo((ISqlObject) obj);
33 int IComparable<ISqlObject>.CompareTo(
ISqlObject other) {
34 throw new NotSupportedException();
48 public override bool Equals(
object obj) {
52 return ((ISqlObject) obj).IsNull;
74 TypeCode IConvertible.GetTypeCode() {
75 return TypeCode.Object;
78 bool IConvertible.ToBoolean(IFormatProvider provider) {
79 throw new InvalidCastException();
82 char IConvertible.ToChar(IFormatProvider provider) {
83 throw new InvalidCastException();
86 sbyte IConvertible.ToSByte(IFormatProvider provider) {
87 throw new InvalidCastException();
90 byte IConvertible.ToByte(IFormatProvider provider) {
91 throw new InvalidCastException();
94 short IConvertible.ToInt16(IFormatProvider provider) {
95 throw new InvalidCastException();
98 ushort IConvertible.ToUInt16(IFormatProvider provider) {
99 throw new InvalidCastException();
102 int IConvertible.ToInt32(IFormatProvider provider) {
103 throw new InvalidCastException();
106 uint IConvertible.ToUInt32(IFormatProvider provider) {
107 throw new InvalidCastException();
110 long IConvertible.ToInt64(IFormatProvider provider) {
111 throw new InvalidCastException();
114 ulong IConvertible.ToUInt64(IFormatProvider provider) {
115 throw new InvalidCastException();
118 float IConvertible.ToSingle(IFormatProvider provider) {
119 throw new InvalidCastException();
122 double IConvertible.ToDouble(IFormatProvider provider) {
123 throw new InvalidCastException();
126 decimal IConvertible.ToDecimal(IFormatProvider provider) {
127 throw new InvalidCastException();
130 DateTime IConvertible.ToDateTime(IFormatProvider provider) {
131 throw new InvalidCastException();
134 string IConvertible.ToString(IFormatProvider provider) {
135 throw new InvalidCastException();
138 object IConvertible.ToType(Type conversionType, IFormatProvider provider) {
139 throw new InvalidCastException();
void GetData(SerializeData data)
override string ToString()
bool IsNull
Gets a boolean value indicating if the object is NULL.
Defines the contract for a valid SQL Object
override bool Equals(object obj)
bool IsComparableTo(ISqlObject other)
Checks if the current object is comparable with the given one.
override int GetHashCode()