DeveelDB
20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
|
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject value. More...
Public Member Functions | |
DataObject (SqlType type, ISqlObject value) | |
Constructs a new database data object with a specific SqlType and handling the specified ISqlObject value. More... | |
bool | IsComparableTo (DataObject obj) |
Checks if the given object is comparable to this object, More... | |
int | CompareTo (DataObject other) |
override int | GetHashCode () |
override bool | Equals (object obj) |
bool | Equals (DataObject other) |
DataObject | Is (DataObject other) |
Compares to the given object to verify if is it compatible. More... | |
DataObject | IsNot (DataObject other) |
Compares the given object to verify if it is not compatible with this one. More... | |
DataObject | IsEqualTo (DataObject other) |
Compares to the given object to verify if is it equal to the current. More... | |
DataObject | IsNotEqualTo (DataObject other) |
Compares to the given object to verify if is it not equal to the current. More... | |
DataObject | IsGreaterThan (DataObject other) |
DataObject | IsSmallerThan (DataObject other) |
DataObject | IsGreterOrEqualThan (DataObject other) |
DataObject | IsSmallerOrEqualThan (DataObject other) |
DataObject | IsLike (DataObject pattern) |
When the type of this object is a string, this method verifies if the input pattern is compatible (<likes ) with the input. More... | |
DataObject | IsNotLike (DataObject pattern) |
DataObject | Negate () |
Negates the current underlying value of the object. More... | |
DataObject | Plus () |
DataObject | Add (DataObject other) |
Adds the given value to this object value. More... | |
DataObject | Subtract (DataObject other) |
DataObject | Multiply (DataObject other) |
DataObject | Divide (DataObject other) |
DataObject | Modulus (DataObject other) |
DataObject | Or (DataObject other) |
DataObject | And (DataObject other) |
DataObject | XOr (DataObject other) |
DataObject | Any (SqlExpressionType type, DataObject other, EvaluateContext context) |
DataObject | All (SqlExpressionType type, DataObject other, EvaluateContext context) |
DataObject | Reverse () |
DataObject | CastTo (SqlType destType) |
Converts this object to the given SqlType. More... | |
DataObject | AsBoolean () |
Converts this object to a boolean type. More... | |
DataObject | AsTinyInt () |
DataObject | AsInteger () |
DataObject | AsBigInt () |
DataObject | AsVarChar () |
DataObject | AsDate () |
DataObject | AsTimeStamp () |
void | SerializeValueTo (Stream stream, ISystemContext systemContext) |
Static Public Attributes | |
static readonly DataObject | BooleanTrue = new DataObject(PrimitiveTypes.Boolean(), SqlBoolean.True) |
The representation of a BOOLEAN true as DataObject More... | |
static readonly DataObject | BooleanFalse = new DataObject(PrimitiveTypes.Boolean(), SqlBoolean.False) |
The representation of a BOOLEAN false as DataObject More... | |
static readonly DataObject | BooleanNull = new DataObject(PrimitiveTypes.Boolean(), SqlBoolean.Null) |
The null representation of a BOOLEAN object. More... | |
Properties | |
SqlType | Type [get, private set] |
Gets the SqlType that defines the object properties More... | |
ISqlObject | Value [get, private set] |
Gets the underlined value that is handled. More... | |
bool | IsNull [get] |
Gets a value that indicates if this object is materialized as null . More... | |
int | CacheUsage [get] |
bool | IsCacheable [get] |
int | Size [get] |
Private Member Functions | |
DataObject (ObjectData data) | |
void ISerializable. | GetData (SerializeData data) |
int | CompareToNotNull (DataObject other) |
int IComparable. | CompareTo (object obj) |
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject value.
Definition at line 35 of file DataObject.cs.
|
inline |
Constructs a new database data object with a specific SqlType and handling the specified ISqlObject value.
type | The specific SqlType that is used by this object to shape the data and compute operations. |
value | The innermost value of the object to be handled. |
ArgumentNullException | If the specified type is null . |
Definition at line 61 of file DataObject.cs.
|
inlineprivate |
Definition at line 69 of file DataObject.cs.
|
inline |
Adds the given value to this object value.
other | The object that handles the value to be added to this one. |
null
if this object or the other object is null. Definition at line 383 of file DataObject.cs.
|
inline |
Definition at line 462 of file DataObject.cs.
|
inline |
Definition at line 437 of file DataObject.cs.
|
inline |
Definition at line 455 of file DataObject.cs.
|
inline |
Definition at line 524 of file DataObject.cs.
|
inline |
Converts this object to a boolean type.
This method is a shortcut to the original CastTo method with a BooleanType parameter.
Definition at line 512 of file DataObject.cs.
|
inline |
Definition at line 532 of file DataObject.cs.
|
inline |
Definition at line 520 of file DataObject.cs.
|
inline |
Definition at line 536 of file DataObject.cs.
|
inline |
Definition at line 516 of file DataObject.cs.
|
inline |
Definition at line 528 of file DataObject.cs.
|
inlinestatic |
Definition at line 580 of file DataObject.cs.
|
inlinestatic |
Definition at line 638 of file DataObject.cs.
|
inlinestatic |
Definition at line 642 of file DataObject.cs.
|
inlinestatic |
Definition at line 544 of file DataObject.cs.
|
inlinestatic |
Definition at line 548 of file DataObject.cs.
|
inline |
Converts this object to the given SqlType.
destType | The destination SqlType to cast this object to. |
Definition at line 488 of file DataObject.cs.
|
inline |
Definition at line 131 of file DataObject.cs.
|
inlineprivate |
Definition at line 164 of file DataObject.cs.
|
inlineprivate |
Definition at line 148 of file DataObject.cs.
|
inlinestatic |
Definition at line 646 of file DataObject.cs.
|
inlinestatic |
Definition at line 600 of file DataObject.cs.
|
inlinestatic |
Definition at line 606 of file DataObject.cs.
|
inlinestatic |
Definition at line 614 of file DataObject.cs.
|
inlinestatic |
Definition at line 935 of file DataObject.cs.
|
inline |
Definition at line 410 of file DataObject.cs.
|
inlinestatic |
Definition at line 588 of file DataObject.cs.
|
inline |
Definition at line 179 of file DataObject.cs.
|
inline |
Definition at line 187 of file DataObject.cs.
|
inlinestatic |
Definition at line 584 of file DataObject.cs.
|
inlineprivate |
Implements Deveel.Data.Serialization.ISerializable.
Definition at line 112 of file DataObject.cs.
|
inline |
Definition at line 169 of file DataObject.cs.
|
inlinestatic |
Definition at line 576 of file DataObject.cs.
|
inline |
Compares to the given object to verify if is it compatible.
other | The other object to verify. |
Definition at line 208 of file DataObject.cs.
|
inline |
Checks if the given object is comparable to this object,
obj | The object to compare. |
true
if the given object is comparable to this object, or false
otherwise. Definition at line 126 of file DataObject.cs.
|
inline |
Compares to the given object to verify if is it equal to the current.
other | The other object to verify. |
This method returns a boolean value of true
or false
only if the current object and the other object are not null
.
null
if it was impossible to determine the types. Definition at line 251 of file DataObject.cs.
|
inline |
Definition at line 280 of file DataObject.cs.
|
inline |
Definition at line 294 of file DataObject.cs.
|
inline |
When the type of this object is a string, this method verifies if the input pattern is compatible (<likes
) with the input.
pattern | The input string object pattern used to verify the likeness with the underlying string object.. |
Returns an instance of DataObject that represents a true
or false
if the underlying string value matches or not the provided pattern. If this object or the provided pattern are not strings, this method returns a boolean null
.
Definition at line 324 of file DataObject.cs.
|
inline |
Compares the given object to verify if it is not compatible with this one.
other | The other object to compare. |
This method is equivalent to calling Is and then Negate to obtain the inverse value.
Definition at line 232 of file DataObject.cs.
|
inline |
Compares to the given object to verify if is it not equal to the current.
other | The other object to compare. |
This method returns a boolean value of true
or false
only if the current object and the other object are not null
.
null
if it was impossible to determine the types. Definition at line 273 of file DataObject.cs.
|
inline |
Definition at line 337 of file DataObject.cs.
|
inline |
Definition at line 301 of file DataObject.cs.
|
inline |
Definition at line 287 of file DataObject.cs.
|
inline |
Definition at line 419 of file DataObject.cs.
|
inline |
Definition at line 401 of file DataObject.cs.
|
inline |
Negates the current underlying value of the object.
The value negation is delegated to the underlying SqlType implementation set to this object: this means not all the objects will handle negation, but instead they will return a
value.
Definition at line 359 of file DataObject.cs.
|
inlinestatic |
Definition at line 630 of file DataObject.cs.
|
inlinestatic |
Definition at line 634 of file DataObject.cs.
|
inlinestatic |
Definition at line 552 of file DataObject.cs.
|
inlinestatic |
Definition at line 556 of file DataObject.cs.
|
inlinestatic |
Definition at line 560 of file DataObject.cs.
|
inlinestatic |
Definition at line 564 of file DataObject.cs.
|
inlinestatic |
Definition at line 866 of file DataObject.cs.
|
inlinestatic |
Definition at line 901 of file DataObject.cs.
|
inlinestatic |
Definition at line 894 of file DataObject.cs.
|
inlinestatic |
Definition at line 909 of file DataObject.cs.
|
inlinestatic |
Definition at line 824 of file DataObject.cs.
|
inlinestatic |
Definition at line 873 of file DataObject.cs.
|
inlinestatic |
Definition at line 880 of file DataObject.cs.
|
inlinestatic |
Definition at line 887 of file DataObject.cs.
|
inlinestatic |
Definition at line 820 of file DataObject.cs.
|
inlinestatic |
Definition at line 846 of file DataObject.cs.
|
inlinestatic |
Definition at line 721 of file DataObject.cs.
|
inlinestatic |
The inequality operation between two DataObject instances.
a | The first operand. |
b | The second operand. |
Definition at line 737 of file DataObject.cs.
|
inlinestatic |
Definition at line 802 of file DataObject.cs.
|
inlinestatic |
Definition at line 811 of file DataObject.cs.
|
inlinestatic |
Definition at line 793 of file DataObject.cs.
|
inlinestatic |
The addition operator between two numeric values.
a | The first operand. |
b | The second operand. |
Definition at line 756 of file DataObject.cs.
|
inlinestatic |
Definition at line 858 of file DataObject.cs.
|
inlinestatic |
The subtraction operator between two numeric values.
a | The first operand. |
b | The second operand. |
Definition at line 775 of file DataObject.cs.
|
inlinestatic |
Definition at line 850 of file DataObject.cs.
|
inlinestatic |
Definition at line 784 of file DataObject.cs.
|
inlinestatic |
The equality operation between two DataObject instances.
a | The first operand. |
b | The second operand. |
Definition at line 704 of file DataObject.cs.
|
inlinestatic |
Definition at line 714 of file DataObject.cs.
|
inlinestatic |
Definition at line 837 of file DataObject.cs.
|
inlinestatic |
Definition at line 828 of file DataObject.cs.
|
inlinestatic |
Definition at line 854 of file DataObject.cs.
|
inline |
Definition at line 428 of file DataObject.cs.
|
inline |
Definition at line 366 of file DataObject.cs.
|
inline |
Definition at line 469 of file DataObject.cs.
|
inlinestatic |
Definition at line 924 of file DataObject.cs.
|
inline |
Definition at line 920 of file DataObject.cs.
|
inlinestatic |
Definition at line 572 of file DataObject.cs.
|
inlinestatic |
Definition at line 592 of file DataObject.cs.
|
inlinestatic |
Definition at line 596 of file DataObject.cs.
|
inline |
Definition at line 392 of file DataObject.cs.
|
inlinestatic |
Definition at line 618 of file DataObject.cs.
|
inlinestatic |
Definition at line 610 of file DataObject.cs.
|
inlinestatic |
Definition at line 568 of file DataObject.cs.
|
inlinestatic |
Definition at line 622 of file DataObject.cs.
|
inlinestatic |
Definition at line 626 of file DataObject.cs.
|
inline |
Definition at line 446 of file DataObject.cs.
|
static |
The representation of a BOOLEAN false
as DataObject
Definition at line 44 of file DataObject.cs.
|
static |
The null
representation of a BOOLEAN object.
Definition at line 49 of file DataObject.cs.
|
static |
The representation of a BOOLEAN true
as DataObject
Definition at line 39 of file DataObject.cs.
|
getpackage |
Definition at line 100 of file DataObject.cs.
|
getpackage |
Definition at line 104 of file DataObject.cs.
|
get |
Gets a value that indicates if this object is materialized as null
.
Definition at line 91 of file DataObject.cs.
|
getpackage |
Definition at line 108 of file DataObject.cs.
|
getprivate set |
Gets the SqlType that defines the object properties
Definition at line 78 of file DataObject.cs.
|
getprivate set |
Gets the underlined value that is handled.
Definition at line 84 of file DataObject.cs.