View Javadoc

1   package com.github.smokestack.jca.cci;
2   
3   import javax.resource.cci.ResourceAdapterMetaData;
4   
5   import org.apache.commons.lang.builder.ReflectionToStringBuilder;
6   import org.apache.commons.lang.builder.ToStringStyle;
7   
8   import com.github.smokestack.exception.NeedsMockDefinitionException;
9   
10  public class MockResourceAdapterMetaData implements ResourceAdapterMetaData {
11  	
12  	public MockResourceAdapterMetaData(){
13  	}
14  
15  	/* (non-Javadoc)
16  	 * @see javax.resource.cci.ResourceAdapterMetaData#getAdapterName()
17  	 */
18  	public String getAdapterName() {
19  		return _getAdapterName();
20  	}
21  
22  	public String _getAdapterName() {
23  		throw new NeedsMockDefinitionException();
24  	}
25  
26  	/* (non-Javadoc)
27  	 * @see javax.resource.cci.ResourceAdapterMetaData#getAdapterShortDescription()
28  	 */
29  	public String getAdapterShortDescription() {
30  		return _getAdapterShortDescription();
31  	}
32  
33  	public String _getAdapterShortDescription() {
34  		throw new NeedsMockDefinitionException();
35  	}
36  
37  	/* (non-Javadoc)
38  	 * @see javax.resource.cci.ResourceAdapterMetaData#getAdapterVendorName()
39  	 */
40  	public String getAdapterVendorName() {
41  		return _getAdapterVendorName();
42  	}
43  
44  	public String _getAdapterVendorName() {
45  		throw new NeedsMockDefinitionException();
46  	}
47  
48  	/* (non-Javadoc)
49  	 * @see javax.resource.cci.ResourceAdapterMetaData#getAdapterVersion()
50  	 */
51  	public String getAdapterVersion() {
52  		return _getAdapterVersion();
53  	}
54  
55  	public String _getAdapterVersion() {
56  		throw new NeedsMockDefinitionException();
57  	}
58  
59  	/* (non-Javadoc)
60  	 * @see javax.resource.cci.ResourceAdapterMetaData#getInteractionSpecsSupported()
61  	 */
62  	public String[] getInteractionSpecsSupported() {
63  		return _getInteractionSpecsSupported();
64  	}
65  
66  	public String[] _getInteractionSpecsSupported() {
67  		throw new NeedsMockDefinitionException();
68  	}
69  
70  	/* (non-Javadoc)
71  	 * @see javax.resource.cci.ResourceAdapterMetaData#getSpecVersion()
72  	 */
73  	public String getSpecVersion() {
74  		return _getSpecVersion();
75  	}
76  
77  	public String _getSpecVersion() {
78  		throw new NeedsMockDefinitionException();
79  	}
80  
81  	/* (non-Javadoc)
82  	 * @see javax.resource.cci.ResourceAdapterMetaData#supportsExecuteWithInputAndOutputRecord()
83  	 */
84  	public boolean supportsExecuteWithInputAndOutputRecord() {
85  		return _supportsExecuteWithInputAndOutputRecord();
86  	}
87  
88  	public boolean _supportsExecuteWithInputAndOutputRecord() {
89  		throw new NeedsMockDefinitionException();
90  	}
91  
92  	/* (non-Javadoc)
93  	 * @see javax.resource.cci.ResourceAdapterMetaData#supportsExecuteWithInputRecordOnly()
94  	 */
95  	public boolean supportsExecuteWithInputRecordOnly() {
96  		return _supportsExecuteWithInputRecordOnly();
97  	}
98  
99  	public boolean _supportsExecuteWithInputRecordOnly() {
100 		throw new NeedsMockDefinitionException();
101 	}
102 
103 	/* (non-Javadoc)
104 	 * @see javax.resource.cci.ResourceAdapterMetaData#supportsLocalTransactionDemarcation()
105 	 */
106 	public boolean supportsLocalTransactionDemarcation() {
107 		return _supportsLocalTransactionDemarcation();
108 	}
109 
110 	public boolean _supportsLocalTransactionDemarcation() {
111 		throw new NeedsMockDefinitionException();
112 	}
113 
114 	public String toString(){
115 		return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
116 	}
117 }