|
| XmlNodeType () |
|
override object | ConvertTo (ISqlObject obj, Type destType) |
|
override ISqlObject | DeserializeObject (Stream stream) |
|
override void | SerializeObject (Stream stream, ISqlObject obj) |
|
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...
|
|
virtual bool | IsComparable (SqlType type) |
| Verifies if a given SqlType is comparable to this data-type. More...
|
|
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 bool | IsCacheable (ISqlObject value) |
|
virtual Type | GetRuntimeType () |
|
virtual Type | GetObjectType () |
|
virtual ISqlObject | CreateFromLargeObject (ILargeObject objRef) |
|
virtual ISqlObject | CreateFrom (object value) |
|
|
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) |
|
| 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) |
|
virtual int | GetCacheUsage (ISqlObject value) |
|
virtual int | ColumnSizeOf (ISqlObject obj) |
|
Definition at line 9 of file XmlNodeType.cs.
Converts the given object value to a SqlType specified.
- Parameters
-
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.
- Returns
- Returns an instance of DataObject that is the result of the conversion from this data-type to the other type given.
Reimplemented from Deveel.Data.Types.SqlType.
Definition at line 48 of file XmlNodeType.cs.
51 return DataObject.
Null(
this);
53 var destTypeCode = destType.
TypeCode;
54 switch (destTypeCode) {
59 return DataObject.String(xmlNode.ToSqlString());
64 return DataObject.Binary(xmlNode.ToSqlBinary());
66 throw new InvalidCastException(
String.Format(
"Cannot cast XML node to type '{0}'.", destType));
A long string in the system.
static readonly SqlXmlNode Null
SqlTypeCode TypeCode
Gets the kind of SQL type this data-type handles.
SqlTypeCode
Enumerates the codes of all SQL types handled by the system.