This document describes the database schema and classes available in build 128 of the WAR database API.
The DatabaseRoutines class provides several miscellaneous routines relating to the API as a whole:
WAR.DatabaseRoutines.Build;WAR::DatabaseRoutines::Build();WAR.DatabaseRoutines.ConnectionString = "DSN=My DSN";WAR::DatabaseRoutines::SetDSN("My DSN");WAR command entries
| Column | Type | Description |
| RequestID | string(64) (read-only) | Request ID |
| Command | string(32) | Command |
| Source | string(32) | Source |
| RequestDate | string(23) | Request date, as a string |
| RequestStatus | string(32) | Request status |
New objects of this class are constructed with:
new WAR.Command(string RequestID)new WAR::Command($RequestID)The following methods return a single object, or a null reference if the requested object was not found:
Lookup(string RequestID)The following methods return a list of objects:
GetAll()Other methods:
Save() -- save the object to the database.Delete() -- delete the object from the database.Error() (Perl only) -- get error message from last operation, if any.WAR command parameters
| Column | Type | Description |
| RequestID | string(64) (read-only) | Request ID |
| ParamName | string(32) (read-only) | Parameter name |
| ParamValue | string(255) (read-only) | Parameter value |
New objects of this class are constructed with:
new WAR.Param(string RequestID, string ParamName, string ParamValue)new WAR::Param($RequestID, $ParamName, $ParamValue)The following methods return a single object, or a null reference if the requested object was not found:
Lookup(string RequestID, string ParamName, string ParamValue)The following methods return a list of objects:
GetAll()GetParametersForRequest(string RequestID)GetParameter(string RequestID, string ParamName)Other methods:
Save() -- save the object to the database.Delete() -- delete the object from the database.Error() (Perl only) -- get error message from last operation, if any.| Object | Type | Description |
| Request | Command (read-only) | The WAR request entry |
WAR results
| Column | Type | Description |
| RequestID | string(64) (read-only) | Request ID |
| ResultAgent | string(255) (read-only) | Agent generating the result |
| ResultContext | string(255) (read-only) | Context of the result |
| ResultFieldName | string(32) (read-only) | Field name of the result |
| ResultValue | string(255) (read-only) | The result text |
New objects of this class are constructed with:
new WAR.Result(string RequestID, string ResultAgent, string ResultContext, string ResultFieldName, string ResultValue)new WAR::Result($RequestID, $ResultAgent, $ResultContext, $ResultFieldName, $ResultValue)The following methods return a single object, or a null reference if the requested object was not found:
Lookup(string RequestID, string ResultAgent, string ResultContext, string ResultFieldName, string ResultValue)The following methods return a list of objects:
GetAll()GetRequestResults(string RequestID)Other methods:
Save() -- save the object to the database.Delete() -- delete the object from the database.Error() (Perl only) -- get error message from last operation, if any.| Object | Type | Description |
| Request | Command (read-only) | The WAR request entry |