Class SupaRecord
An abstract name/value container representing a single SUPA data record.
A SUPA record is basically just a name/value string dictionary.
Inheritance
System.Object
SupaRecord
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Subsembly.Sepa.dll
Syntax
public abstract class SupaRecord : ISupaRecord
Methods
GetBool(String)
Gets the named field value from this record as a boolean value. If the field
does not exist, then false
is returned.
Declaration
public virtual bool GetBool(string sName)
Parameters
Type |
Name |
Description |
System.String |
sName |
|
Returns
Type |
Description |
System.Boolean |
|
GetDate(String)
Declaration
public virtual DateTime GetDate(string sName)
Parameters
Type |
Name |
Description |
System.String |
sName |
|
Returns
Type |
Description |
System.DateTime |
|
GetDecimal(String)
Declaration
public virtual decimal GetDecimal(string sName)
Parameters
Type |
Name |
Description |
System.String |
sName |
|
Returns
Type |
Description |
System.Decimal |
|
GetNumber(String)
Declaration
public virtual int GetNumber(string sName)
Parameters
Type |
Name |
Description |
System.String |
sName |
|
Returns
Type |
Description |
System.Int32 |
|
GetValue(String)
Gets the named field value from this record as a formatted string.
Declaration
public abstract string GetValue(string sName)
Parameters
Type |
Name |
Description |
System.String |
sName |
|
Returns
Type |
Description |
System.String |
|
HasValue(String)
Indicates whether the record contains a non-null entry for the given field.
Declaration
public virtual bool HasValue(string sName)
Parameters
Type |
Name |
Description |
System.String |
sName |
|
Returns
Type |
Description |
System.Boolean |
|
SetBool(String, Boolean)
Sets the named field value from the SUPA formatted boolean value.
Declaration
public virtual void SetBool(string sName, bool fValue)
Parameters
Type |
Name |
Description |
System.String |
sName |
|
System.Boolean |
fValue |
|
SetDate(String, DateTime)
Declaration
public virtual void SetDate(string sName, DateTime tDate)
Parameters
Type |
Name |
Description |
System.String |
sName |
|
System.DateTime |
tDate |
|
SetDecimal(String, Decimal)
Declaration
public virtual void SetDecimal(string sName, decimal nValue)
Parameters
Type |
Name |
Description |
System.String |
sName |
|
System.Decimal |
nValue |
|
SetNumber(String, Int32)
Declaration
public virtual void SetNumber(string sName, int nValue)
Parameters
Type |
Name |
Description |
System.String |
sName |
|
System.Int32 |
nValue |
|
SetValue(String, String)
Sets the named field value from the SUPA formatted value string.
Declaration
public abstract void SetValue(string sName, string sValue)
Parameters
Type |
Name |
Description |
System.String |
sName |
|
System.String |
sValue |
|
Implements
See Also