DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Static Public Member Functions | Static Public Attributes | Properties | Private Member Functions | List of all members
Deveel.Data.Sql.Objects.SqlNull Struct Reference
Inheritance diagram for Deveel.Data.Sql.Objects.SqlNull:
Deveel.Data.Sql.Objects.ISqlObject Deveel.Data.Serialization.ISerializable

Public Member Functions

int IComparable. CompareTo (object obj)
 
int IComparable< ISqlObject >. CompareTo (ISqlObject other)
 
void ISerializable. GetData (SerializeData data)
 
bool ISqlObject. IsComparableTo (ISqlObject other)
 Checks if the current object is comparable with the given one. More...
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
TypeCode IConvertible. GetTypeCode ()
 
bool IConvertible. ToBoolean (IFormatProvider provider)
 
char IConvertible. ToChar (IFormatProvider provider)
 
sbyte IConvertible. ToSByte (IFormatProvider provider)
 
byte IConvertible. ToByte (IFormatProvider provider)
 
short IConvertible. ToInt16 (IFormatProvider provider)
 
ushort IConvertible. ToUInt16 (IFormatProvider provider)
 
int IConvertible. ToInt32 (IFormatProvider provider)
 
uint IConvertible. ToUInt32 (IFormatProvider provider)
 
long IConvertible. ToInt64 (IFormatProvider provider)
 
ulong IConvertible. ToUInt64 (IFormatProvider provider)
 
float IConvertible. ToSingle (IFormatProvider provider)
 
double IConvertible. ToDouble (IFormatProvider provider)
 
decimal IConvertible. ToDecimal (IFormatProvider provider)
 
DateTime IConvertible. ToDateTime (IFormatProvider provider)
 
string IConvertible. ToString (IFormatProvider provider)
 
object IConvertible. ToType (Type conversionType, IFormatProvider provider)
 
override string ToString ()
 

Static Public Member Functions

static bool operator== (SqlNull a, ISqlObject b)
 
static bool operator!= (SqlNull a, ISqlObject b)
 

Static Public Attributes

static readonly SqlNull Value = new SqlNull()
 

Properties

bool IsNull [get]
 
- Properties inherited from Deveel.Data.Sql.Objects.ISqlObject
bool IsNull [get]
 Gets a boolean value indicating if the object is NULL. More...
 

Private Member Functions

 SqlNull (ObjectData data)
 

Detailed Description

Definition at line 23 of file SqlNull.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Objects.SqlNull.SqlNull ( ObjectData  data)
inlineprivate

Definition at line 26 of file SqlNull.cs.

26  {
27  }

Member Function Documentation

int IComparable. Deveel.Data.Sql.Objects.SqlNull.CompareTo ( object  obj)
inline

Definition at line 29 of file SqlNull.cs.

29  {
30  return (this as ISqlObject).CompareTo((ISqlObject) obj);
31  }
int IComparable<ISqlObject>. Deveel.Data.Sql.Objects.SqlNull.CompareTo ( ISqlObject  other)
inline

Definition at line 33 of file SqlNull.cs.

33  {
34  throw new NotSupportedException();
35  }
override bool Deveel.Data.Sql.Objects.SqlNull.Equals ( object  obj)
inline

Definition at line 48 of file SqlNull.cs.

48  {
49  if (obj is SqlNull)
50  return true;
51  if (obj is ISqlObject)
52  return ((ISqlObject) obj).IsNull;
53 
54  return false;
55  }
SqlNull(ObjectData data)
Definition: SqlNull.cs:26
void ISerializable. Deveel.Data.Sql.Objects.SqlNull.GetData ( SerializeData  data)
inline

Implements Deveel.Data.Serialization.ISerializable.

Definition at line 41 of file SqlNull.cs.

41  {
42  }
override int Deveel.Data.Sql.Objects.SqlNull.GetHashCode ( )
inline

Definition at line 57 of file SqlNull.cs.

57  {
58  return 0;
59  }
TypeCode IConvertible. Deveel.Data.Sql.Objects.SqlNull.GetTypeCode ( )
inline

Definition at line 74 of file SqlNull.cs.

74  {
75  return TypeCode.Object;
76  }
bool ISqlObject. Deveel.Data.Sql.Objects.SqlNull.IsComparableTo ( ISqlObject  other)
inline

Checks if the current object is comparable with the given one.

Parameters
otherThe other ISqlObject to compare.
Returns
Returns true if the current object is comparable with the given one, false otherwise.

Implements Deveel.Data.Sql.Objects.ISqlObject.

Definition at line 44 of file SqlNull.cs.

44  {
45  return false;
46  }
static bool Deveel.Data.Sql.Objects.SqlNull.operator!= ( SqlNull  a,
ISqlObject  b 
)
inlinestatic

Definition at line 70 of file SqlNull.cs.

70  {
71  return !(a == b);
72  }
static bool Deveel.Data.Sql.Objects.SqlNull.operator== ( SqlNull  a,
ISqlObject  b 
)
inlinestatic

Definition at line 61 of file SqlNull.cs.

61  {
62  if (Equals(a, b))
63  return true;
64  if (b == null || b.IsNull)
65  return true;
66 
67  return false;
68  }
override bool Equals(object obj)
Definition: SqlNull.cs:48
bool IConvertible. Deveel.Data.Sql.Objects.SqlNull.ToBoolean ( IFormatProvider  provider)
inline

Definition at line 78 of file SqlNull.cs.

78  {
79  throw new InvalidCastException();
80  }
byte IConvertible. Deveel.Data.Sql.Objects.SqlNull.ToByte ( IFormatProvider  provider)
inline

Definition at line 90 of file SqlNull.cs.

90  {
91  throw new InvalidCastException();
92  }
char IConvertible. Deveel.Data.Sql.Objects.SqlNull.ToChar ( IFormatProvider  provider)
inline

Definition at line 82 of file SqlNull.cs.

82  {
83  throw new InvalidCastException();
84  }
DateTime IConvertible. Deveel.Data.Sql.Objects.SqlNull.ToDateTime ( IFormatProvider  provider)
inline

Definition at line 130 of file SqlNull.cs.

130  {
131  throw new InvalidCastException();
132  }
decimal IConvertible. Deveel.Data.Sql.Objects.SqlNull.ToDecimal ( IFormatProvider  provider)
inline

Definition at line 126 of file SqlNull.cs.

126  {
127  throw new InvalidCastException();
128  }
double IConvertible. Deveel.Data.Sql.Objects.SqlNull.ToDouble ( IFormatProvider  provider)
inline

Definition at line 122 of file SqlNull.cs.

122  {
123  throw new InvalidCastException();
124  }
short IConvertible. Deveel.Data.Sql.Objects.SqlNull.ToInt16 ( IFormatProvider  provider)
inline

Definition at line 94 of file SqlNull.cs.

94  {
95  throw new InvalidCastException();
96  }
int IConvertible. Deveel.Data.Sql.Objects.SqlNull.ToInt32 ( IFormatProvider  provider)
inline

Definition at line 102 of file SqlNull.cs.

102  {
103  throw new InvalidCastException();
104  }
long IConvertible. Deveel.Data.Sql.Objects.SqlNull.ToInt64 ( IFormatProvider  provider)
inline

Definition at line 110 of file SqlNull.cs.

110  {
111  throw new InvalidCastException();
112  }
sbyte IConvertible. Deveel.Data.Sql.Objects.SqlNull.ToSByte ( IFormatProvider  provider)
inline

Definition at line 86 of file SqlNull.cs.

86  {
87  throw new InvalidCastException();
88  }
float IConvertible. Deveel.Data.Sql.Objects.SqlNull.ToSingle ( IFormatProvider  provider)
inline

Definition at line 118 of file SqlNull.cs.

118  {
119  throw new InvalidCastException();
120  }
string IConvertible. Deveel.Data.Sql.Objects.SqlNull.ToString ( IFormatProvider  provider)
inline

Definition at line 134 of file SqlNull.cs.

134  {
135  throw new InvalidCastException();
136  }
override string Deveel.Data.Sql.Objects.SqlNull.ToString ( )
inline

Definition at line 142 of file SqlNull.cs.

142  {
143  return "NULL";
144  }
object IConvertible. Deveel.Data.Sql.Objects.SqlNull.ToType ( Type  conversionType,
IFormatProvider  provider 
)
inline

Definition at line 138 of file SqlNull.cs.

138  {
139  throw new InvalidCastException();
140  }
ushort IConvertible. Deveel.Data.Sql.Objects.SqlNull.ToUInt16 ( IFormatProvider  provider)
inline

Definition at line 98 of file SqlNull.cs.

98  {
99  throw new InvalidCastException();
100  }
uint IConvertible. Deveel.Data.Sql.Objects.SqlNull.ToUInt32 ( IFormatProvider  provider)
inline

Definition at line 106 of file SqlNull.cs.

106  {
107  throw new InvalidCastException();
108  }
ulong IConvertible. Deveel.Data.Sql.Objects.SqlNull.ToUInt64 ( IFormatProvider  provider)
inline

Definition at line 114 of file SqlNull.cs.

114  {
115  throw new InvalidCastException();
116  }

Member Data Documentation

readonly SqlNull Deveel.Data.Sql.Objects.SqlNull.Value = new SqlNull()
static

Definition at line 24 of file SqlNull.cs.

Property Documentation

bool Deveel.Data.Sql.Objects.SqlNull.IsNull
get

Definition at line 37 of file SqlNull.cs.


The documentation for this struct was generated from the following file: