LoadRowsConfig
Configuration object for loading entity rows independently.
Methods
addParameter
addParameter(
pName,pValue):LoadRowsConfig
Adds a parameter value when loading the entity
Parameters
string | number | booleanname of parameter
string | number | booleanvalue of parameter
Returns
LoadRowsConfigapplyRecordSorting
applyRecordSorting(
pRecordSortingMode):LoadRowsConfig
Sets a flag that specifies whether the record order should be applied when loading the entity data.
If not set, this property is per default entities.RECORD_SORTING_NONE.
Loading and applying the record order costs resources and time but is necessary sometimes. This property will not affect required sorting columns, for example when the database requires a guaranteed order like the UID-column.
Parameters
string | number | booleanwhen entities.RECORD_SORTING_FULL, the record order is calculated and applied when loading the rows. when entities.RECORD_SORTING_NONE, no record order is calculated and thus none is applied.
Returns
LoadRowsConfigconsumer
consumer(
pConsumer):LoadRowsConfig
Sets the name of the consumer, which points to the entity to use
Parameters
string | number | booleanname of consumer
Returns
LoadRowsConfigcount
count(
pCount):LoadRowsConfig
Sets the maximum number of rows to load.
Parameters
numbernumber of rows
Returns
LoadRowsConfigentity
entity(
pEntity):LoadRowsConfig
Sets the name of the entity to load
Parameters
string | number | booleanname of entity
Returns
LoadRowsConfigfields
fields(
pFields):LoadRowsConfig
Sets the name of the fields to load
Parameters
string[]the name of fields
Returns
LoadRowsConfigfieldValues
fieldValues(
pNewFieldValues):LoadRowsConfig
Sets the field values for this entity
Parameters
anythe new field values
Returns
LoadRowsConfigfilter
filter(
pFilter):LoadRowsConfig
Sets a filter when loading the entity. Can contain the filter in json format as a string or a filter builder using neonFilter.createFilterGroup()
Parameters
anythe filter, JSON - format as defined for entity-filters
Returns
LoadRowsConfigfromEntityRecordsRecipe
fromEntityRecordsRecipe(
pEntityRecordsRecipe):LoadRowsConfig
Sets all properties for a row config from an entity records description
The "grouping"-property is ignored because it will not affect the resulting data rows.
Parameters
anyJSON entity records description; This may be a EntityRecordsRecipeBuilder or a String (stringified EntityRecordsRecipeBuilder)
Returns
LoadRowsConfigThrows
May throw an exception.
ignorePermissions
ignorePermissions(
pIgnore):LoadRowsConfig
Ignores permissions, which are set for this entity
Parameters
booleantrue ignores permissions, default is false
Returns
LoadRowsConfiglocale
locale(
pLocale):LoadRowsConfig
Overwrites the locale to be used for execution. Only possible in a server process.
Parameters
string | number | booleanthe locale to be used for execution
Returns
LoadRowsConfigprovider
provider(
pProvider):LoadRowsConfig
Sets the name of the provider für loading the entity
Parameters
string | number | booleanname of provider
Returns
LoadRowsConfigskipPrevalidation
skipPrevalidation(
pSkip):LoadRowsConfig
Skips the pre-validation of changes in the entity
Parameters
booleantrue skips the pre-validation false
Returns
LoadRowsConfigstartrow
startrow(
pStartRow):LoadRowsConfig
Sets the starting row to load. Useful for paging
Parameters
numberthe number of the row to start, 0 ist first
Returns
LoadRowsConfigtimezone
timezone(
pTimezone):LoadRowsConfig
Overwrites the timezone to be used for execution. Only possible in a server process.
Parameters
string | number | booleanthe timezone to be used for execution
Returns
LoadRowsConfiguid
uid(
pUid):LoadRowsConfig
Set a single uid to load when loading the entity. Overrides uids().
Parameters
string | number | booleanvalue of uid
Returns
LoadRowsConfiguids
uids(
pUids):LoadRowsConfig
Sets multiple uids to load when loading the entity. Overrides uid().
Parameters
string[]values if uids
Returns
LoadRowsConfiguser
user(
pUser):LoadRowsConfig
Overwrites the user to be used for execution. Only possible in a server process.
To perform an entities-action in a serverProcess with a user given here the process itself has to be run under an user-context. So this will only overwrite which user is used but it is not possible to run a serverProcess without an user-context and then set the user with this method. That is due to technical restrictions how and when the Package entities.*** is created within JDito.
In short: Set at least a technical user to execute the serverProcess when using this property in a serverProcess.
Parameters
string | number | booleanthe title for the user to be used for execution
Returns
LoadRowsConfig