1 21 22 package org.apache.derby.iapi.sql.compile; 23 24 import java.util.Properties ; 25 26 import org.apache.derby.iapi.services.context.ContextManager; 27 28 import org.apache.derby.iapi.sql.dictionary.DataDictionary; 29 import org.apache.derby.iapi.sql.dictionary.TableDescriptor; 30 31 import org.apache.derby.iapi.error.StandardException; 32 33 37 import org.apache.derby.impl.sql.compile.QueryTreeNode; 38 import org.apache.derby.impl.sql.compile.ResultColumnList; 39 import org.apache.derby.impl.sql.compile.ResultSetNode; 40 41 48 49 public abstract class NodeFactory 50 { 51 54 public static final String MODULE = "org.apache.derby.iapi.sql.compile.NodeFactory"; 55 56 62 public abstract Boolean doJoinOrderOptimization(); 63 64 74 public abstract QueryTreeNode getNode(int nodeType, 75 ContextManager cm) throws StandardException; 76 77 88 public final QueryTreeNode getNode(int nodeType, Object arg1, ContextManager cm) 89 throws StandardException 90 { 91 QueryTreeNode retval = getNode(nodeType, cm); 92 93 retval.init(arg1); 94 95 return retval; 96 } 97 98 110 public final QueryTreeNode getNode(int nodeType, 111 Object arg1, 112 Object arg2, 113 ContextManager cm) 114 throws StandardException 115 { 116 QueryTreeNode retval = getNode(nodeType, cm); 117 118 retval.init(arg1, arg2); 119 120 return retval; 121 } 122 123 136 public final QueryTreeNode getNode(int nodeType, 137 Object arg1, 138 Object arg2, 139 Object arg3, 140 ContextManager cm) 141 throws StandardException 142 { 143 QueryTreeNode retval = getNode(nodeType, cm); 144 145 retval.init(arg1, arg2, arg3); 146 147 return retval; 148 } 149 150 164 public QueryTreeNode getNode(int nodeType, 165 Object arg1, 166 Object arg2, 167 Object arg3, 168 Object arg4, 169 ContextManager cm) 170 throws StandardException 171 { 172 QueryTreeNode retval = getNode(nodeType, cm); 173 174 retval.init(arg1, arg2, arg3, arg4); 175 176 return retval; 177 } 178 179 180 195 public QueryTreeNode getNode(int nodeType, 196 Object arg1, 197 Object arg2, 198 Object arg3, 199 Object arg4, 200 Object arg5, 201 ContextManager cm) 202 throws StandardException 203 { 204 QueryTreeNode retval = getNode(nodeType, cm); 205 206 retval.init(arg1, arg2, arg3, arg4, arg5); 207 208 return retval; 209 } 210 211 227 public final QueryTreeNode getNode(int nodeType, 228 Object arg1, 229 Object arg2, 230 Object arg3, 231 Object arg4, 232 Object arg5, 233 Object arg6, 234 ContextManager cm) 235 throws StandardException 236 { 237 QueryTreeNode retval = getNode(nodeType, cm); 238 239 retval.init(arg1, arg2, arg3, arg4, arg5, arg6); 240 241 return retval; 242 } 243 244 261 public final QueryTreeNode getNode(int nodeType, 262 Object arg1, 263 Object arg2, 264 Object arg3, 265 Object arg4, 266 Object arg5, 267 Object arg6, 268 Object arg7, 269 ContextManager cm) 270 throws StandardException 271 { 272 QueryTreeNode retval = getNode(nodeType, cm); 273 274 retval.init(arg1, arg2, arg3, arg4, arg5, arg6, arg7); 275 276 return retval; 277 } 278 296 public final QueryTreeNode getNode(int nodeType, 297 Object arg1, 298 Object arg2, 299 Object arg3, 300 Object arg4, 301 Object arg5, 302 Object arg6, 303 Object arg7, 304 Object arg8, 305 ContextManager cm) 306 throws StandardException 307 { 308 QueryTreeNode retval = getNode(nodeType, cm); 309 310 retval.init(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); 311 312 return retval; 313 } 314 333 public final QueryTreeNode getNode(int nodeType, 334 Object arg1, 335 Object arg2, 336 Object arg3, 337 Object arg4, 338 Object arg5, 339 Object arg6, 340 Object arg7, 341 Object arg8, 342 Object arg9, 343 ContextManager cm) 344 throws StandardException 345 { 346 QueryTreeNode retval = getNode(nodeType, cm); 347 348 retval.init(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); 349 350 return retval; 351 } 352 372 public final QueryTreeNode getNode(int nodeType, 373 Object arg1, 374 Object arg2, 375 Object arg3, 376 Object arg4, 377 Object arg5, 378 Object arg6, 379 Object arg7, 380 Object arg8, 381 Object arg9, 382 Object arg10, 383 ContextManager cm) 384 throws StandardException 385 { 386 QueryTreeNode retval = getNode(nodeType, cm); 387 388 retval.init(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, 389 arg10); 390 391 return retval; 392 } 393 414 public final QueryTreeNode getNode(int nodeType, 415 Object arg1, 416 Object arg2, 417 Object arg3, 418 Object arg4, 419 Object arg5, 420 Object arg6, 421 Object arg7, 422 Object arg8, 423 Object arg9, 424 Object arg10, 425 Object arg11, 426 ContextManager cm) 427 throws StandardException 428 { 429 QueryTreeNode retval = getNode(nodeType, cm); 430 431 retval.init(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, 432 arg10, arg11); 433 434 return retval; 435 } 436 458 public final QueryTreeNode getNode(int nodeType, 459 Object arg1, 460 Object arg2, 461 Object arg3, 462 Object arg4, 463 Object arg5, 464 Object arg6, 465 Object arg7, 466 Object arg8, 467 Object arg9, 468 Object arg10, 469 Object arg11, 470 Object arg12, 471 ContextManager cm) 472 throws StandardException 473 { 474 QueryTreeNode retval = getNode(nodeType, cm); 475 476 retval.init(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, 477 arg10, arg11, arg12); 478 479 return retval; 480 } 481 504 public final QueryTreeNode getNode(int nodeType, 505 Object arg1, 506 Object arg2, 507 Object arg3, 508 Object arg4, 509 Object arg5, 510 Object arg6, 511 Object arg7, 512 Object arg8, 513 Object arg9, 514 Object arg10, 515 Object arg11, 516 Object arg12, 517 Object arg13, 518 ContextManager cm) 519 throws StandardException 520 { 521 QueryTreeNode retval = getNode(nodeType, cm); 522 523 retval.init(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, 524 arg10, arg11, arg12, arg13); 525 526 return retval; 527 } 528 552 public final QueryTreeNode getNode(int nodeType, 553 Object arg1, 554 Object arg2, 555 Object arg3, 556 Object arg4, 557 Object arg5, 558 Object arg6, 559 Object arg7, 560 Object arg8, 561 Object arg9, 562 Object arg10, 563 Object arg11, 564 Object arg12, 565 Object arg13, 566 Object arg14, 567 ContextManager cm) 568 throws StandardException 569 { 570 QueryTreeNode retval = getNode(nodeType, cm); 571 572 retval.init(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, 573 arg10, arg11, arg12, arg13, arg14); 574 575 return retval; 576 } 577 578 596 public abstract QueryTreeNode 597 getCreateAliasNode( 598 Object aliasName, 599 Object targetName, 600 Object aliasSpecificInfo, 601 char aliasType, 602 Boolean delimitedIdentifier, 603 ContextManager cm) 604 throws StandardException; 605 606 607 619 public abstract ResultSetNode mapTableAsVTI( 620 TableDescriptor td, 621 String vtiClass, 622 String correlationName, 623 ResultColumnList resultColumns, 624 Properties tableProperties, 625 ContextManager cm) throws StandardException; 626 627 } 628 629 | Popular Tags |