The essence this CODB class is storehouse of stored objects - objects whouse structure descript into dictionary.
APPEND | Append object to storehouse. |
CHECKBODY | Checks object a valid class. |
CLOSE | Close opened files. |
CREATE | Create empty depository. |
DELETE | Delete object from storehouse. |
GETVALUE | Get object from storehouse. |
ID4PRIMARYKEY | Returns object identifier. |
IDLIST | Returns object of class IDLIST. |
NEW | Initiation new CODBDEPOSITORY object. |
OPEN | Open all necessary files. |
PADRBODY | Makes data representation. |
SELECT | Returns identifier list of selected objects. |
UPDATE | Update object into storehouse. |
Append(<oData>, <sClassID>) --> <sDataID>
Append() appends new object <oData> to storehouse as object of class <sClassID> and returns objects identifier <sDataID>.
<::Error> contain error descriptions if araised.
CheckBody(<oData>, <sClassID>) --> <oData>
CheckBody() checks object <oData> a valid class <sClassID>. If object is a valid, CheckBody() fills <oData> properties the default values if necessary.
<::Error> contain error descriptions if araised.
Close() --> TRUE || FALSE
Close() is close files or connection with SQL server.
Create() --> TRUE || FALSE
Create() returns TRUE if new empty depository created. Usualy, this method do not needy to direct invitation. It's call automaticaly when new depository appending to CODBDICTIONARY.
<::Error> contain error descriptions if araised.
Delete(<sDataID>) --> TRUE || FALSE
Delete() deletes object with identifier <sDataID> from depository.
<::Error> contain error descriptions if araised.
GetValue(<sDataID>) --> <oData>
GetValue() gets form depository and returns object <oData> with identifier <sDataID>.
<::Error> contain error descriptions if araised.
Id4PrimaryKey(<sClassName>, <sKeyName>, <KeyValue>) --> <sDataID>
Id4ProperyKey() returns <sDataID> - identifier of founded object whouse properties with name <sKeyName> is equal <KeyValue>.
IdList(<sClassID>[, <nOrder>][, <sName>][, <sWhere>]) --> <oIDList>
IdList() returns <oIDList> - object of class CODBIDLIST.
New(<sDepID>, <sUser>, <sPasswd>) --> CODBDEPOSITORY object
New() inits new CODBDEPOSITORY object and returns it.
If object <sDepID> already exist, New() openes and returns this ddepository.
Open() --> TRUE || FALSE
Open() openes all necessary files or openes connection with SQL server.
<::Error> contain error descriptions if araised.
PadrBody(<oData>, <sClassID>) --> <oData>
PadrBody() makes data representation for <oData> to class <sClassID>.
<::Error> contain error descriptions if araised.
Select(<sClassID>[, <nOrder>][, <sName>][, <sWhere>]) --> <aIdent>
Select() returns for class <sClassID> identifier list <aIdent> selected objects in order <nOrder> whose attribute <Name> == <sName> and attributes equal <sWhere>.
<::Error> contain error descriptions if araised.