View Javadoc

1   package com.github.smokestack.jca.cci;
2   
3   import javax.resource.ResourceException;
4   import javax.resource.cci.ResultSetInfo;
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 MockResultSetInfo implements ResultSetInfo {
12  
13  	public MockResultSetInfo() {
14  	}
15  
16  	/* (non-Javadoc)
17  	 * @see javax.resource.cci.ResultSetInfo#deletesAreDetected(int)
18  	 */
19  	public boolean deletesAreDetected(int type) throws ResourceException {
20  		return _deletesAreDetected(type);
21  	}
22  
23  	public boolean _deletesAreDetected(int type) throws ResourceException {
24  		throw new NeedsMockDefinitionException();
25  	}
26  
27  	/* (non-Javadoc)
28  	 * @see javax.resource.cci.ResultSetInfo#insertsAreDetected(int)
29  	 */
30  	public boolean insertsAreDetected(int type) throws ResourceException {
31  		return _insertsAreDetected(type);
32  	}
33  
34  	public boolean _insertsAreDetected(int type) throws ResourceException {
35  		throw new NeedsMockDefinitionException();
36  	}
37  
38  	/* (non-Javadoc)
39  	 * @see javax.resource.cci.ResultSetInfo#othersDeletesAreVisible(int)
40  	 */
41  	public boolean othersDeletesAreVisible(int type) throws ResourceException {
42  		return _othersDeletesAreVisible(type);
43  	}
44  
45  	public boolean _othersDeletesAreVisible(int type) throws ResourceException {
46  		throw new NeedsMockDefinitionException();
47  	}
48  
49  	/* (non-Javadoc)
50  	 * @see javax.resource.cci.ResultSetInfo#othersInsertsAreVisible(int)
51  	 */
52  	public boolean othersInsertsAreVisible(int type) throws ResourceException {
53  		return _othersInsertsAreVisible(type);
54  	}
55  
56  	public boolean _othersInsertsAreVisible(int type) throws ResourceException {
57  		throw new NeedsMockDefinitionException();
58  	}
59  
60  	/* (non-Javadoc)
61  	 * @see javax.resource.cci.ResultSetInfo#othersUpdatesAreVisible(int)
62  	 */
63  	public boolean othersUpdatesAreVisible(int type) throws ResourceException {
64  		return _othersUpdatesAreVisible(type);
65  	}
66  
67  	public boolean _othersUpdatesAreVisible(int type) throws ResourceException {
68  		throw new NeedsMockDefinitionException();
69  	}
70  
71  	/* (non-Javadoc)
72  	 * @see javax.resource.cci.ResultSetInfo#ownDeletesAreVisible(int)
73  	 */
74  	public boolean ownDeletesAreVisible(int type) throws ResourceException {
75  		return _ownDeletesAreVisible(type);
76  	}
77  
78  	public boolean _ownDeletesAreVisible(int type) throws ResourceException {
79  		throw new NeedsMockDefinitionException();
80  	}
81  
82  	/* (non-Javadoc)
83  	 * @see javax.resource.cci.ResultSetInfo#ownInsertsAreVisible(int)
84  	 */
85  	public boolean ownInsertsAreVisible(int type) throws ResourceException {
86  		return _ownInsertsAreVisible(type);
87  	}
88  
89  	public boolean _ownInsertsAreVisible(int type) throws ResourceException {
90  		throw new NeedsMockDefinitionException();
91  	}
92  
93  	/* (non-Javadoc)
94  	 * @see javax.resource.cci.ResultSetInfo#ownUpdatesAreVisible(int)
95  	 */
96  	public boolean ownUpdatesAreVisible(int type) throws ResourceException {
97  		return _ownUpdatesAreVisible(type);
98  	}
99  
100 	public boolean _ownUpdatesAreVisible(int type) throws ResourceException {
101 		throw new NeedsMockDefinitionException();
102 	}
103 
104 	/* (non-Javadoc)
105 	 * @see javax.resource.cci.ResultSetInfo#supportsResultSetType(int)
106 	 */
107 	public boolean supportsResultSetType(int type) throws ResourceException {
108 		return _supportsResultSetType(type);
109 	}
110 
111 	public boolean _supportsResultSetType(int type) throws ResourceException {
112 		throw new NeedsMockDefinitionException();
113 	}
114 
115 	/* (non-Javadoc)
116 	 * @see javax.resource.cci.ResultSetInfo#supportsResultTypeConcurrency(int, int)
117 	 */
118 	public boolean supportsResultTypeConcurrency(int type, int concurrency) throws ResourceException {
119 		return _supportsResultTypeConcurrency(type, concurrency);
120 	}
121 
122 	public boolean _supportsResultTypeConcurrency(int type, int concurrency) throws ResourceException {
123 		throw new NeedsMockDefinitionException();
124 	}
125 
126 	/* (non-Javadoc)
127 	 * @see javax.resource.cci.ResultSetInfo#updatesAreDetected(int)
128 	 */
129 	public boolean updatesAreDetected(int type) throws ResourceException {
130 		return _updatesAreDetected(type);
131 	}
132 
133 	public boolean _updatesAreDetected(int type) throws ResourceException {
134 		throw new NeedsMockDefinitionException();
135 	}
136 
137 	public String toString(){
138 		return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
139 	}
140 }