Package com._1c.g5.v8.dt.form.service
Class DynamicListAttributeService
- java.lang.Object
-
- com._1c.g5.v8.dt.form.service.DynamicListAttributeService
-
public class DynamicListAttributeService extends Object
The service for a dynamic list attribute
-
-
Constructor Summary
Constructors Constructor Description DynamicListAttributeService()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
addStandardFields(QuerySchema schema, String baseQuery, DbViewDef mainTable, IDtProject dtProject, ScriptVariant scriptVariant)
Adds standard fields to exiting query for dynamic list from main tablestatic String
addStandardFields(String baseQuery, DbViewDef mainTable, IDtProject dtProject, ScriptVariant scriptVariant)
Adds standard fields to exiting query for dynamic list from main tablestatic String
createQueryText(DbViewDef dbView, ScriptVariant lang)
Gets query text byDbViewDef
.static Set<DbViewDef>
findPotentialMainTables(QuerySchema schema)
The method search a potential main tables in aQuerySchema
modelstatic Set<DbViewDef>
findPotentialMainTables(QuerySchemaSelectQuery query)
The method search a potential main tables in aQuerySchemaSelectQuery
modelstatic Collection<DbViewFieldDef>
getSelectFields(DbViewDef dbView)
GetsDbViewFieldDef
fromDbViewDef
, skips fields with nameDbViewTerms.PRESENTATION
andDbViewTerms.DATA_VERSION
-
-
-
Method Detail
-
findPotentialMainTables
public static Set<DbViewDef> findPotentialMainTables(QuerySchema schema)
The method search a potential main tables in aQuerySchema
model
-
findPotentialMainTables
public static Set<DbViewDef> findPotentialMainTables(QuerySchemaSelectQuery query)
The method search a potential main tables in aQuerySchemaSelectQuery
model
-
createQueryText
public static String createQueryText(DbViewDef dbView, ScriptVariant lang)
Gets query text byDbViewDef
. The query has next structure:- Parameters:
dbView
-DbViewDef
for creating query text, can benull
lang
- currentScriptVariant
got generating query, can't benull
- Returns:
- query text by
DbViewDef
, nevernull
. IfdbView
is null of doesn't have name empty string will be returned
-
getSelectFields
public static Collection<DbViewFieldDef> getSelectFields(DbViewDef dbView)
GetsDbViewFieldDef
fromDbViewDef
, skips fields with nameDbViewTerms.PRESENTATION
andDbViewTerms.DATA_VERSION
- Parameters:
dbView
-DbViewDef
for getting fields, can't benull
- Returns:
- collection of
DbViewFieldDef
fromDbViewDef
, nevernull
-
addStandardFields
public static String addStandardFields(String baseQuery, DbViewDef mainTable, IDtProject dtProject, ScriptVariant scriptVariant)
Adds standard fields to exiting query for dynamic list from main table- Parameters:
baseQuery
- base query text, cannot benull
mainTable
- select main table for dynamic list, cannot benull
dtProject
- actualIDtProject
, cannot benull
scriptVariant
- current script variant for the project, cannot benull
- Returns:
- base query text with parts corresponging to the standards fields, never
null
-
addStandardFields
public static String addStandardFields(QuerySchema schema, String baseQuery, DbViewDef mainTable, IDtProject dtProject, ScriptVariant scriptVariant)
Adds standard fields to exiting query for dynamic list from main table- Parameters:
schema
-QuerySchema
corresponding to the baseQuery text, cannot benull
baseQuery
- base query text, cannot benull
mainTable
- select main table for dynamic list, cannot benull
dtProject
- actualIDtProject
, cannot benull
scriptVariant
- current script variant for the project, cannot benull
- Returns:
- base query text with parts corresponging to the standards fields, never
null
-
-