entities
Methods
createConfigForAddingRows
createConfigForAddingRows():
CreateRowConfig
Create and return a config object for updating rows.
Returns
RestConfig
createConfigForDeletingRows
createConfigForDeletingRows():
DeleteRowConfig
Create and return a config object for deleting rows.
Returns
RestConfig
createConfigForLoadingConsumerRows
createConfigForLoadingConsumerRows():
LoadConsumerRowsConfig
Create and return a config object for loading rows.
Returns
RestConfig
createConfigForLoadingRows
createConfigForLoadingRows():
LoadRowsConfig
Create and return a config object for loading rows.
Returns
RestConfig
createConfigForUpdatingRows
createConfigForUpdatingRows():
UpdateRowConfig
Create and return a config object for updating rows.
Returns
RestConfig
createRow
createRow(
pCreateConfig):string
Adds a row of a specific entity with all the given field values
mandatory for config: entity, fieldValues optional for config: provider, parameters, ignorePermissions, user (only in server process)
Parameters
Returns
stringThrows
Exception
deleteRow
deleteRow(
pDeleteConfig):void
Deletes a single row with the passed uid
mandatory for config: entity, uid optional for config: provider, parameters, ignorePermissions, user (only in server process)
Parameters
Returns
voidThrows
AditoException
getRow
getRow(
pLoadConfig):any
Loads a single row. The notation of this result is json.
mandatory for config: entity, fields, uid optional for config: provider, parameters, user (only in server process)
Parameters
Returns
anyThrows
May throw an exception.
getRowCount
getRowCount(
pLoadConfig):number
Loads the number of rows. If the uids-property in the given config is set to an empty array this method will return the value 0 without consulting the entity. However, this will not happen when null is passed in the uids-property.
mandatory for config (independent entity): entity optional for config (independent entity): provider, parameters, uids/filter, user (only in server process)
mandatory for config (consumer entity): consumer optional for config (consumer entity): filter
Parameters
Returns
numberThrows
May throw an exception.
getRows
getRows(
pLoadConfig):any[]
Loads multiple row. The notation of this result is an array of json.
If the uids-property in the given config is set to an empty array this method will return immediately an empty array without consulting the entity. However, this will not happen when null is passed in the uids-property.
mandatory for config (independent entity): entity, fields optional for config (independent entity): optional: provider, parameters, uids, filter, startrow, count Passing in the fields-property only the "#UID"-field will use a performance optimized loading mechanism if the RecordContainer supports this. Every DBRecordContainer supports this out of the box.
mandatory for config (consumer entity): mandatory: consumer, fields optional for config (consumer entity): optional: filter, startrow, count
Parameters
Returns
any[]Throws
May throw an exception.
invalidateCache
invalidateCache(
pEntity?,pRecordContainer?):boolean
Will delete all cache entries for each session on the given record container on the given entity.
Parameters
string | number | booleanThe entity for which the cache entries shall be deleted.
string | number | booleanThe record container for which the cache entries shall be deleted.
Returns
booleanIf any cache entries have been deleted.
Throws
May throw an exception.
updateRow
updateRow(
pUpdateConfig):void
Loads the entity with the passed uid and saves new field values on it
mandatory for config: entity, fieldValues, uid optional for config: provider, parameters, ignorePermissions, user (only in server process)
Parameters
Returns
voidThrows
AditoException
Properties
EOF
numberConstant for the number of rows:
Get all rows.
RECORD_SORTING_FULL
stringConstant for specifying a sorting mode when loading data. FULL means use the full bandwidth of available order configurations.
For more details, see:
-
applyRecordSorting of createConfigForLoadingRows
-
applyRecordSorting of createConfigForConsumerLoadingRows
RECORD_SORTING_NONE
stringConstant for specifying a sorting mode when loading data. NONE means no particular sorting.
For more details, see:
-
applyRecordSorting of createConfigForLoadingRows
-
applyRecordSorting of createConfigForConsumerLoadingRows