Package com._1c.g5.v8.dt.dcs
Class DcsDataSetInfoV8LocalBase
- java.lang.Object
-
- com._1c.g5.v8.dt.dcs.DcsDataSetInfoV8LocalBase
-
- Direct Known Subclasses:
DcsDataSetInfoV8LocalObject
,DcsDataSetInfoV8LocalQuery
public class DcsDataSetInfoV8LocalBase extends Object
Base class for DcsDataSetInfoV8LocalQuery and DcsDataSetInfoV8LocalObject
-
-
Field Summary
Fields Modifier and Type Field Description protected int
alias
protected boolean
allowUnlimited
protected String
langCode
protected Map<DcsPath,List<DcsDataSetInfoAvailableFieldInfoV8Local>>
loadedFieldsByParent
protected Map<DcsPath,DcsDataSetInfoAvailableFieldInfoV8Local>
loadedFieldsByPath
protected SettingsContext
settingsContext
protected IV8Project
v8project
-
Constructor Summary
Constructors Constructor Description DcsDataSetInfoV8LocalBase(SettingsContext settingsContext)
Constructs an instance
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addAvailableFields(List<DbObjectDef> tables, DcsDataSetInfoAvailableFieldInfoV8Local parentField, List<DbViewFieldDef> fields, Map<DcsPath,DcsDataSetInfoAvailableFieldInfoV8Local> availFields, com._1c.g5.v8.dt.dcs.DcsDataSetInfoV8LocalQuery.SettingsBehaviour behaviour)
Add available fields from metadata for parent fieldprotected void
addFieldInfo(DcsDataSetInfoAvailableFieldInfoV8Local fieldInfo, Map<DcsPath,DcsDataSetInfoAvailableFieldInfoV8Local> fields)
Add field info to fields mapprotected void
addLoadedFields(DcsPath dataPath, Map<DcsPath,DcsDataSetInfoAvailableFieldInfoV8Local> fields)
Add field info to mapprotected void
fillFieldInteractiveProperites(DbViewFieldDef fieldDef, DcsDataSetInfoAvailableFieldInfoV8Local fieldInfo)
Fills field info interactive properties from own metadata object.protected boolean
isAvailableField(DcsDataSetInfoAvailableFieldInfo field)
Check field availabilityprotected boolean
isAvailableFieldNested(DcsDataSetInfoAvailableFieldInfo field)
Check field nested availabilityprotected boolean
isMultiRef(TypeDescriptionSource tdp)
Check whether type is multi referencestatic void
mergeFieldInfo(DcsDataSetInfoAvailableFieldInfo dst, DcsDataSetInfoAvailableFieldInfo src, SettingsContext settingsContext)
Merge field info
-
-
-
Field Detail
-
loadedFieldsByParent
protected Map<DcsPath,List<DcsDataSetInfoAvailableFieldInfoV8Local>> loadedFieldsByParent
-
loadedFieldsByPath
protected Map<DcsPath,DcsDataSetInfoAvailableFieldInfoV8Local> loadedFieldsByPath
-
langCode
protected String langCode
-
alias
protected int alias
-
allowUnlimited
protected boolean allowUnlimited
-
v8project
protected IV8Project v8project
-
settingsContext
protected final SettingsContext settingsContext
-
-
Constructor Detail
-
DcsDataSetInfoV8LocalBase
public DcsDataSetInfoV8LocalBase(SettingsContext settingsContext)
Constructs an instance- Parameters:
settingsContext
- settings context object, can't benull
-
-
Method Detail
-
mergeFieldInfo
public static void mergeFieldInfo(DcsDataSetInfoAvailableFieldInfo dst, DcsDataSetInfoAvailableFieldInfo src, SettingsContext settingsContext)
Merge field info- Parameters:
dst
- destination field info, can't be nullsrc
- sosurce field info, can't be nullsettingsContext
- settings context object, can't benull
-
addLoadedFields
protected void addLoadedFields(DcsPath dataPath, Map<DcsPath,DcsDataSetInfoAvailableFieldInfoV8Local> fields) throws DcsPathException
Add field info to map- Parameters:
dataPath
- field path, can't be nullfields
- map of fields, can't be null- Throws:
DcsPathException
-
addAvailableFields
protected void addAvailableFields(List<DbObjectDef> tables, DcsDataSetInfoAvailableFieldInfoV8Local parentField, List<DbViewFieldDef> fields, Map<DcsPath,DcsDataSetInfoAvailableFieldInfoV8Local> availFields, com._1c.g5.v8.dt.dcs.DcsDataSetInfoV8LocalQuery.SettingsBehaviour behaviour) throws DcsPathException
Add available fields from metadata for parent field- Parameters:
tables
- list of parent field's DbObjectDef, can't be nullparentField
- parent field info, can't be nullfields
- child fields from metadata, can't be nullavailFields
- result map of available fields, can't be nullbehaviour
- settings behaviour, can't be null- Throws:
DcsPathException
-
isAvailableField
protected boolean isAvailableField(DcsDataSetInfoAvailableFieldInfo field)
Check field availability- Parameters:
field
- field, can't be null- Returns:
- true if at least one availability is true
-
isAvailableFieldNested
protected boolean isAvailableFieldNested(DcsDataSetInfoAvailableFieldInfo field)
Check field nested availability- Parameters:
field
- field, can't be null- Returns:
- true if at least one nested availability is true
-
addFieldInfo
protected void addFieldInfo(DcsDataSetInfoAvailableFieldInfoV8Local fieldInfo, Map<DcsPath,DcsDataSetInfoAvailableFieldInfoV8Local> fields) throws DcsPathException
Add field info to fields map- Parameters:
fieldInfo
- field info, can't be nullfields
- fields map, can't be null- Throws:
DcsPathException
-
isMultiRef
protected boolean isMultiRef(TypeDescriptionSource tdp)
Check whether type is multi reference- Parameters:
tdp
- type, can benull
- Returns:
- whether type is multi reference
-
fillFieldInteractiveProperites
protected void fillFieldInteractiveProperites(DbViewFieldDef fieldDef, DcsDataSetInfoAvailableFieldInfoV8Local fieldInfo)
Fills field info interactive properties from own metadata object.- Parameters:
fieldDef
- the db-view field contained reference to own metadata object, cannot benull
fieldInfo
- the field info, cannot benull
-
-