1 22 23 package org.xquark.extractor.sql; 24 25 26 public class Context { 27 28 private static final String RCSRevision = "$Revision: 1.6 $"; 29 private static final String RCSName = "$Name: $"; 30 31 public boolean outerJoinPredicate = false; 32 public SqlRenameRelation innerTable = null; 33 public boolean selectList = false; 34 public Context parent = null; 35 36 public StatementInfo currentStmt = new StatementInfo(); 37 private int parameterCounter = 0; 38 39 public Context() {} 40 41 public Context(Context parent) { this.parent = parent;} 42 43 private int getCurrentParameterIndex() { return ++parameterCounter;} 44 45 public void registerParameter(SqlPlaceHolder placeHolder) { 46 if (parent != null) 47 parent.registerParameter(placeHolder); 48 currentStmt.registerParameter(placeHolder, getCurrentParameterIndex()); 49 } 50 } 51 | Popular Tags |