01: package com.mockrunner.mock.connector.spi;
02:
03: import javax.resource.ResourceException;
04: import javax.resource.spi.ManagedConnectionMetaData;
05:
06: /**
07: * Mock implementation of <code>ManagedConnectionMetaData</code>.
08: */
09: public class MockManagedConnectionMetaData implements
10: ManagedConnectionMetaData {
11: private String eisProductName = "Mockrunner";
12: private String eisProductVersion = "";
13: private int maxConnections = 1;
14: private String userName = "";
15:
16: public String getEISProductName() throws ResourceException {
17: return eisProductName;
18: }
19:
20: public String getEISProductVersion() throws ResourceException {
21: return eisProductVersion;
22: }
23:
24: public int getMaxConnections() throws ResourceException {
25: return maxConnections;
26: }
27:
28: public String getUserName() throws ResourceException {
29: return userName;
30: }
31:
32: public void setEisProductName(String eisProductName) {
33: this .eisProductName = eisProductName;
34: }
35:
36: public void setEisProductVersion(String eisProductVersion) {
37: this .eisProductVersion = eisProductVersion;
38: }
39:
40: public void setMaxConnections(int maxConnections) {
41: this .maxConnections = maxConnections;
42: }
43:
44: public void setUserName(String userName) {
45: this.userName = userName;
46: }
47: }
|