Class MockDSExportSettings
- All Implemented Interfaces:
HasHandlers
DataSource by Reify.getMockDS().-
Field Summary
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThecriteriaused to fetch the records returned as part of the export or serialization.booleanWhen true, fields whose values arenullorundefinedin every fetched record are completely omitted from the exportedMockDataSource? both the field declaration and the corresponding record property are dropped.intWhen non-zero, automatically discoversDataSourcesreachable from the explicitly requested DataSources viaforeignKeyrelationships, up to this many hops.Determines the format emitted byReify.getMockDS().booleanWhen true, fields whose values arenullorundefinedin every fetched record are automatically markeddetail:truein the exportedMockDataSource.booleanWhether to include custom-definedSimpleTypes.booleanShouldforeign keyrelationships be included in the export or serialization of theDataSource?booleanShouldDataSourceField.includeFromdeclarations be preserved in the exportedMockDataSource? Whentrue, the export reconstructsincludeFrompaths from the server-resolved field metadata so the clientOnly DataSource can resolve cross-DS field lookups at runtime.booleanShouldimage fieldsbe included in the export or serialization of theDataSource? They are excluded by default since the stored paths are unlikely to be correct when placed in any other environment, such as Reify.booleanWhen true, foreign-key declarations whose targetDataSourceis not in the set of DataSources being exported are automatically stripped from the output.intWhen a self-referentialforeign\n keyis detected, an exploratory fetch counts the root nodes before committing to tree-style multi-level fetching.String[]IDsof DataSources that should not be treated astree DataSourcesdespite having self-referentialforeign\n keys.intThe number of levels of nodes to include, for DataSources that define atree relationshipbetween fields by declaring aforeignKeyon one field that refers to another from that same DataSource.intThe number of rows of data to include, if more meet thecriteria.String[]Foreign keyrelationships to exclude from the dependency graph that determines fetch order and relation criteria.static MockDSExportSettingsgetOrCreateRef(JavaScriptObject jsObj) An object mappingDataSource IDstoCriteriathat should be applied when fetching records for that DataSource.The properties that will be specified on theDSRequestwhen fetching records.The properties that will be specified on theDSRequestwhen fetching records.booleanFor DataSources that define atree relationshipbetween fields by declaring aforeignKeyon one field that refers to another from that same DataSource, shouldcriteriabe applied only to the root node? If false, the criteria will be applied to all nodes.booleanWhentrue, fetches records from eachDataSourceone at a time rather than batching all independent fetches into a single queued request.An object mappingDataSource IDsto arrays of primary key values identifying the specific root nodes to include for tree DataSources.Controls whichvalidators, if any, to include in the fields of the exportedMockDataSource.setCriteria(Criteria criteria) Thecriteriaused to fetch the records returned as part of the export or serialization.setDropEmptyFields(boolean dropEmptyFields) When true, fields whose values arenullorundefinedin every fetched record are completely omitted from the exportedMockDataSource? both the field declaration and the corresponding record property are dropped.setFollowFKDepth(int followFKDepth) When non-zero, automatically discoversDataSourcesreachable from the explicitly requested DataSources viaforeignKeyrelationships, up to this many hops.setFormat(MockDSExportFormat format) Determines the format emitted byReify.getMockDS().setHideEmptyFields(boolean hideEmptyFields) When true, fields whose values arenullorundefinedin every fetched record are automatically markeddetail:truein the exportedMockDataSource.setIncludeCustomSimpleTypes(boolean includeCustomSimpleTypes) Whether to include custom-definedSimpleTypes.setIncludeFKs(boolean includeFKs) Shouldforeign keyrelationships be included in the export or serialization of theDataSource?setIncludeFrom(boolean includeFrom) ShouldDataSourceField.includeFromdeclarations be preserved in the exportedMockDataSource? Whentrue, the export reconstructsincludeFrompaths from the server-resolved field metadata so the clientOnly DataSource can resolve cross-DS field lookups at runtime.setIncludeImageFields(boolean includeImageFields) Shouldimage fieldsbe included in the export or serialization of theDataSource? They are excluded by default since the stored paths are unlikely to be correct when placed in any other environment, such as Reify.setLocalFKsOnly(boolean localFKsOnly) When true, foreign-key declarations whose targetDataSourceis not in the set of DataSources being exported are automatically stripped from the output.setMaxTreeRoots(int maxTreeRoots) When a self-referentialforeign\n keyis detected, an exploratory fetch counts the root nodes before committing to tree-style multi-level fetching.setNonTreeDataSources(String... nonTreeDataSources) IDsof DataSources that should not be treated astree DataSourcesdespite having self-referentialforeign\n keys.setNumLevels(int numLevels) The number of levels of nodes to include, for DataSources that define atree relationshipbetween fields by declaring aforeignKeyon one field that refers to another from that same DataSource.setNumRows(int numRows) The number of rows of data to include, if more meet thecriteria.setOmitRelations(String... omitRelations) Foreign keyrelationships to exclude from the dependency graph that determines fetch order and relation criteria.setPerDSCriteria(Map perDSCriteria) An object mappingDataSource IDstoCriteriathat should be applied when fetching records for that DataSource.setRequestProperties(DSRequest requestProperties) The properties that will be specified on theDSRequestwhen fetching records.setRequestProperties(DSRequest... requestProperties) The properties that will be specified on theDSRequestwhen fetching records.setRootCriteriaOnly(boolean rootCriteriaOnly) For DataSources that define atree relationshipbetween fields by declaring aforeignKeyon one field that refers to another from that same DataSource, shouldcriteriabe applied only to the root node? If false, the criteria will be applied to all nodes.setSequentialFetching(boolean sequentialFetching) Whentrue, fetches records from eachDataSourceone at a time rather than batching all independent fetches into a single queued request.setTreeRoots(Map treeRoots) An object mappingDataSource IDsto arrays of primary key values identifying the specific root nodes to include for tree DataSources.setValidatorMode(MockDSExportValidatorMode validatorMode) Controls whichvalidators, if any, to include in the fields of the exportedMockDataSource.Methods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
-
Constructor Details
-
MockDSExportSettings
public MockDSExportSettings() -
MockDSExportSettings
-
-
Method Details
-
getOrCreateRef
-
setCriteria
Thecriteriaused to fetch the records returned as part of the export or serialization.- Parameters:
criteria- New criteria value. Default value is null- Returns:
MockDSExportSettingsinstance, for chaining setter calls
-
getCriteria
Thecriteriaused to fetch the records returned as part of the export or serialization.- Returns:
- Current criteria value. Default value is null
-
setDropEmptyFields
When true, fields whose values arenullorundefinedin every fetched record are completely omitted from the exportedMockDataSource? both the field declaration and the corresponding record property are dropped. This produces a compact schema containing only fields that carry actual data, which is ideal for reporting demos and other contexts where schema noise should be minimized.Primary-key and foreign-key fields are always retained regardless of data content, since they are structurally required.
This setting is stronger than
hideEmptyFields: when both are true,dropEmptyFieldstakes precedence and empty fields are removed rather than merely demoted todetail:true.- Parameters:
dropEmptyFields- New dropEmptyFields value. Default value is false- Returns:
MockDSExportSettingsinstance, for chaining setter calls- See Also:
-
getDropEmptyFields
public boolean getDropEmptyFields()When true, fields whose values arenullorundefinedin every fetched record are completely omitted from the exportedMockDataSource? both the field declaration and the corresponding record property are dropped. This produces a compact schema containing only fields that carry actual data, which is ideal for reporting demos and other contexts where schema noise should be minimized.Primary-key and foreign-key fields are always retained regardless of data content, since they are structurally required.
This setting is stronger than
hideEmptyFields: when both are true,dropEmptyFieldstakes precedence and empty fields are removed rather than merely demoted todetail:true.- Returns:
- Current dropEmptyFields value. Default value is false
- See Also:
-
setFollowFKDepth
When non-zero, automatically discoversDataSourcesreachable from the explicitly requested DataSources viaforeignKeyrelationships, up to this many hops. A value of 1 adds DataSources directly referenced by a foreignKey on any requested DataSource; a value of 2 additionally adds DataSources referenced by those, and so on.This is useful when exporting a set of interlinked DataSources and you want to automatically include all related DataSources without enumerating them manually. The traversal walks both directions: from a field's
foreignKeyto the target DataSource, and from a target DataSource back to any DataSource that references it. Self-referential (tree) FKs are not counted as a hop.- Parameters:
followFKDepth- New followFKDepth value. Default value is 0- Returns:
MockDSExportSettingsinstance, for chaining setter calls
-
getFollowFKDepth
public int getFollowFKDepth()When non-zero, automatically discoversDataSourcesreachable from the explicitly requested DataSources viaforeignKeyrelationships, up to this many hops. A value of 1 adds DataSources directly referenced by a foreignKey on any requested DataSource; a value of 2 additionally adds DataSources referenced by those, and so on.This is useful when exporting a set of interlinked DataSources and you want to automatically include all related DataSources without enumerating them manually. The traversal walks both directions: from a field's
foreignKeyto the target DataSource, and from a target DataSource back to any DataSource that references it. Self-referential (tree) FKs are not counted as a hop.- Returns:
- Current followFKDepth value. Default value is 0
-
setFormat
Determines the format emitted byReify.getMockDS().- Parameters:
format- New format value. Default value is "xmlMockDS"- Returns:
MockDSExportSettingsinstance, for chaining setter calls
-
getFormat
Determines the format emitted byReify.getMockDS().- Returns:
- Current format value. Default value is "xmlMockDS"
-
setHideEmptyFields
When true, fields whose values arenullorundefinedin every fetched record are automatically markeddetail:truein the exportedMockDataSource. This keeps structurally important fields (primary keys and foreign keys) visible regardless of data content, while demoting columns that carry no data so they don't clutter default views.See also
dropEmptyFieldsto fully remove empty fields from the exported schema and record data.- Parameters:
hideEmptyFields- New hideEmptyFields value. Default value is false- Returns:
MockDSExportSettingsinstance, for chaining setter calls- See Also:
-
getHideEmptyFields
public boolean getHideEmptyFields()When true, fields whose values arenullorundefinedin every fetched record are automatically markeddetail:truein the exportedMockDataSource. This keeps structurally important fields (primary keys and foreign keys) visible regardless of data content, while demoting columns that carry no data so they don't clutter default views.See also
dropEmptyFieldsto fully remove empty fields from the exported schema and record data.- Returns:
- Current hideEmptyFields value. Default value is false
- See Also:
-
setIncludeCustomSimpleTypes
Whether to include custom-definedSimpleTypes.- Parameters:
includeCustomSimpleTypes- New includeCustomSimpleTypes value. Default value is false- Returns:
MockDSExportSettingsinstance, for chaining setter calls
-
getIncludeCustomSimpleTypes
public boolean getIncludeCustomSimpleTypes()Whether to include custom-definedSimpleTypes.- Returns:
- Current includeCustomSimpleTypes value. Default value is false
-
setIncludeFKs
Shouldforeign keyrelationships be included in the export or serialization of theDataSource?- Parameters:
includeFKs- New includeFKs value. Default value is true- Returns:
MockDSExportSettingsinstance, for chaining setter calls
-
getIncludeFKs
public boolean getIncludeFKs()Shouldforeign keyrelationships be included in the export or serialization of theDataSource?- Returns:
- Current includeFKs value. Default value is true
-
setIncludeFrom
ShouldDataSourceField.includeFromdeclarations be preserved in the exportedMockDataSource? Whentrue, the export reconstructsincludeFrompaths from the server-resolved field metadata so the clientOnly DataSource can resolve cross-DS field lookups at runtime.- Parameters:
includeFrom- New includeFrom value. Default value is true- Returns:
MockDSExportSettingsinstance, for chaining setter calls- See Also:
-
getIncludeFrom
public boolean getIncludeFrom()ShouldDataSourceField.includeFromdeclarations be preserved in the exportedMockDataSource? Whentrue, the export reconstructsincludeFrompaths from the server-resolved field metadata so the clientOnly DataSource can resolve cross-DS field lookups at runtime.- Returns:
- Current includeFrom value. Default value is true
- See Also:
-
setIncludeImageFields
Shouldimage fieldsbe included in the export or serialization of theDataSource? They are excluded by default since the stored paths are unlikely to be correct when placed in any other environment, such as Reify.- Parameters:
includeImageFields- New includeImageFields value. Default value is false- Returns:
MockDSExportSettingsinstance, for chaining setter calls
-
getIncludeImageFields
public boolean getIncludeImageFields()Shouldimage fieldsbe included in the export or serialization of theDataSource? They are excluded by default since the stored paths are unlikely to be correct when placed in any other environment, such as Reify.- Returns:
- Current includeImageFields value. Default value is false
-
setLocalFKsOnly
When true, foreign-key declarations whose targetDataSourceis not in the set of DataSources being exported are automatically stripped from the output. This prevents the exported file from containing dangling FK references to DataSources that do not exist at runtime, which would cause inner-join filtering to silently drop records and generate console warnings.This is a convenient alternative to manually enumerating many
omitRelationsentries when the export set is a small subset of a large interconnected schema.- Parameters:
localFKsOnly- New localFKsOnly value. Default value is false- Returns:
MockDSExportSettingsinstance, for chaining setter calls- See Also:
-
getLocalFKsOnly
public boolean getLocalFKsOnly()When true, foreign-key declarations whose targetDataSourceis not in the set of DataSources being exported are automatically stripped from the output. This prevents the exported file from containing dangling FK references to DataSources that do not exist at runtime, which would cause inner-join filtering to silently drop records and generate console warnings.This is a convenient alternative to manually enumerating many
omitRelationsentries when the export set is a small subset of a large interconnected schema.- Returns:
- Current localFKsOnly value. Default value is false
- See Also:
-
setMaxTreeRoots
When a self-referentialforeign\n keyis detected, an exploratory fetch counts the root nodes before committing to tree-style multi-level fetching. If there are more root nodes thanmaxTreeRoots, the DataSource is exported as a flat table with the standardnumRowslimit instead.This prevents unbounded queries on DataSources where a self-FK is not a true tree hierarchy. Common cases include an orders table where most orders are roots (not created from a quotation), or an employees table where a "referred by" self-FK yields thousands of unlinked root nodes.
Set to
nullto disable the exploratory check entirely.- Parameters:
maxTreeRoots- New maxTreeRoots value. Default value is 500- Returns:
MockDSExportSettingsinstance, for chaining setter calls- See Also:
-
getMaxTreeRoots
public int getMaxTreeRoots()When a self-referentialforeign\n keyis detected, an exploratory fetch counts the root nodes before committing to tree-style multi-level fetching. If there are more root nodes thanmaxTreeRoots, the DataSource is exported as a flat table with the standardnumRowslimit instead.This prevents unbounded queries on DataSources where a self-FK is not a true tree hierarchy. Common cases include an orders table where most orders are roots (not created from a quotation), or an employees table where a "referred by" self-FK yields thousands of unlinked root nodes.
Set to
nullto disable the exploratory check entirely.- Returns:
- Current maxTreeRoots value. Default value is 500
- See Also:
-
setNonTreeDataSources
IDsof DataSources that should not be treated astree DataSourcesdespite having self-referentialforeign\n keys. Self-FKs on these DataSources are preserved in the exported schema but do not trigger the automatic multi-level tree fetching that normally occurs when a self-FK is detected.Use this when a self-referential FK represents a data relationship rather than a parent-child hierarchy ? for example, a sales order referencing the quotation it was created from, or an employee referencing the colleague who referred them. In these cases, tree fetching would issue an unbounded root-node query covering most of the table.
See also
maxTreeRoots, which detects these cases automatically without requiring you to enumerate DataSources.- Parameters:
nonTreeDataSources- New nonTreeDataSources value. Default value is null- Returns:
MockDSExportSettingsinstance, for chaining setter calls- See Also:
-
getNonTreeDataSources
IDsof DataSources that should not be treated astree DataSourcesdespite having self-referentialforeign\n keys. Self-FKs on these DataSources are preserved in the exported schema but do not trigger the automatic multi-level tree fetching that normally occurs when a self-FK is detected.Use this when a self-referential FK represents a data relationship rather than a parent-child hierarchy ? for example, a sales order referencing the quotation it was created from, or an employee referencing the colleague who referred them. In these cases, tree fetching would issue an unbounded root-node query covering most of the table.
See also
maxTreeRoots, which detects these cases automatically without requiring you to enumerate DataSources.- Returns:
- Current nonTreeDataSources value. Default value is null
- See Also:
-
setNumLevels
The number of levels of nodes to include, for DataSources that define atree relationshipbetween fields by declaring aforeignKeyon one field that refers to another from that same DataSource.- Parameters:
numLevels- New numLevels value. Default value is 3- Returns:
MockDSExportSettingsinstance, for chaining setter calls- See Also:
-
getNumLevels
public int getNumLevels()The number of levels of nodes to include, for DataSources that define atree relationshipbetween fields by declaring aforeignKeyon one field that refers to another from that same DataSource.- Returns:
- Current numLevels value. Default value is 3
- See Also:
-
setNumRows
The number of rows of data to include, if more meet thecriteria.- Parameters:
numRows- New numRows value. Default value is 20- Returns:
MockDSExportSettingsinstance, for chaining setter calls
-
getNumRows
public int getNumRows()The number of rows of data to include, if more meet thecriteria.- Returns:
- Current numRows value. Default value is 20
-
setOmitRelations
Foreign keyrelationships to exclude from the dependency graph that determines fetch order and relation criteria. Omitted FKs do not generate dependency-chain fetch criteria, but FK declarations are still preserved in the exported schema so thatDataSourceField.foreignDisplayFieldandDataSourceField.displayFieldcan resolve display values at runtime from the relatedMockDataSource'scacheData. To fully strip FK declarations for DataSources not in the export set, uselocalFKsOnlyinstead.Entries can use either of two formats:
- targetDS.targetField – omits every FK that references that target, from any DataSource. Use this for lookup/reference tables whose broad criteria would dilute the dependency chain.
- sourceDS.sourceField – omits only the named field's FK on the named DataSource, leaving other DataSources' references to the same target intact. Use this to break circular FK dependencies.
- Parameters:
omitRelations- New omitRelations value. Default value is null- Returns:
MockDSExportSettingsinstance, for chaining setter calls- See Also:
-
getOmitRelations
Foreign keyrelationships to exclude from the dependency graph that determines fetch order and relation criteria. Omitted FKs do not generate dependency-chain fetch criteria, but FK declarations are still preserved in the exported schema so thatDataSourceField.foreignDisplayFieldandDataSourceField.displayFieldcan resolve display values at runtime from the relatedMockDataSource'scacheData. To fully strip FK declarations for DataSources not in the export set, uselocalFKsOnlyinstead.Entries can use either of two formats:
- targetDS.targetField – omits every FK that references that target, from any DataSource. Use this for lookup/reference tables whose broad criteria would dilute the dependency chain.
- sourceDS.sourceField – omits only the named field's FK on the named DataSource, leaving other DataSources' references to the same target intact. Use this to break circular FK dependencies.
- Returns:
- Current omitRelations value. Default value is null
- See Also:
-
setPerDSCriteria
An object mappingDataSource IDstoCriteriathat should be applied when fetching records for that DataSource. The criteria are combined with any globalCriteriaand any relation-derived criteria usingDataSource.combineCriteria().For tree DataSources, per-DS criteria are applied to every level of the tree fetch. To restrict only which roots are fetched while allowing unrestricted child expansion, use
treeRootsinstead.- Parameters:
perDSCriteria- New perDSCriteria value. Default value is null- Returns:
MockDSExportSettingsinstance, for chaining setter calls- See Also:
-
getPerDSCriteria
An object mappingDataSource IDstoCriteriathat should be applied when fetching records for that DataSource. The criteria are combined with any globalCriteriaand any relation-derived criteria usingDataSource.combineCriteria().For tree DataSources, per-DS criteria are applied to every level of the tree fetch. To restrict only which roots are fetched while allowing unrestricted child expansion, use
treeRootsinstead.- Returns:
- Current perDSCriteria value. Default value is null
- See Also:
-
setRequestProperties
The properties that will be specified on theDSRequestwhen fetching records. You can pass an array of different request properties matching the length of thedsNamesparam ofReify.getMockDS()orReify.showMockDS()if you want the fetch for eachDataSourcemade with different properties.- Parameters:
requestProperties- New requestProperties value. Default value is null- Returns:
MockDSExportSettingsinstance, for chaining setter calls
-
getRequestProperties
The properties that will be specified on theDSRequestwhen fetching records. You can pass an array of different request properties matching the length of thedsNamesparam ofReify.getMockDS()orReify.showMockDS()if you want the fetch for eachDataSourcemade with different properties.- Returns:
- Current requestProperties value. Default value is null
-
setRequestProperties
The properties that will be specified on theDSRequestwhen fetching records. You can pass an array of different request properties matching the length of thedsNamesparam ofReify.getMockDS()orReify.showMockDS()if you want the fetch for eachDataSourcemade with different properties.- Parameters:
requestProperties- New requestProperties value. Default value is null- Returns:
MockDSExportSettingsinstance, for chaining setter calls
-
getRequestPropertiesAsDSRequest
The properties that will be specified on theDSRequestwhen fetching records. You can pass an array of different request properties matching the length of thedsNamesparam ofReify.getMockDS()orReify.showMockDS()if you want the fetch for eachDataSourcemade with different properties.- Returns:
- Current requestProperties value. Default value is null
-
setRootCriteriaOnly
For DataSources that define atree relationshipbetween fields by declaring aforeignKeyon one field that refers to another from that same DataSource, shouldcriteriabe applied only to the root node? If false, the criteria will be applied to all nodes.- Parameters:
rootCriteriaOnly- New rootCriteriaOnly value. Default value is false- Returns:
MockDSExportSettingsinstance, for chaining setter calls- See Also:
-
getRootCriteriaOnly
public boolean getRootCriteriaOnly()For DataSources that define atree relationshipbetween fields by declaring aforeignKeyon one field that refers to another from that same DataSource, shouldcriteriabe applied only to the root node? If false, the criteria will be applied to all nodes.- Returns:
- Current rootCriteriaOnly value. Default value is false
- See Also:
-
setSequentialFetching
Whentrue, fetches records from eachDataSourceone at a time rather than batching all independent fetches into a single queued request. This is recommended when exporting from large production databases where concurrent queries can exhaust connection pools. See theLarge Database Exportoverview for guidance.- Parameters:
sequentialFetching- New sequentialFetching value. Default value is false- Returns:
MockDSExportSettingsinstance, for chaining setter calls- See Also:
-
getSequentialFetching
public boolean getSequentialFetching()Whentrue, fetches records from eachDataSourceone at a time rather than batching all independent fetches into a single queued request. This is recommended when exporting from large production databases where concurrent queries can exhaust connection pools. See theLarge Database Exportoverview for guidance.- Returns:
- Current sequentialFetching value. Default value is false
- See Also:
-
setTreeRoots
An object mappingDataSource IDsto arrays of primary key values identifying the specific root nodes to include for tree DataSources. UnlikeperDSCriteria, which filters every level of the tree,treeRootsrestricts only the initial root-level fetch ? child nodes under the specified roots are fetched without the root restriction.This is useful when you want a complete subtree under specific known roots. For example, to export only the "Electronics" and "Clothing" product category trees:
treeRoots: { productCategory: ["electronics", "clothing"] }- Parameters:
treeRoots- New treeRoots value. Default value is null- Returns:
MockDSExportSettingsinstance, for chaining setter calls- See Also:
-
getTreeRoots
An object mappingDataSource IDsto arrays of primary key values identifying the specific root nodes to include for tree DataSources. UnlikeperDSCriteria, which filters every level of the tree,treeRootsrestricts only the initial root-level fetch ? child nodes under the specified roots are fetched without the root restriction.This is useful when you want a complete subtree under specific known roots. For example, to export only the "Electronics" and "Clothing" product category trees:
treeRoots: { productCategory: ["electronics", "clothing"] }- Returns:
- Current treeRoots value. Default value is null
- See Also:
-
setValidatorMode
Controls whichvalidators, if any, to include in the fields of the exportedMockDataSource. Since MockDataSources are client-only, server-only validators are not exported. Auto-generated validators are also not exported, since they will be recreated based on the type of the field during the import process.- Parameters:
validatorMode- New validatorMode value. Default value is "standard"- Returns:
MockDSExportSettingsinstance, for chaining setter calls
-
getValidatorMode
Controls whichvalidators, if any, to include in the fields of the exportedMockDataSource. Since MockDataSources are client-only, server-only validators are not exported. Auto-generated validators are also not exported, since they will be recreated based on the type of the field during the import process.- Returns:
- Current validatorMode value. Default value is "standard"
-