View Javadoc

1   package com.github.smokestack.jca.cci;
2   
3   import javax.resource.ResourceException;
4   import javax.resource.cci.ConnectionMetaData;
5   
6   import org.apache.commons.lang.builder.ReflectionToStringBuilder;
7   import org.apache.commons.lang.builder.ToStringStyle;
8   
9   import com.github.smokestack.exception.NeedsMockDefinitionException;
10  
11  public class MockConnectionMetaData implements ConnectionMetaData {
12  
13  	public MockConnectionMetaData() {
14  	}
15  
16  	/* (non-Javadoc)
17  	 * @see javax.resource.cci.ConnectionMetaData#getEISProductName()
18  	 */
19  	public String getEISProductName() throws ResourceException {
20  		return _getEISProductName();
21  	}
22  
23  	public String _getEISProductName() throws ResourceException {
24  		throw new NeedsMockDefinitionException();
25  	}
26  
27  	/* (non-Javadoc)
28  	 * @see javax.resource.cci.ConnectionMetaData#getEISProductVersion()
29  	 */
30  	public String getEISProductVersion() throws ResourceException {
31  		return _getEISProductVersion();
32  	}
33  
34  	public String _getEISProductVersion() throws ResourceException {
35  		throw new NeedsMockDefinitionException();
36  	}
37  
38  	/* (non-Javadoc)
39  	 * @see javax.resource.cci.ConnectionMetaData#getUserName()
40  	 */
41  	public String getUserName() throws ResourceException {
42  		return _getUserName();
43  	}
44  
45  	public String _getUserName() throws ResourceException {
46  		throw new NeedsMockDefinitionException();
47  	}
48  
49  	public String toString(){
50  		return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
51  	}
52  }