|
ibi Patterns .NET API
|
The base class for all types of records used in the ibi™ Patterns - Search interface. More...
Public Member Functions | |
| String | getKey () |
| Get the key of a record. | |
| String | getParentKey () |
| Retrieve the parent key of a record. | |
| int | numBytes () |
| Return the number of bytes of data in this record. | |
| String[] | getFields () |
| Can be used to get the content of a record. | |
| String[] | getAttrNames () |
| Returns the names of name/value attributes of the record. | |
| String[] | getAttrValues () |
| Returns the values of name/value attributes of the record. | |
| String | getAttribute (String attr_name) |
| Gets the specified attribute value of the record. | |
| override String | ToString () |
The base class for all types of records used in the ibi™ Patterns - Search interface.
Records can be single table records (see NetricsRecord) or compound records (see NetricsCompoundRecord) consisting of a parent record and one or more child records. If a single table record is required the NetricsRecord class should be used. If compound records are required the NetricsCompoundRecord class should be used. If a method handles either type of record this class should be used. In general only generic utilities or applications that simply pass data through should use this base class.
This class contains the implementation for the common properties of all record types. All records have field structure. The field structure in the record must match the field structure of the table it is loaded into.
|
inline |
Gets the specified attribute value of the record.
This assumes the last field of the record contains the encoded attribute values and attempts to decode them. If the decode fails it returns null, otherwise it attempts to retrieve the named attributes, returning the value if found, null if not.
| attr_name | Name of the attribute to retrieve. |
|
inline |
Returns the names of name/value attributes of the record.
Returns null if the record has no name/value attributes.
|
inline |
Returns the values of name/value attributes of the record.
Returns null if the record has no name/value attributes.
|
inline |
Can be used to get the content of a record.
This sample shows how to perform a search of an ibi™ Patterns - Search table using a Simple query and retrieving data using the getFields method.
|
inline |
Get the key of a record.
This does not contain any parent record key if this is a child table.
|
inline |
Retrieve the parent key of a record.
If this is not a child record this returns null.
|
inline |
Return a human readable string representation of the record. This returns a string version of the record. The format is a single CSV format record where the first field is the record key, the second field is the parent key, and the following fields are are the data fields of the record, including the string encoded attributes field if the record contains attributes. All values are double quoted unless the value was null, in which case the value is the empty string with no double quotes.