01: package com.mockrunner.mock.connector.cci;
02:
03: import javax.resource.cci.ResourceAdapterMetaData;
04:
05: /**
06: * Mock implementation of <code>ResourceAdapterMetaData</code>.
07: */
08: public class MockResourceAdapterMetaData implements
09: ResourceAdapterMetaData {
10: private String adapterName = "Mockrunner Adapter";
11: private String shortDescription = "Mockrunner Adapter";
12: private String vendorName = "Mockrunner";
13: private String adapterVersion = "";
14: private String[] specsSupported = new String[0];
15: private String specVersion = "1.5";
16: private boolean supportsExecuteWithInAndOut = true;
17: private boolean supportsExecuteWithInOnly = true;
18: private boolean supportsLocalTransactionDemarcation = true;
19:
20: public String getAdapterName() {
21: return adapterName;
22: }
23:
24: public String getAdapterShortDescription() {
25: return shortDescription;
26: }
27:
28: public String getAdapterVendorName() {
29: return vendorName;
30: }
31:
32: public String getAdapterVersion() {
33: return adapterVersion;
34: }
35:
36: public String[] getInteractionSpecsSupported() {
37: return specsSupported;
38: }
39:
40: public String getSpecVersion() {
41: return specVersion;
42: }
43:
44: public boolean supportsExecuteWithInputAndOutputRecord() {
45: return supportsExecuteWithInAndOut;
46: }
47:
48: public boolean supportsExecuteWithInputRecordOnly() {
49: return supportsExecuteWithInOnly;
50: }
51:
52: public boolean supportsLocalTransactionDemarcation() {
53: return supportsLocalTransactionDemarcation;
54: }
55:
56: public void setAdapterName(String adapterName) {
57: this .adapterName = adapterName;
58: }
59:
60: public void setAdapterShortDescription(String shortDescription) {
61: this .shortDescription = shortDescription;
62: }
63:
64: public void setAdapterVendorName(String vendorName) {
65: this .vendorName = vendorName;
66: }
67:
68: public void setAdapterVersion(String adapterVersion) {
69: this .adapterVersion = adapterVersion;
70: }
71:
72: public void setInteractionSpecsSupported(String[] specsSupported) {
73: this .specsSupported = specsSupported;
74: }
75:
76: public void setSpecVersion(String specVersion) {
77: this .specVersion = specVersion;
78: }
79:
80: public void setSupportsExecuteWithInputAndOutputRecord(
81: boolean supportsExecuteWithInAndOut) {
82: this .supportsExecuteWithInAndOut = supportsExecuteWithInAndOut;
83: }
84:
85: public void setSupportsExecuteWithInputRecordOnly(
86: boolean supportsExecuteWithInOnly) {
87: this .supportsExecuteWithInOnly = supportsExecuteWithInOnly;
88: }
89:
90: public void setSupportsLocalTransactionDemarcation(
91: boolean supportsLocalTransactionDemarcation) {
92: this.supportsLocalTransactionDemarcation = supportsLocalTransactionDemarcation;
93: }
94: }
|