Package com._1c.g5.v8.dt.ql.model.util
Class QlUtil
java.lang.Object
com._1c.g5.v8.dt.ql.model.util.QlUtil
Common methods for Ql model
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<CaseInsensitiveString,
String> static final Map<CaseInsensitiveString,
String> static final Map<CaseInsensitiveString,
String> static final String
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<QuerySchemaExpression>
allGroupingExpressions
(QuerySchemaOperator operator) Gets all grouping expressions fromQuerySchemaOperator
: expression from each group inQuerySchemaOperator.getGroupingSets()
or expression fromQuerySchemaOperator.getGrouping()
static CommonExpression
createCommonExpression
(DbViewElement dbView, char delimiter, boolean byRuName) CreatesCommonExpression
by dbViewstatic CommonExpression
createCommonExpression
(DbViewElement dbView, String delimiter, boolean byRuName) CreatesCommonExpression
by dbViewstatic CommonExpression
createCommonExpression
(String content, char delimiter) CreatesCommonExpression
by string's contentstatic CommonExpression
createCommonExpression
(String content, String delimiter) CreatesCommonExpression
by string's contentstatic AbstractQuerySchemaTable
createQuerySchemaTable
(DbViewElement dbView, char delimiter, boolean byRuName) CreatesAbstractQuerySchemaTable
by dbViewstatic AbstractQuerySchemaTable
createQuerySchemaTable
(DbViewElement dbView, String delimiter, boolean byRuName) CreatesAbstractQuerySchemaTable
by dbViewstatic AbstractQuerySchemaTable
createQuerySchemaTable
(String content, char delimiter) CreatesAbstractQuerySchemaTable
by string's contentstatic AbstractQuerySchemaTable
createQuerySchemaTable
(String content, String delimiter) CreatesAbstractQuerySchemaTable
by string's contentstatic Type
getRefTypeByDbView
(DbViewElement dbView) Gets reference type byDbViewElement
static Type
getTypeFromTypeLiteralExpression
(org.eclipse.emf.ecore.EObject object) Computes type forTypeLiteralExpression
-
Field Details
-
DELIMETER
- See Also:
-
ALLOWED_TYPE_VALUE_EN
-
ALLOWED_TYPE_VALUE_RU
-
ALLOWED_TYPE_VALUE
-
-
Method Details
-
createCommonExpression
CreatesCommonExpression
by string's content- Parameters:
content
- string's content, can't benull
delimiter
- delimiter ofMultiPartCommonExpression
parts, can't benull
and empty- Returns:
- created
CommonExpression
ornull
ifcontent
ordelimiter
isnull
-
createCommonExpression
CreatesCommonExpression
by string's content- Parameters:
content
- string's content, can't benull
delimiter
- delimiter ofMultiPartCommonExpression
parts- Returns:
- created
CommonExpression
ornull
ifcontent
ordelimiter
isnull
-
createCommonExpression
public static CommonExpression createCommonExpression(DbViewElement dbView, String delimiter, boolean byRuName) CreatesCommonExpression
by dbView- Parameters:
dbView
-DbViewElement
, can't benull
delimiter
- delimiter ofMultiPartCommonExpression
parts, can't benull
and emptybyRuName
- iftrue
will be got Russian name from dbView- Returns:
- created
CommonExpression
ornull
ifdbView
ordelimiter
isnull
-
createCommonExpression
public static CommonExpression createCommonExpression(DbViewElement dbView, char delimiter, boolean byRuName) CreatesCommonExpression
by dbView- Parameters:
dbView
-DbViewElement
, can't benull
delimiter
- delimiter ofMultiPartCommonExpression
partsbyRuName
- iftrue
will be got Russian name from dbView- Returns:
- created
CommonExpression
ornull
ifdbView
ordelimiter
isnull
-
createQuerySchemaTable
CreatesAbstractQuerySchemaTable
by string's content- Parameters:
content
- string's content, can't benull
delimiter
- delimiter ofMultiPartQuerySchemaTable
parts, can't benull
and empty- Returns:
- created
AbstractQuerySchemaTable
ornull
ifcontent
ordelimiter
isnull
-
createQuerySchemaTable
CreatesAbstractQuerySchemaTable
by string's content- Parameters:
content
- string's content, can't benull
delimiter
- delimiter ofMultiPartQuerySchemaTable
parts, can't benull
- Returns:
- created
AbstractQuerySchemaTable
ornull
ifcontent
ordelimiter
isnull
-
createQuerySchemaTable
public static AbstractQuerySchemaTable createQuerySchemaTable(DbViewElement dbView, String delimiter, boolean byRuName) CreatesAbstractQuerySchemaTable
by dbView- Parameters:
dbView
-DbViewElement
, can't benull
delimiter
- delimiter ofMultiPartQuerySchemaTable
parts, can't benull
and emptybyRuName
- iftrue
will be got Russian name from dbView- Returns:
- created
AbstractQuerySchemaTable
ornull
ifdbView
ordelimiter
isnull
-
createQuerySchemaTable
public static AbstractQuerySchemaTable createQuerySchemaTable(DbViewElement dbView, char delimiter, boolean byRuName) CreatesAbstractQuerySchemaTable
by dbView- Parameters:
dbView
-DbViewElement
, can't benull
delimiter
- delimiter ofMultiPartQuerySchemaTable
partsbyRuName
- iftrue
will be got Russian name from dbView- Returns:
- created
AbstractQuerySchemaTable
ornull
ifdbView
ordelimiter
isnull
-
getTypeFromTypeLiteralExpression
Computes type forTypeLiteralExpression
- Parameters:
object
- must be instanceofTypeLiteralExpression
, can't benull
- Returns:
- computed type or
null
if type cannot be computed
-
getRefTypeByDbView
Gets reference type byDbViewElement
- Parameters:
dbView
- actualDbViewElement
, can benull
- Returns:
- reference type corresponding to
DbViewElement
ornull
ifdbView == null
or reference type wasn't found
-
allGroupingExpressions
Gets all grouping expressions fromQuerySchemaOperator
: expression from each group inQuerySchemaOperator.getGroupingSets()
or expression fromQuerySchemaOperator.getGrouping()
- Parameters:
operator
- processing operator for getting all grouping expressions, cannot benull
- Returns:
- list of all grouping expression, never
null
-