001package gudusoft.gsqlparser.dlineage.dataflow.model.json;
002
003import gudusoft.gsqlparser.dlineage.dataflow.model.ModelBindingManager;
004
005public class JoinRelationship extends Relationship {
006        private String id;
007        private String type;
008        private String joinType;
009        private String clause;
010        private String condition;
011        private RelationshipElement target;
012        private RelationshipElement[] sources;
013
014        public String getId() {
015                return id;
016        }
017
018        public void setId(String id) {
019                this.id = id;
020        }
021
022        public String getType() {
023                return type;
024        }
025
026        public void setType(String type) {
027                this.type = type;
028        }
029
030        public String getJoinType() {
031                return joinType;
032        }
033
034        public void setJoinType(String joinType) {
035                this.joinType = joinType;
036        }
037
038        public String getClause() {
039                return clause;
040        }
041
042        public void setClause(String clause) {
043                this.clause = clause;
044        }
045
046        public String getCondition() {
047                if (ModelBindingManager.getGlobalOption()!=null && ModelBindingManager.getGlobalOption().isIgnoreCoordinate()) {
048                        return null;
049                }
050                return condition;
051        }
052
053        public void setCondition(String condition) {
054                if (ModelBindingManager.getGlobalOption()!=null && ModelBindingManager.getGlobalOption().isIgnoreCoordinate()) {
055                        return;
056                }
057                this.condition = condition;
058        }
059
060        public RelationshipElement getTarget() {
061                return target;
062        }
063
064        public void setTarget(RelationshipElement target) {
065                this.target = target;
066        }
067
068        public RelationshipElement[] getSources() {
069                return sources;
070        }
071
072        public void setSources(RelationshipElement[] sources) {
073                this.sources = sources;
074        }
075
076}