1 16 17 package org.springframework.jdbc.core.namedparam; 18 19 25 class ParsedSql { 26 27 private String sql; 28 29 private String newSql; 30 31 private String [] parameterNames; 32 33 private int namedParameterCount; 34 35 private int unnamedParameterCount; 36 37 private int totalParameterCount; 38 39 40 43 public ParsedSql() { 44 } 45 46 50 public ParsedSql(String sql) { 51 this.sql = sql; 52 } 53 54 55 58 public void setSql(String sql) { 59 this.sql = sql; 60 } 61 62 65 public String getSql() { 66 return sql; 67 } 68 69 72 public void setNewSql(String newSql) { 73 this.newSql = newSql; 74 } 75 76 79 public String getNewSql() { 80 return newSql; 81 } 82 83 87 public void setParameterNames(String [] parameterNames) { 88 this.parameterNames = parameterNames; 89 } 90 91 95 public String [] getParameterNames() { 96 return parameterNames; 97 } 98 99 103 public void setNamedParameterCount(int namedParameterCount) { 104 this.namedParameterCount = namedParameterCount; 105 } 106 107 111 public int getNamedParameterCount() { 112 return namedParameterCount; 113 } 114 115 118 public void setUnnamedParameterCount(int unnamedParameterCount) { 119 this.unnamedParameterCount = unnamedParameterCount; 120 } 121 122 125 public int getUnnamedParameterCount() { 126 return unnamedParameterCount; 127 } 128 129 133 public void setTotalParameterCount(int totalParameterCount) { 134 this.totalParameterCount = totalParameterCount; 135 } 136 137 141 public int getTotalParameterCount() { 142 return totalParameterCount; 143 } 144 145 } 146 | Popular Tags |