-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
68 additions
and
3 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
platform-core/src/main/java/com/webank/wecube/platform/core/service/dme/EntityQueryExpr.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package com.webank.wecube.platform.core.service.dme; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class EntityQueryExpr { | ||
|
||
private List<EntityQueryExprNodeInfo> exprNodeInfos = new ArrayList<>(); | ||
|
||
private String exprOperation; | ||
|
||
private String rawExpr; | ||
|
||
public List<EntityQueryExprNodeInfo> getExprNodeInfos() { | ||
return exprNodeInfos; | ||
} | ||
|
||
public void setExprNodeInfos(List<EntityQueryExprNodeInfo> exprNodeInfos) { | ||
this.exprNodeInfos = exprNodeInfos; | ||
} | ||
|
||
public String getExprOperation() { | ||
return exprOperation; | ||
} | ||
|
||
public void setExprOperation(String exprOperation) { | ||
this.exprOperation = exprOperation; | ||
} | ||
|
||
public String getRawExpr() { | ||
return rawExpr; | ||
} | ||
|
||
public void setRawExpr(String rawExpr) { | ||
this.rawExpr = rawExpr; | ||
} | ||
|
||
public EntityQueryExpr addExprNode(EntityQueryExprNodeInfo exprNodeInfo) { | ||
if(exprNodeInfo == null) { | ||
return this; | ||
} | ||
|
||
exprNodeInfos.add(exprNodeInfo); | ||
|
||
return this; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters