Description Usage Arguments Value Generally about DAO objects See Also Examples
DAO is a list that provides basic backend CRUD functionality to the crudTableServer
.
This DAO stores internally the data into a data frame, that is, the data are NOT stored on the
disk in any way.
1 | dataFrameDao(d)
|
d |
A data frame to create DAO object for |
An S3 object of class dao
, which is a list having as elements the functions
described above
Generally, all DAO objects have to provide the following functions:
getAttributes()
– get the list of attribute definitions. Names of the list
correspond to names of attributes. Each element of that list contains a list with
character element 'type'
that specifies the data type (factor
,
character
, numeric
, logical
). Factors have also a character vector
levels
with level names;
getData()
– get the data frame with all data. The data frame contain all
columns as indicated in
the getAttributes()
function plus the "id"
column with numeric row
identifier;
getRecord(id)
– get the record of given ID, as a list;
insert(record)
– store the new record, the ID attribute of the record must not
be set, it is determined automatically by the DAO object;
update(id, record)
– update the stored record of given ID by data given in the
list record
;
delete(id)
– delete the record of given ID.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.