DeveelDB
20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
|
Public Member Functions | |
DateType (SqlTypeCode typeCode) | |
override bool | IsCacheable (ISqlObject value) |
override Type | GetObjectType () |
override Type | GetRuntimeType () |
override bool | Equals (object obj) |
override int | GetHashCode () |
override bool | IsComparable (SqlType type) |
Verifies if a given SqlType is comparable to this data-type. More... | |
override bool | CanCastTo (SqlType destType) |
Verifies if this type can cast any value to the given SqlType. More... | |
override DataObject | CastTo (DataObject value, SqlType destType) |
Converts the given object value to a SqlType specified. More... | |
override void | SerializeObject (Stream stream, ISqlObject obj) |
override ISqlObject | DeserializeObject (Stream stream) |
Public Member Functions inherited from Deveel.Data.Types.SqlType | |
virtual object | ConvertTo (ISqlObject obj, Type destType) |
virtual ISqlObject | Add (ISqlObject a, ISqlObject b) |
virtual ISqlObject | Subtract (ISqlObject a, ISqlObject b) |
virtual ISqlObject | Multiply (ISqlObject a, ISqlObject b) |
virtual ISqlObject | Divide (ISqlObject a, ISqlObject b) |
virtual ISqlObject | Modulus (ISqlObject a, ISqlObject b) |
virtual ISqlObject | Negate (ISqlObject value) |
virtual SqlBoolean | IsEqualTo (ISqlObject a, ISqlObject b) |
virtual SqlBoolean | IsNotEqualTo (ISqlObject a, ISqlObject b) |
virtual SqlBoolean | IsGreatherThan (ISqlObject a, ISqlObject b) |
virtual SqlBoolean | IsSmallerThan (ISqlObject a, ISqlObject b) |
virtual SqlBoolean | IsGreaterOrEqualThan (ISqlObject a, ISqlObject b) |
virtual SqlBoolean | IsSmallerOrEqualThan (ISqlObject a, ISqlObject b) |
virtual ISqlObject | And (ISqlObject a, ISqlObject b) |
virtual ISqlObject | Or (ISqlObject a, ISqlObject b) |
virtual ISqlObject | XOr (ISqlObject x, ISqlObject y) |
virtual ISqlObject | UnaryPlus (ISqlObject value) |
virtual ISqlObject | Reverse (ISqlObject value) |
virtual SqlType | Wider (SqlType otherType) |
Gets the one data-type between this and the other one given that handles the wider range of values. More... | |
virtual int | Compare (ISqlObject x, ISqlObject y) |
override bool | Equals (object obj) |
override int | GetHashCode () |
virtual bool | Equals (SqlType other) |
override string | ToString () |
virtual ISqlObject | CreateFromLargeObject (ILargeObject objRef) |
virtual ISqlObject | CreateFrom (object value) |
Static Public Attributes | |
static readonly string[] | DateFormatSql |
static readonly string[] | TimeFormatSql |
static readonly string[] | TsFormatSql |
Package Functions | |
override int | ColumnSizeOf (ISqlObject obj) |
Package Functions inherited from Deveel.Data.Types.SqlType | |
virtual int | GetCacheUsage (ISqlObject value) |
Static Package Functions | |
static bool | IsDateType (SqlTypeCode sqlType) |
Properties | |
override bool | IsStorable [get] |
Properties inherited from Deveel.Data.Types.SqlType | |
string | Name [get, private set] |
Gets the name of the data-type that is used to resolve it within the context. More... | |
SqlTypeCode | TypeCode [get, private set] |
Gets the kind of SQL type this data-type handles. More... | |
virtual bool | IsIndexable [get] |
Indicates if the values handled by the type can be part of an index. More... | |
bool | IsPrimitive [get] |
Gets a value indicating if this data-type is primitive. More... | |
bool | IsNull [get] |
virtual bool | IsStorable [get] |
Private Member Functions | |
SqlString | ToString (SqlDateTime dateTime) |
Static Private Member Functions | |
static void | AssertDateType (SqlTypeCode sqlType) |
static SqlDateTime | ToTime (SqlDateTime dateTime) |
static SqlDateTime | ToDate (SqlDateTime dateTime) |
Additional Inherited Members | |
Static Public Member Functions inherited from Deveel.Data.Types.SqlType | |
static SqlType | Parse (string s) |
Parses a SQL formatted string that defines a data-type into a constructed SqlType object equivalent. More... | |
static SqlType | Parse (IContext context, string s) |
Parses a SQL formatted string that defines a data-type into a constructed SqlType object equivalent. More... | |
static bool | IsPrimitiveType (SqlTypeCode typeCode) |
static SqlType | Resolve (SqlTypeCode typeCode) |
static SqlType | Resolve (SqlTypeCode typeCode, DataTypeMeta[] meta) |
static SqlType | Resolve (SqlTypeCode typeCode, DataTypeMeta[] meta, ITypeResolver resolver) |
static SqlType | Resolve (SqlTypeCode typeCode, string name) |
static SqlType | Resolve (SqlTypeCode typeCode, string name, DataTypeMeta[] meta) |
static SqlType | Resolve (string name) |
static SqlType | Resolve (string name, DataTypeMeta[] meta) |
static SqlType | Resolve (string name, DataTypeMeta[] meta, ITypeResolver resolver) |
static SqlType | Resolve (SqlTypeCode typeCode, string name, DataTypeMeta[] meta, ITypeResolver resolver) |
Protected Member Functions inherited from Deveel.Data.Types.SqlType | |
SqlType (SqlTypeCode sqlType) | |
Constructs the SqlType for the given specific SQL TYPE. More... | |
SqlType (string name, SqlTypeCode typeCode) | |
Constructs the SqlType for the given specific SQL TYPE and a given name. More... | |
SqlType (ObjectData data) | |
virtual void | GetData (SerializeData data) |
Definition at line 23 of file DateType.cs.
|
inline |
Definition at line 24 of file DateType.cs.
|
inlinestaticprivate |
Definition at line 66 of file DateType.cs.
|
inlinevirtual |
Verifies if this type can cast any value to the given SqlType.
destType | The other type, destination of the cast, to verify. |
By default, this method returns false
, because cast process must be specified per type: when overriding the method CastTo, pay attention to also override this method accordingly.
Reimplemented from Deveel.Data.Types.SqlType.
Definition at line 103 of file DateType.cs.
|
inlinevirtual |
Converts the given object value to a SqlType specified.
value | The value to convert. |
destType | The destination type of the conversion. |
If the given destType destination type is equivalent to this type, it will return the value provided, otherwise it will throw an exception by default.
Casting values to specific types is specific to each data-type: override this method to support type-specific conversions.
When overriding this method, CanCastTo should be overridden accordingly to indicate the type supports casting.
Reimplemented from Deveel.Data.Types.SqlType.
Definition at line 129 of file DateType.cs.
|
inlinepackagevirtual |
Reimplemented from Deveel.Data.Types.SqlType.
Definition at line 182 of file DateType.cs.
|
inlinevirtual |
Reimplemented from Deveel.Data.Types.SqlType.
Definition at line 196 of file DateType.cs.
|
inline |
Definition at line 87 of file DateType.cs.
|
inline |
Definition at line 95 of file DateType.cs.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented from Deveel.Data.Types.SqlType.
Definition at line 83 of file DateType.cs.
|
inlinevirtual |
Reimplemented from Deveel.Data.Types.SqlType.
Definition at line 75 of file DateType.cs.
|
inlinevirtual |
Verifies if a given SqlType is comparable to this data-type.
type | The other data-type to verify the compatibility. |
It is not required two SqlType to be identical to be compared: when overridden by a derived class, this methods verifies the properties of the argument type, to see if values handled by the types can be compared.
By default, this method compares the values returned by TypeCode to see if they are identical.
true
if the values handled by this data-type can be compared to ones handled by the given type , or false
otherwise. Reimplemented from Deveel.Data.Types.SqlType.
Definition at line 99 of file DateType.cs.
|
inlinestaticpackage |
Definition at line 208 of file DateType.cs.
|
inlinevirtual |
Reimplemented from Deveel.Data.Types.SqlType.
Definition at line 162 of file DateType.cs.
|
inlinestaticprivate |
Definition at line 125 of file DateType.cs.
|
inlineprivate |
Definition at line 107 of file DateType.cs.
|
inlinestaticprivate |
Definition at line 121 of file DateType.cs.
|
static |
Definition at line 29 of file DateType.cs.
|
static |
Definition at line 34 of file DateType.cs.
|
static |
Definition at line 45 of file DateType.cs.
|
get |
Definition at line 71 of file DateType.cs.