001package gudusoft.gsqlparser.dlineage.dataflow.model;
002
003import gudusoft.gsqlparser.TSourceToken;
004import gudusoft.gsqlparser.nodes.TParseTreeNode;
005
006public class Transform {
007        
008        public static final String SIMPLE = "simple";
009        public static final String FUNCTION = "function";
010        public static final String EXPRESSION = "expression";
011        public static final String CONSTANT = "constant";
012        public static final String CASE = "case";
013        public static final String SUBQUERY = "subquery";
014        public static final String FROM = "from";
015        public static final String CTE = "cte";
016
017        private String type;
018        private TParseTreeNode code;
019        
020        private TSourceToken startToken;
021        private TSourceToken endToken;
022        private String codeString;
023
024        public String getType() {
025                return type;
026        }
027
028        public void setType(String type) {
029                this.type = type;
030        }
031
032        public TParseTreeNode getCode() {
033                return code;
034        }
035
036        public void setCode(TParseTreeNode code) {
037                this.code = code;
038        }
039
040        public TSourceToken getStartToken() {
041                return startToken;
042        }
043
044        public void setStartToken(TSourceToken startToken) {
045                this.startToken = startToken;
046        }
047
048        public TSourceToken getEndToken() {
049                return endToken;
050        }
051
052        public void setEndToken(TSourceToken endToken) {
053                this.endToken = endToken;
054        }
055
056        public String getCodeString() {
057                return codeString;
058        }
059
060        public void setCodeString(String codeString) {
061                this.codeString = codeString;
062        }
063}