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 CommonExpressioncreateCommonExpression(DbViewElement dbView, char delimiter, boolean byRuName) CreatesCommonExpressionby dbViewstatic CommonExpressioncreateCommonExpression(DbViewElement dbView, String delimiter, boolean byRuName) CreatesCommonExpressionby dbViewstatic CommonExpressioncreateCommonExpression(String content, char delimiter) CreatesCommonExpressionby string's contentstatic CommonExpressioncreateCommonExpression(String content, String delimiter) CreatesCommonExpressionby string's contentstatic AbstractQuerySchemaTablecreateQuerySchemaTable(DbViewElement dbView, char delimiter, boolean byRuName) CreatesAbstractQuerySchemaTableby dbViewstatic AbstractQuerySchemaTablecreateQuerySchemaTable(DbViewElement dbView, String delimiter, boolean byRuName) CreatesAbstractQuerySchemaTableby dbViewstatic AbstractQuerySchemaTablecreateQuerySchemaTable(String content, char delimiter) CreatesAbstractQuerySchemaTableby string's contentstatic AbstractQuerySchemaTablecreateQuerySchemaTable(String content, String delimiter) CreatesAbstractQuerySchemaTableby string's contentstatic TypegetRefTypeByDbView(DbViewElement dbView) Gets reference type byDbViewElementstatic TypegetTypeFromTypeLiteralExpression(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
CreatesCommonExpressionby string's content- Parameters:
content- string's content, can't benulldelimiter- delimiter ofMultiPartCommonExpressionparts, can't benulland empty- Returns:
- created
CommonExpressionornullifcontentordelimiterisnull
-
createCommonExpression
CreatesCommonExpressionby string's content- Parameters:
content- string's content, can't benulldelimiter- delimiter ofMultiPartCommonExpressionparts- Returns:
- created
CommonExpressionornullifcontentordelimiterisnull
-
createCommonExpression
public static CommonExpression createCommonExpression(DbViewElement dbView, String delimiter, boolean byRuName) CreatesCommonExpressionby dbView- Parameters:
dbView-DbViewElement, can't benulldelimiter- delimiter ofMultiPartCommonExpressionparts, can't benulland emptybyRuName- iftruewill be got Russian name from dbView- Returns:
- created
CommonExpressionornullifdbViewordelimiterisnull
-
createCommonExpression
public static CommonExpression createCommonExpression(DbViewElement dbView, char delimiter, boolean byRuName) CreatesCommonExpressionby dbView- Parameters:
dbView-DbViewElement, can't benulldelimiter- delimiter ofMultiPartCommonExpressionpartsbyRuName- iftruewill be got Russian name from dbView- Returns:
- created
CommonExpressionornullifdbViewordelimiterisnull
-
createQuerySchemaTable
CreatesAbstractQuerySchemaTableby string's content- Parameters:
content- string's content, can't benulldelimiter- delimiter ofMultiPartQuerySchemaTableparts, can't benulland empty- Returns:
- created
AbstractQuerySchemaTableornullifcontentordelimiterisnull
-
createQuerySchemaTable
CreatesAbstractQuerySchemaTableby string's content- Parameters:
content- string's content, can't benulldelimiter- delimiter ofMultiPartQuerySchemaTableparts, can't benull- Returns:
- created
AbstractQuerySchemaTableornullifcontentordelimiterisnull
-
createQuerySchemaTable
public static AbstractQuerySchemaTable createQuerySchemaTable(DbViewElement dbView, String delimiter, boolean byRuName) CreatesAbstractQuerySchemaTableby dbView- Parameters:
dbView-DbViewElement, can't benulldelimiter- delimiter ofMultiPartQuerySchemaTableparts, can't benulland emptybyRuName- iftruewill be got Russian name from dbView- Returns:
- created
AbstractQuerySchemaTableornullifdbViewordelimiterisnull
-
createQuerySchemaTable
public static AbstractQuerySchemaTable createQuerySchemaTable(DbViewElement dbView, char delimiter, boolean byRuName) CreatesAbstractQuerySchemaTableby dbView- Parameters:
dbView-DbViewElement, can't benulldelimiter- delimiter ofMultiPartQuerySchemaTablepartsbyRuName- iftruewill be got Russian name from dbView- Returns:
- created
AbstractQuerySchemaTableornullifdbViewordelimiterisnull
-
getTypeFromTypeLiteralExpression
Computes type forTypeLiteralExpression- Parameters:
object- must be instanceofTypeLiteralExpression, can't benull- Returns:
- computed type or
nullif type cannot be computed
-
getRefTypeByDbView
Gets reference type byDbViewElement- Parameters:
dbView- actualDbViewElement, can benull- Returns:
- reference type corresponding to
DbViewElementornullifdbView == nullor 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
-