001package gudusoft.gsqlparser.nodes; 002 003import gudusoft.gsqlparser.TSourceToken; 004import gudusoft.gsqlparser.nodes.couchbase.TUseKeyIndex; 005import gudusoft.gsqlparser.nodes.mssql.TOptionClause; 006import gudusoft.gsqlparser.nodes.oracle.TErrorLoggingClause; 007 008/* 009* Date: 2010-4-14 010* Time: 16:51:57 011*/ 012public class TUpdateSqlNode extends TParseTreeNode { 013 014 private TInsertSqlNode insertSqlNode; 015 016 public TInsertSqlNode getInsertSqlNode() { 017 return insertSqlNode; 018 } 019 020 public void setInsertSqlNode(TInsertSqlNode insertSqlNode) { 021 022 this.insertSqlNode = insertSqlNode; 023 } 024 025 private TErrorLoggingClause errorLoggingClause; 026 027 public void setErrorLoggingClause(TErrorLoggingClause errorLoggingClause) { 028 this.errorLoggingClause = errorLoggingClause; 029 } 030 031 public TErrorLoggingClause getErrorLoggingClause() { 032 033 return errorLoggingClause; 034 } 035 036 /** 037 * sql server option clause 038 * @see gudusoft.gsqlparser.nodes.mssql.TOptionClause 039 */ 040 private TOptionClause optionClause; 041 042 public void setOptionClause(TOptionClause optionClause) { 043 this.optionClause = optionClause; 044 } 045 046 public TOptionClause getOptionClause() { 047 048 return optionClause; 049 } 050 051 private TSourceToken updateToken = null; 052 053 public void setUpdateToken(TSourceToken updateToken) { 054 this.updateToken = updateToken; 055 } 056 057 public TSourceToken getUpdateToken() { 058 059 return updateToken; 060 } 061 062 public TCTEList cteList = null; 063 private TTopClause topClause = null; 064 065 public void setTopClause(TTopClause topClause) { 066 this.topClause = topClause; 067 } 068 069 private TOutputClause outputClause = null; 070 071 public void setOutputClause(TOutputClause outputClause) { 072 this.outputClause = outputClause; 073 } 074 075 private TFromTable targetTable = null; 076 077 public TOutputClause getOutputClause() { 078 return outputClause; 079 } 080 081 public TFromTableList getSourceTableList() { 082 return sourceTableList; 083 } 084 085 public TWhereClause getWhereCondition() { 086 return whereCondition; 087 } 088 089 public TReturningClause getReturningClause() { 090 return returningClause; 091 } 092 093 public TResultColumnList getResultColumnList() { 094 095 return resultColumnList; 096 } 097 098 public TFromTable getTargetTable() { 099 return targetTable; 100 } 101 102 public TTopClause getTopClause() { 103 104 return topClause; 105 } 106 107 public void setTargetTable(TFromTable targetTable) { 108 this.targetTable = targetTable; 109 } 110 111 public void setResultColumnList(TResultColumnList resultColumnList) { 112 this.resultColumnList = resultColumnList; 113 } 114 115 private TResultColumnList resultColumnList = null; 116 117 public void setSourceTableList(TFromTableList sourceTableList) { 118 this.sourceTableList = sourceTableList; 119 } 120 121 private TFromTableList sourceTableList = null; 122 123 124 private TFromTableList referenceTableList = null; 125 126 public void setReferenceTableList(TFromTableList referenceTableList) { 127 this.referenceTableList = referenceTableList; 128 } 129 130 public TFromTableList getReferenceTableList() { 131 132 return referenceTableList; 133 } 134 135 private TWhereClause whereCondition = null; 136 137 public void setWhereCondition(TWhereClause whereCondition) { 138 this.whereCondition = whereCondition; 139 } 140 141 private TReturningClause returningClause = null; 142 143 public void setReturningClause(TReturningClause returningClause) { 144 this.returningClause = returningClause; 145 } 146 147 private TOrderBy orderByClause = null; 148 149 public void setOrderByClause(TOrderBy orderByClause) { 150 this.orderByClause = orderByClause; 151 } 152 153 public TOrderBy getOrderByClause() { 154 155 return orderByClause; 156 } 157 158 private TLimitClause limitClause = null; 159 160 public void setLimitClause(TLimitClause limitClause) { 161 this.limitClause = limitClause; 162 } 163 164 public TLimitClause getLimitClause() { 165 166 return limitClause; 167 } 168 169 private TIsolationClause isolationClause = null; 170 171 public void setIsolationClause(TIsolationClause isolationClause) { 172 this.isolationClause = isolationClause; 173 } 174 175 public TIsolationClause getIsolationClause() { 176 return isolationClause; 177 } 178 179 private TUseKeyIndex useKeyIndex;//couchbase 180 181 public void setUseKeyIndex(TUseKeyIndex useKeyIndex) { 182 this.useKeyIndex = useKeyIndex; 183 } 184 185 public TUseKeyIndex getUseKeyIndex() { 186 187 return useKeyIndex; 188 } 189 190 private TResultColumnList unSetTerms; //couchbase 191 192 public void setUnSetTerms(TResultColumnList unSetTerms) { 193 this.unSetTerms = unSetTerms; 194 } 195 196 public TResultColumnList getUnSetTerms() { 197 198 return unSetTerms; 199 } 200}