1 21 package oracle.toplink.essentials.internal.parsing; 23 24 import java.util.List ; 25 26 41 public interface NodeFactory { 42 43 44 public enum TrimSpecification { LEADING, TRAILING, BOTH } 45 46 50 51 public Object newSelectStatement(int line, int column, 52 Object select, Object from, 53 Object where, Object groupBy, 54 Object having, Object orderBy); 55 56 57 public Object newUpdateStatement(int line, int column, 58 Object update, Object set, Object where); 59 60 61 public Object newDeleteStatement(int line, int column, 62 Object delete, Object where); 63 64 68 69 public Object newSelectClause(int line, int column, 70 boolean distinct, List selectExprs); 71 72 73 public Object newFromClause(int line, int column, List varDecls); 74 75 76 public Object newWhereClause(int line, int column, Object condition); 77 78 79 public Object newGroupByClause(int line, int column, List items); 80 81 82 public Object newHavingClause(int line, int column, Object arg); 83 84 85 public Object newOrderByClause(int line, int column, List items); 86 87 88 public Object newUpdateClause(int line, int column, 89 String schema, String variable); 90 91 92 public Object newDeleteClause(int line, int column, 93 String schema, String variable); 94 95 99 100 public Object newRangeVariableDecl(int line, int column, 101 String schema, String variable); 102 103 104 public Object newJoinVariableDecl(int line, int column, boolean outer, 105 Object path, String variable); 106 107 108 public Object newFetchJoin(int line, int column, boolean outer, Object path); 109 110 111 public Object newCollectionMemberVariableDecl(int line, int column, 112 Object path, String variable); 113 114 115 public Object newVariableDecl(int line, int column, 116 Object path, String variable); 117 118 122 123 public Object newDot(int line, int column, Object left, Object right); 124 125 126 public Object newVariableAccess(int line, int column, String identifier); 127 128 129 public Object newAttribute(int line, int column, String identifier); 130 131 135 136 public Object newAvg(int line, int column, boolean ditinct, Object arg); 137 138 139 public Object newMax(int line, int column, boolean ditinct, Object arg); 140 141 142 public Object newMin(int line, int column, boolean ditinct, Object arg); 143 144 145 public Object newSum(int line, int column, boolean ditinct, Object arg); 146 147 148 public Object newCount(int line, int column, boolean ditinct, Object arg); 149 150 154 155 public Object newOr(int line, int column, Object left, Object right); 156 157 158 public Object newAnd(int line, int column, Object left, Object right); 159 160 161 public Object newEquals(int line, int column, Object left, Object right); 162 163 164 public Object newNotEquals(int line, int column, Object left, Object right); 165 166 167 public Object newGreaterThan(int line, int column, Object left, Object right); 168 169 170 public Object newGreaterThanEqual(int line, int column, 171 Object left, Object right); 172 173 174 public Object newLessThan(int line, int column, Object left, Object right); 175 176 177 public Object newLessThanEqual(int line, int column, 178 Object left, Object right); 179 180 181 public Object newPlus(int line, int column, Object left, Object right); 182 183 184 public Object newMinus(int line, int column, Object left, Object right); 185 186 187 public Object newMultiply(int line, int column, Object left, Object right); 188 189 190 public Object newDivide(int line, int column, Object left, Object right); 191 192 196 197 public Object newUnaryPlus(int line, int column, Object arg); 198 199 200 public Object newUnaryMinus(int line, int column, Object arg); 201 202 203 public Object newNot(int line, int column, Object arg); 204 205 209 210 public Object newBetween(int line, int column, boolean not, Object arg, 211 Object lower, Object upper); 212 213 214 public Object newLike(int line, int column, boolean not, Object string, 215 Object pattern, Object escape) ; 216 217 218 public Object newEscape(int line, int column, Object arg); 219 220 221 public Object newIn(int line, int column, 222 boolean not, Object expr, List items); 223 224 225 public Object newIsNull(int line, int column, boolean not, Object expr); 226 227 228 public Object newIsEmpty(int line, int column, boolean not, Object expr) ; 229 230 231 public Object newMemberOf(int line, int column, boolean not, 232 Object expr, Object collection); 233 234 238 239 public Object newPositionalParameter(int line, int colimn, String position); 240 241 242 public Object newNamedParameter(int line, int colimn, String name); 243 244 248 249 public Object newBooleanLiteral(int line, int column, Object value); 250 251 252 public Object newIntegerLiteral(int line, int column, Object value); 253 254 255 public Object newLongLiteral(int line, int column, Object value); 256 257 258 public Object newFloatLiteral(int line, int column, Object value); 259 260 261 public Object newDoubleLiteral(int line, int column, Object value); 262 263 264 public Object newStringLiteral(int line, int column, Object value); 265 266 267 public Object newNullLiteral(int line, int column); 268 269 273 274 public Object newConcat(int line, int column, Object left, Object right); 275 276 277 public Object newSubstring(int line, int column, 278 Object string, Object start, Object length); 279 280 281 public Object newTrim(int line, int column, TrimSpecification trimSpec, 282 Object trimChar, Object string); 283 284 285 public Object newLower(int line, int column, Object arg); 286 287 288 public Object newUpper(int line, int column, Object arg); 289 290 294 295 public Object newLocate(int line, int column, 296 Object pattern, Object arg, Object startPos); 297 298 299 public Object newLength(int line, int column, Object arg); 300 301 302 public Object newAbs(int line, int column, Object arg); 303 304 305 public Object newSqrt(int line, int column, Object arg); 306 307 308 public Object newMod(int line, int column, Object left, Object right); 309 310 311 public Object newSize(int line, int column, Object arg); 312 313 317 318 public Object newCurrentDate(int line, int column); 319 320 321 public Object newCurrentTime(int line, int column); 322 323 324 public Object newCurrentTimestamp(int line, int column); 325 326 330 331 public Object newSubquery(int line, int column, Object select, Object from, Object where, 332 Object groupBy, Object having); 333 334 335 public Object newExists(int line, int column, boolean not, Object subquery); 336 337 338 public Object newIn(int line, int column, boolean not, Object expr, Object subquery); 339 340 341 public Object newAll(int line, int column, Object subquery); 342 343 344 public Object newAny(int line, int column, Object subquery); 345 346 347 public Object newSome(int line, int column, Object subquery); 348 349 353 354 public Object newAscOrdering(int line, int column, Object arg); 355 356 357 public Object newDescOrdering(int line, int column, Object arg); 358 359 360 public Object newConstructor(int line, int colimn, 361 String className, List args); 362 363 364 public Object newSetClause(int line, int colimn, List assignments); 365 366 367 public Object newSetAssignmentClause(int line, int column, 368 Object target, Object value); 369 370 } 371 | Popular Tags |