DexNet 4.7.0
Public Member Functions | Static Public Attributes
com::sparsity::dex::gdb::Value Class Reference

Value class. More...

List of all members.

Public Member Functions

void SetLongVoid (long v)
 Sets the Value.
System.DateTime GetTimestampAsDateTime ()
 Gets the Value as a DateTime instance.
long GetOID ()
 Gets OID Value.
com.sparsity.dex.gdb.Value SetBoolean (bool v)
 Sets the Value.
int CompareTo (com.sparsity.dex.gdb.Value other)
 Compares the current instance with another object of the same type.
void SetBooleanVoid (bool v)
 Sets the Value.
int Compare (com.sparsity.dex.gdb.Value v)
 Compares with the given Value.
void SetDoubleVoid (double v)
 Sets the Value.
bool GetBoolean ()
 Gets Boolean Value.
void SetTimestampVoid (long v)
 Sets the Value.
void SetNullVoid ()
 Sets the Value to NULL.
 Value (com.sparsity.dex.gdb.Value v)
 Copy constructor.
 Value ()
 Creates a new instance.
string ToString ()
 Gets a string representation of the Value.
void SetOIDVoid (long v)
 Sets the OID Value.
com.sparsity.dex.gdb.Value SetDouble (double v)
 Sets the Value.
com.sparsity.dex.gdb.Value Set (com.sparsity.dex.gdb.Value v)
 Sets the Value.
com.sparsity.dex.gdb.DataType GetDataType ()
 Gets the DataType.
com.sparsity.dex.gdb.Value SetOID (long v)
 Sets the Value.
System.String GetString ()
 Gets String Value.
bool IsNull ()
 Gets if this is a NULL Value.
void SetTimestampVoid (int year, int month, int day, int hour, int minutes, int seconds, int millisecs)
 Sets the Value.
com.sparsity.dex.gdb.Value SetText (com.sparsity.dex.gdb.TextStream v)
 Sets the Value.
com.sparsity.dex.gdb.Value SetString (string v)
 Sets the Value.
bool Equals (com.sparsity.dex.gdb.Value v)
 Compares with the given Value.
double GetDouble ()
 Gets Double Value.
void SetIntegerVoid (int v)
 Sets the Value.
com.sparsity.dex.gdb.Value SetLong (long v)
 Sets the Value.
void SetVoid (com.sparsity.dex.gdb.Value v)
 Sets the Value.
void SetStringVoid (System.String v)
 Sets the Value.
long GetLong ()
 Gets Long Value.
com.sparsity.dex.gdb.Value SetInteger (int v)
 Sets the Value.
int CompareTo (System.Object other)
 Compares the current instance with another object of the same type.
com.sparsity.dex.gdb.Value SetTimestamp (System.DateTime dt)
 Sets the Value.
com.sparsity.dex.gdb.Value SetNull ()
 Sets the Value to NULL.
long GetTimestamp ()
 Gets Timestamp Value.
com.sparsity.dex.gdb.Value SetTimestamp (int year, int month, int day, int hour, int minutes, int seconds, int millisec)
 Sets the Value.
bool Equals (System.Object other)
 Indicates whether the current object is equal to another object.
int GetInteger ()
 Gets Integer Value.

Static Public Attributes

static int MaxLengthString
 Maximum number of characters allowed for a String.

Detailed Description

Value class.

It is a container which stores a value and its data type. A Value can be NULL.

Author:
Sparsity Technologies http://www.sparsity-technologies.com

Constructor & Destructor Documentation

com::sparsity::dex::gdb::Value::Value ( com.sparsity.dex.gdb.Value  v)

Copy constructor.

Parameters:
v[in] Value to be copied.
com::sparsity::dex::gdb::Value::Value ( )

Creates a new instance.

It creates a NULL Value.


Member Function Documentation

int com::sparsity::dex::gdb::Value::Compare ( com.sparsity.dex.gdb.Value  v)

Compares with the given Value.

It does not work for Text or if given Value objects does not have the same DataType.

Parameters:
vGiven value to compare to.
Returns:
0 if this Value is equal to the given one; a value less than 0 if this Value is less than the given one; and a value greater than 0 if this Value is greater than the given one.
int com::sparsity::dex::gdb::Value::CompareTo ( com.sparsity.dex.gdb.Value  other)

Compares the current instance with another object of the same type.

Parameters:
otherAnother Value to compare with this instance.
Returns:
Less than zero, if the instance is less than other; Zero, if the instance is equal to other; and greater than zero if the instance is greater than other.
int com::sparsity::dex::gdb::Value::CompareTo ( System.Object  other)

Compares the current instance with another object of the same type.

Parameters:
otherAn object to compare with this instance.
Returns:
Less than zero, if the instance is less than other; Zero, if the instance is equal to other; and greater than zero if the instance is greater than other.
bool com::sparsity::dex::gdb::Value::Equals ( com.sparsity.dex.gdb.Value  v)

Compares with the given Value.

It does not work for Text or if given Value objects does not have the same DataType.

Parameters:
vGiven value to compare to.
Returns:
TRUE if this Value is equal to the given one; FALSE otherwise.
bool com::sparsity::dex::gdb::Value::Equals ( System.Object  other)

Indicates whether the current object is equal to another object.

Parameters:
otherAn object to compare with this instance.
Returns:
TRUE if the current object is equal to the other parameter; otherwise, FALSE.
bool com::sparsity::dex::gdb::Value::GetBoolean ( )

Gets Boolean Value.

This must be a non-NULL Boolean Value.

Returns:
The Boolean Value.
com.sparsity.dex.gdb.DataType com::sparsity::dex::gdb::Value::GetDataType ( )

Gets the DataType.

Value cannot be NULL.

Returns:
The DataType.
double com::sparsity::dex::gdb::Value::GetDouble ( )

Gets Double Value.

This must be a non-NULL Double Value.

Returns:
The Double Value.
int com::sparsity::dex::gdb::Value::GetInteger ( )

Gets Integer Value.

This must be a non-NULL Integer Value.

Returns:
The Integer Value.
long com::sparsity::dex::gdb::Value::GetLong ( )

Gets Long Value.

This must be a non-NULL Long Value.

Returns:
The Long Value.
long com::sparsity::dex::gdb::Value::GetOID ( )

Gets OID Value.

This must be an non-NULL OID Value.

Returns:
The OID Value.
System.String com::sparsity::dex::gdb::Value::GetString ( )

Gets String Value.

This must be a non-NULL String Value.

Returns:
The String Value.
long com::sparsity::dex::gdb::Value::GetTimestamp ( )

Gets Timestamp Value.

This must be a non-NULL Timestamp Value.

Returns:
The Timestamp Value.
System.DateTime com::sparsity::dex::gdb::Value::GetTimestampAsDateTime ( )

Gets the Value as a DateTime instance.

Returns:
The returning DateTime instance.
bool com::sparsity::dex::gdb::Value::IsNull ( )

Gets if this is a NULL Value.

Returns:
TRUE if this is a NULL Value, FALSE otherwise.
com.sparsity.dex.gdb.Value com::sparsity::dex::gdb::Value::Set ( com.sparsity.dex.gdb.Value  v)

Sets the Value.

Parameters:
vNew value.
Returns:
The calling instance.
com.sparsity.dex.gdb.Value com::sparsity::dex::gdb::Value::SetBoolean ( bool  v)

Sets the Value.

Parameters:
vNew value.
Returns:
The calling instance.
void com::sparsity::dex::gdb::Value::SetBooleanVoid ( bool  v)

Sets the Value.

Parameters:
v[in] New Boolean value.
com.sparsity.dex.gdb.Value com::sparsity::dex::gdb::Value::SetDouble ( double  v)

Sets the Value.

Parameters:
vNew value.
Returns:
The calling instance.
void com::sparsity::dex::gdb::Value::SetDoubleVoid ( double  v)

Sets the Value.

Parameters:
v[in] New Double value.
com.sparsity.dex.gdb.Value com::sparsity::dex::gdb::Value::SetInteger ( int  v)

Sets the Value.

Parameters:
vNew value.
Returns:
The calling instance.
void com::sparsity::dex::gdb::Value::SetIntegerVoid ( int  v)

Sets the Value.

Parameters:
v[in] New Integer value.
com.sparsity.dex.gdb.Value com::sparsity::dex::gdb::Value::SetLong ( long  v)

Sets the Value.

Parameters:
vNew value.
Returns:
The calling instance.
void com::sparsity::dex::gdb::Value::SetLongVoid ( long  v)

Sets the Value.

Parameters:
v[in] New Long value.
com.sparsity.dex.gdb.Value com::sparsity::dex::gdb::Value::SetNull ( )

Sets the Value to NULL.

Returns:
The calling instance.
com.sparsity.dex.gdb.Value com::sparsity::dex::gdb::Value::SetOID ( long  v)

Sets the Value.

Parameters:
vNew value.
Returns:
The calling instance.
void com::sparsity::dex::gdb::Value::SetOIDVoid ( long  v)

Sets the OID Value.

Parameters:
v[in] New OID value.
com.sparsity.dex.gdb.Value com::sparsity::dex::gdb::Value::SetString ( string  v)

Sets the Value.

Parameters:
vNew value.
Returns:
The calling instance.
void com::sparsity::dex::gdb::Value::SetStringVoid ( System.String  v)

Sets the Value.

Parameters:
v[in] New String value.
com.sparsity.dex.gdb.Value com::sparsity::dex::gdb::Value::SetText ( com.sparsity.dex.gdb.TextStream  v)

Sets the Value.

Parameters:
vNew value.
Returns:
The calling instance.
com.sparsity.dex.gdb.Value com::sparsity::dex::gdb::Value::SetTimestamp ( int  year,
int  month,
int  day,
int  hour,
int  minutes,
int  seconds,
int  millisec 
)

Sets the Value.

Parameters:
yearThe year (>=1970).
monthThe month ([1..12]).
dayThe day of the month ([1..31]).
hourThe hour ([0..23]).
minutesThe minutes ([0..59]).
secondsThe seconds ([0..59]).
millisecThe milliseconds ([0..999]).
Returns:
The calling instance.
com.sparsity.dex.gdb.Value com::sparsity::dex::gdb::Value::SetTimestamp ( System.DateTime  dt)

Sets the Value.

Parameters:
dtNew value.
Returns:
The calling instance.
void com::sparsity::dex::gdb::Value::SetTimestampVoid ( long  v)

Sets the Value.

Parameters:
v[in] New Timestamp value.
void com::sparsity::dex::gdb::Value::SetTimestampVoid ( int  year,
int  month,
int  day,
int  hour,
int  minutes,
int  seconds,
int  millisecs 
)

Sets the Value.

Parameters:
year[in] The year (>=1970).
month[in] The month ([1..12]).
day[in] The of the month ([1..31]).
hour[in] The hour ([0..23]).
minutes[in] The minutes ([0..59]).
seconds[in] The seconds ([0..59]).
millisecs[in] The milliseconds ([0..999]).
void com::sparsity::dex::gdb::Value::SetVoid ( com.sparsity.dex.gdb.Value  v)

Sets the Value.

Parameters:
v[in] New value.
string com::sparsity::dex::gdb::Value::ToString ( )

Gets a string representation of the Value.

It does not work for Text Value instances.