View Javadoc
1 2 package net.sf.voruta; 3 4 import java.util.Properties; 5 /*** 6 * 7 * @author baliuka 8 */ 9 final public class ProcedureDescriptor { 10 11 private int hit; 12 private int miss; 13 private String jdbcSQL; 14 private ResultSetHandler handler; 15 private Language helper; 16 private boolean update; 17 private boolean cached; 18 private boolean flushOnExecute; 19 private Properties tags; 20 21 ProcedureDescriptor(Properties tags){ 22 23 this.tags = tags; 24 25 } 26 27 /*** Holds value of property getRegion. */ 28 private String region; 29 30 /*** Holds value of property getRegions. */ 31 private String[] regions; 32 33 /*** Getter for property cached. 34 * @return Value of property cached. 35 * 36 */ 37 public boolean isCached() { 38 return cached; 39 } 40 41 /*** Setter for property cached. 42 * @param cached New value of property cached. 43 * 44 */ 45 void setCached(boolean cached) { 46 this.cached = cached; 47 } 48 49 /*** Getter for property flushOnExecute. 50 * @return Value of property flushOnExecute. 51 * 52 */ 53 public boolean isFlushOnExecute() { 54 return flushOnExecute; 55 } 56 57 /*** Setter for property flushOnExecute. 58 * @param flushOnExecute New value of property flushOnExecute. 59 * 60 */ 61 void setFlushOnExecute(boolean flushOnExecute) { 62 this.flushOnExecute = flushOnExecute; 63 } 64 65 /*** Getter for property handler. 66 * @return Value of property handler. 67 * 68 */ 69 public ResultSetHandler getHandler() { 70 return handler; 71 } 72 73 /*** Setter for property handler. 74 * @param handler New value of property handler. 75 * 76 */ 77 void setHandler(ResultSetHandler handler) { 78 this.handler = handler; 79 } 80 81 /*** Getter for property jdbcSQL. 82 * @return Value of property jdbcSQL. 83 * 84 */ 85 String getJdbcSQL() { 86 return jdbcSQL; 87 } 88 89 /*** Setter for property jdbcSQL. 90 * @param jdbcSQL New value of property jdbcSQL. 91 * 92 */ 93 void setJdbcSQL(String jdbcSQL) { 94 this.jdbcSQL = jdbcSQL; 95 } 96 97 /*** Getter for property tags. 98 * @return Value of property tags. 99 * 100 */ 101 public java.util.Properties getTags() { 102 return tags; 103 } 104 105 106 /*** Getter for property update. 107 * @return Value of property update. 108 * 109 */ 110 public boolean isUpdate() { 111 return update; 112 } 113 114 /*** Setter for property update. 115 * @param update New value of property update. 116 * 117 */ 118 void setUpdate(boolean update) { 119 this.update = update; 120 } 121 122 /*** Getter for property helper. 123 * @return Value of property helper. 124 * 125 */ 126 public Language getHelper() { 127 return helper; 128 } 129 130 /*** Setter for property helper. 131 * @param helper New value of property helper. 132 * 133 */ 134 void setHelper(Language helper) { 135 this.helper = helper; 136 } 137 138 /*** Getter for property getRegion. 139 * @return Value of property getRegion. 140 */ 141 public String getRegion() { 142 return this.region; 143 } 144 145 146 /*** Getter for property getRegions. 147 * @return Value of property getRegions. 148 */ 149 public String[] getRegions() { 150 return this.regions; 151 } 152 153 void setRegion(String value) { 154 this.region = value; 155 } 156 157 158 /*** Getter for property getRegions. 159 * @return Value of property getRegions. 160 */ 161 void setRegions(String[] value) { 162 this.regions = value; 163 } 164 165 public int getHitCount(){ 166 return hit; 167 } 168 169 public int getMissCount(){ 170 return miss; 171 } 172 void hit(){ 173 hit++; 174 } 175 176 void miss(){ 177 miss ++; 178 } 179 }

This page was automatically generated by Maven