1 22 23 package org.jboss.resource.deployment.ds.metadata; 24 25 26 27 33 public class ConnectionPoolMetaData implements DsElementMetaData 34 { 35 36 37 private static final long serialVersionUID = 6612257250227220680L; 38 39 40 private int minPoolSize; 41 42 43 private int maxPoolSize; 44 45 46 private boolean prefill; 47 48 49 private long blockingTimeoutMilliseconds; 50 51 52 private long idleTimeoutMinutes; 53 54 55 private String connectionSql; 56 57 58 private String validConnectionSql; 59 60 61 private boolean noTxSeperatePool; 62 63 64 private boolean trackConnectionByTx; 65 66 67 private boolean backgroundValidation; 68 69 70 private int backgroundValidationInterval; 71 72 private PoolCriteriaMetaData poolCriteria = PoolCriteriaMetaData.NOTHING; 73 74 75 public boolean isBackgroundValidation() 76 { 77 return backgroundValidation; 78 } 79 80 public void setBackgroundValidation(boolean backgroundValidation) 81 { 82 this.backgroundValidation = backgroundValidation; 83 } 84 85 public int getBackgroundValidationInterval() 86 { 87 return backgroundValidationInterval; 88 } 89 90 public void setBackgroundValidationInterval(int backgroundValidationInterval) 91 { 92 this.backgroundValidationInterval = backgroundValidationInterval; 93 } 94 95 public PoolCriteriaMetaData getPoolCriteria() 96 { 97 return poolCriteria; 98 } 99 100 public void setPoolCriteria(PoolCriteriaMetaData poolCriteria) 101 { 102 this.poolCriteria = poolCriteria; 103 } 104 105 public String getValidConnectionSql() 106 { 107 return validConnectionSql; 108 } 109 110 public void setValidConnectionSql(String validConnectionSql) 111 { 112 this.validConnectionSql = validConnectionSql; 113 } 114 115 120 public long getBlockingTimeoutMilliseconds() 121 { 122 return blockingTimeoutMilliseconds; 123 } 124 125 130 public void setBlockingTimeoutMilliseconds(long blockingTimeoutMilliseconds) 131 { 132 this.blockingTimeoutMilliseconds = blockingTimeoutMilliseconds; 133 } 134 135 140 public String getConnectionSql() 141 { 142 return connectionSql; 143 } 144 145 150 public void setConnectionSql(String connectionSql) 151 { 152 this.connectionSql = connectionSql; 153 } 154 155 160 public long getIdleTimeoutMinutes() 161 { 162 return idleTimeoutMinutes; 163 } 164 165 170 public void setIdleTimeoutMinutes(long idleTimeoutMinutes) 171 { 172 this.idleTimeoutMinutes = idleTimeoutMinutes; 173 } 174 175 180 public int getMaxPoolSize() 181 { 182 return maxPoolSize; 183 } 184 185 190 public void setMaxPoolSize(int maxPoolSize) 191 { 192 this.maxPoolSize = maxPoolSize; 193 } 194 195 200 public int getMinPoolSize() 201 { 202 return minPoolSize; 203 } 204 205 210 public void setMinPoolSize(int minPoolSize) 211 { 212 this.minPoolSize = minPoolSize; 213 } 214 215 220 public boolean isNoTxSeperatePool() 221 { 222 return noTxSeperatePool; 223 } 224 225 230 public void setNoTxSeperatePool(boolean noTxSeperatePool) 231 { 232 this.noTxSeperatePool = noTxSeperatePool; 233 } 234 235 240 public boolean isPrefill() 241 { 242 return prefill; 243 } 244 245 250 public void setPrefill(boolean prefill) 251 { 252 this.prefill = prefill; 253 } 254 255 260 public boolean isTrackConnectionByTx() 261 { 262 return trackConnectionByTx; 263 } 264 265 270 public void setTrackConnectionByTx(boolean trackConnectionByTx) 271 { 272 this.trackConnectionByTx = trackConnectionByTx; 273 } 274 275 } 276 | Popular Tags |