1 22 package org.jboss.test.jcaprops.support; 23 24 import java.io.PrintWriter ; 25 import java.util.Set ; 26 27 import javax.resource.ResourceException ; 28 import javax.resource.spi.ConnectionManager ; 29 import javax.resource.spi.ConnectionRequestInfo ; 30 import javax.resource.spi.ManagedConnection ; 31 import javax.resource.spi.ManagedConnectionFactory ; 32 import javax.security.auth.Subject ; 33 34 40 public class PropertyTestManagedConnectionFactory implements ManagedConnectionFactory 41 { 42 43 private static final long serialVersionUID = 1L; 44 45 private String stringRAR; 46 private Boolean booleanRAR; 47 private Byte byteRAR; 48 private Character characterRAR; 49 private Short shortRAR; 50 private Integer integerRAR; 51 private Long longRAR; 52 private Float floatRAR; 53 private Double doubleRAR; 54 private String stringCD; 55 private Boolean booleanCD; 56 private Byte byteCD; 57 private Character characterCD; 58 private Short shortCD; 59 private Integer integerCD; 60 private Long longCD; 61 private Float floatCD; 62 private Double doubleCD; 63 private String stringMCF; 64 private Boolean booleanMCF; 65 private Byte byteMCF; 66 private Character characterMCF; 67 private Short shortMCF; 68 private Integer integerMCF; 69 private Long longMCF; 70 private Float floatMCF; 71 private Double doubleMCF; 72 73 public Boolean getBooleanCD() 74 { 75 return booleanCD; 76 } 77 78 public void setBooleanCD(Boolean booleanCD) 79 { 80 this.booleanCD = booleanCD; 81 } 82 83 public Boolean getBooleanMCF() 84 { 85 return booleanMCF; 86 } 87 88 public void setBooleanMCF(Boolean booleanMCF) 89 { 90 this.booleanMCF = booleanMCF; 91 } 92 93 public Boolean getBooleanRAR() 94 { 95 return booleanRAR; 96 } 97 98 public void setBooleanRAR(Boolean booleanRAR) 99 { 100 this.booleanRAR = booleanRAR; 101 } 102 103 public Byte getByteCD() 104 { 105 return byteCD; 106 } 107 108 public void setByteCD(Byte byteCD) 109 { 110 this.byteCD = byteCD; 111 } 112 113 public Byte getByteMCF() 114 { 115 return byteMCF; 116 } 117 118 public void setByteMCF(Byte byteMCF) 119 { 120 this.byteMCF = byteMCF; 121 } 122 123 public Byte getByteRAR() 124 { 125 return byteRAR; 126 } 127 128 public void setByteRAR(Byte byteRAR) 129 { 130 this.byteRAR = byteRAR; 131 } 132 133 public Character getCharacterCD() 134 { 135 return characterCD; 136 } 137 138 public void setCharacterCD(Character characterCD) 139 { 140 this.characterCD = characterCD; 141 } 142 143 public Character getCharacterMCF() 144 { 145 return characterMCF; 146 } 147 148 public void setCharacterMCF(Character characterMCF) 149 { 150 this.characterMCF = characterMCF; 151 } 152 153 public Character getCharacterRAR() 154 { 155 return characterRAR; 156 } 157 158 public void setCharacterRAR(Character characterRAR) 159 { 160 this.characterRAR = characterRAR; 161 } 162 163 public Double getDoubleCD() 164 { 165 return doubleCD; 166 } 167 168 public void setDoubleCD(Double doubleCD) 169 { 170 this.doubleCD = doubleCD; 171 } 172 173 public Double getDoubleMCF() 174 { 175 return doubleMCF; 176 } 177 178 public void setDoubleMCF(Double doubleMCF) 179 { 180 this.doubleMCF = doubleMCF; 181 } 182 183 public Double getDoubleRAR() 184 { 185 return doubleRAR; 186 } 187 188 public void setDoubleRAR(Double doubleRAR) 189 { 190 this.doubleRAR = doubleRAR; 191 } 192 193 public Float getFloatCD() 194 { 195 return floatCD; 196 } 197 198 public void setFloatCD(Float floatCD) 199 { 200 this.floatCD = floatCD; 201 } 202 203 public Float getFloatMCF() 204 { 205 return floatMCF; 206 } 207 208 public void setFloatMCF(Float floatMCF) 209 { 210 this.floatMCF = floatMCF; 211 } 212 213 public Float getFloatRAR() 214 { 215 return floatRAR; 216 } 217 218 public void setFloatRAR(Float floatRAR) 219 { 220 this.floatRAR = floatRAR; 221 } 222 223 public Integer getIntegerCD() 224 { 225 return integerCD; 226 } 227 228 public void setIntegerCD(Integer integerCD) 229 { 230 this.integerCD = integerCD; 231 } 232 233 public Integer getIntegerMCF() 234 { 235 return integerMCF; 236 } 237 238 public void setIntegerMCF(Integer integerMCF) 239 { 240 this.integerMCF = integerMCF; 241 } 242 243 public Integer getIntegerRAR() 244 { 245 return integerRAR; 246 } 247 248 public void setIntegerRAR(Integer integerRAR) 249 { 250 this.integerRAR = integerRAR; 251 } 252 253 public Long getLongCD() 254 { 255 return longCD; 256 } 257 258 public void setLongCD(Long longCD) 259 { 260 this.longCD = longCD; 261 } 262 263 public Long getLongMCF() 264 { 265 return longMCF; 266 } 267 268 public void setLongMCF(Long longMCF) 269 { 270 this.longMCF = longMCF; 271 } 272 273 public Long getLongRAR() 274 { 275 return longRAR; 276 } 277 278 public void setLongRAR(Long longRAR) 279 { 280 this.longRAR = longRAR; 281 } 282 283 public Short getShortCD() 284 { 285 return shortCD; 286 } 287 288 public void setShortCD(Short shortCD) 289 { 290 this.shortCD = shortCD; 291 } 292 293 public Short getShortMCF() 294 { 295 return shortMCF; 296 } 297 298 public void setShortMCF(Short shortMCF) 299 { 300 this.shortMCF = shortMCF; 301 } 302 303 public Short getShortRAR() 304 { 305 return shortRAR; 306 } 307 308 public void setShortRAR(Short shortRAR) 309 { 310 this.shortRAR = shortRAR; 311 } 312 313 public String getStringCD() 314 { 315 return stringCD; 316 } 317 318 public void setStringCD(String stringCD) 319 { 320 this.stringCD = stringCD; 321 } 322 323 public String getStringMCF() 324 { 325 return stringMCF; 326 } 327 328 public void setStringMCF(String stringMCF) 329 { 330 this.stringMCF = stringMCF; 331 } 332 333 public String getStringRAR() 334 { 335 return stringRAR; 336 } 337 338 public void setStringRAR(String stringRAR) 339 { 340 this.stringRAR = stringRAR; 341 } 342 343 public Object createConnectionFactory() throws ResourceException 344 { 345 return null; 346 } 347 348 public Object createConnectionFactory(ConnectionManager cxManager) throws ResourceException 349 { 350 return new PropertyTestConnectionFactoryImpl(cxManager); 351 } 352 353 public ManagedConnection createManagedConnection(Subject subject, ConnectionRequestInfo cxRequestInfo) throws ResourceException 354 { 355 return new PropertyTestManagedConnection(this); 356 } 357 358 public PrintWriter getLogWriter() throws ResourceException 359 { 360 return null; 361 } 362 363 public ManagedConnection matchManagedConnections(Set connectionSet, Subject subject, ConnectionRequestInfo cxRequestInfo) throws ResourceException 364 { 365 return (ManagedConnection ) connectionSet.iterator().next(); 366 } 367 368 public void setLogWriter(PrintWriter out) throws ResourceException 369 { 370 } 371 372 } 373 | Popular Tags |