Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

createData will add an objectid if it is missing and it is the primary key for the schema. However all other uses of these functions require the primary key values to be provided, either in the stProperties struct or as an argument.

Code Block
xml
xml
titleCreatexml
<cfset db.createData(typename,stProperties,dsn) />
Code Block
xml
xml
titleSetxml
<cfset db.setData(typename,stProperties,dsn) />
Code Block
xml
xml
titleGetxml
<cfset db.getData(typename,*objectid,*bDepth,*fields,dsn) />
Info
titleGet
  • ObjectID ... or whatever the primary key is for the schema. Get can be used for simple array properties by specifying parentid and seq
  • bDepth (defaults to 1)
    0: Everything (with full structs for all array field elements)
    1: Everything (only extended array field as structs)
    2: No array fields
    3: No array or longchar fields
  • fields - Overrides the default fields returned. NOTE: the bDepth field may restrict the list further.
Code Block
xml
xml
titleDeletexml
<cfset db.deleteData(typename,*objectid,dsn) />

...