QueryJoinExpression 查询 Join 子句
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface QueryJoinExpression {
"concept": "QueryJoinExpression", // 产品概念
"entityNamespace": string, // 实体的命名空间
"entityName": string, // 实体名称
"asName": string, // 别名
"joinType": "INNER" | "LEFT" | "RIGHT" | "FULL", // joinType
"onExpressions": Array<BinaryExpression>, // 二元表达式列表
"joinParts": Array<QueryJoinExpression>, // 查询 Join 子句列表
}
class QueryJoinExpressionTreeNode {
ConceptEnum concept; // 产品概念
String entityNamespace; // 实体的命名空间
String entityName; // 实体名称
String asName; // 别名
JoinTypeEnum joinType; // joinType
List<BinaryExpressionTreeNode> onExpressions; // 二元表达式列表
List<QueryJoinExpressionTreeNode> joinParts; // 查询 Join 子句列表
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/QueryJoinExpression",
"definitions": {
"QueryJoinExpression": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "QueryJoinExpression"
},
"entityNamespace": {
"type": "string"
},
"entityName": {
"type": "string"
},
"asName": {
"type": "string"
},
"joinType": {
"type": "string",
"enum": [
"INNER",
"LEFT",
"RIGHT",
"FULL"
]
},
"onExpressions": {
"type": "array",
"items": {
"$ref": "#/definitions/BinaryExpression"
}
},
"joinParts": {
"type": "array",
"items": {
"$ref": "#/definitions/QueryJoinExpression"
}
}
},
"required": [
"concept",
"entityNamespace",
"entityName",
"asName",
"joinType",
"onExpressions",
"joinParts"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "QueryJoinExpression",
"entityNamespace": null,
"entityName": null,
"asName": null,
"joinType": null,
"onExpressions": [],
"joinParts": []
}
concept: QueryJoinExpression
entityNamespace: null
entityName: null
asName: null
joinType: null
onExpressions: []
joinParts: []