Package com._1c.g5.v8.dt.ql.model.util
Class QlUtil
- java.lang.Object
-
- com._1c.g5.v8.dt.ql.model.util.QlUtil
-
public final class QlUtil extends Object
Common methods for Ql model
-
-
Field Summary
Fields Modifier and Type Field Description static Map<CaseInsensitiveString,String>
ALLOWED_TYPE_VALUE
static Map<CaseInsensitiveString,String>
ALLOWED_TYPE_VALUE_EN
static Map<CaseInsensitiveString,String>
ALLOWED_TYPE_VALUE_RU
static String
DELIMETER
-
Method Summary
-
-
-
Field Detail
-
DELIMETER
public static final String DELIMETER
- See Also:
- Constant Field Values
-
ALLOWED_TYPE_VALUE_EN
public static final Map<CaseInsensitiveString,String> ALLOWED_TYPE_VALUE_EN
-
ALLOWED_TYPE_VALUE_RU
public static final Map<CaseInsensitiveString,String> ALLOWED_TYPE_VALUE_RU
-
ALLOWED_TYPE_VALUE
public static final Map<CaseInsensitiveString,String> ALLOWED_TYPE_VALUE
-
-
Method Detail
-
createCommonExpression
public static CommonExpression createCommonExpression(String content, String delimiter)
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
public static CommonExpression createCommonExpression(String content, char delimiter)
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
public static AbstractQuerySchemaTable createQuerySchemaTable(String content, String delimiter)
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
public static AbstractQuerySchemaTable createQuerySchemaTable(String content, char delimiter)
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
public static Type getTypeFromTypeLiteralExpression(org.eclipse.emf.ecore.EObject object)
Computes type forTypeLiteralExpression
- Parameters:
object
- must be instanceofTypeLiteralExpression
, can't benull
- Returns:
- computed type or
null
if type cannot be computed
-
getRefTypeByDbView
public static Type getRefTypeByDbView(DbViewElement dbView)
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
public static List<QuerySchemaExpression> allGroupingExpressions(QuerySchemaOperator operator)
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
-
-