01: /*
02:
03: Derby - Class org.apache.derbyTesting.unitTests.lang.EmptyResultSetStatisticsFactory
04:
05: Licensed to the Apache Software Foundation (ASF) under one or more
06: contributor license agreements. See the NOTICE file distributed with
07: this work for additional information regarding copyright ownership.
08: The ASF licenses this file to You under the Apache License, Version 2.0
09: (the "License"); you may not use this file except in compliance with
10: the License. You may obtain a copy of the License at
11:
12: http://www.apache.org/licenses/LICENSE-2.0
13:
14: Unless required by applicable law or agreed to in writing, software
15: distributed under the License is distributed on an "AS IS" BASIS,
16: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: See the License for the specific language governing permissions and
18: limitations under the License.
19:
20: */
21:
22: package org.apache.derbyTesting.unitTests.lang;
23:
24: import org.apache.derby.iapi.services.monitor.Monitor;
25:
26: import org.apache.derby.iapi.error.StandardException;
27:
28: import org.apache.derby.iapi.sql.Activation;
29: import org.apache.derby.iapi.sql.ResultSet;
30: import org.apache.derby.iapi.sql.PreparedStatement;
31:
32: import org.apache.derby.iapi.sql.execute.NoPutResultSet;
33: import org.apache.derby.iapi.sql.execute.ResultSetFactory;
34: import org.apache.derby.iapi.sql.execute.ResultSetStatisticsFactory;
35:
36: import org.apache.derby.iapi.sql.execute.RunTimeStatistics;
37:
38: import org.apache.derby.impl.sql.execute.rts.ResultSetStatistics;
39:
40: import java.util.Properties;
41:
42: /**
43: * ResultSetStatisticsFactory provides a wrapper around all of
44: * objects associated with run time statistics.
45: * <p>
46: * This implementation of the protocol is for stubbing out
47: * the RunTimeStatistics feature at execution time..
48: *
49: * @author jerry
50: */
51: public class EmptyResultSetStatisticsFactory implements
52: ResultSetStatisticsFactory {
53: //
54: // ExecutionFactory interface
55: //
56: //
57: // ResultSetStatisticsFactory interface
58: //
59:
60: /**
61: @see ResultSetStatisticsFactory#getRunTimeStatistics
62: */
63: public RunTimeStatistics getRunTimeStatistics(
64: Activation activation, ResultSet rs,
65: NoPutResultSet[] subqueryTrackingArray)
66: throws StandardException {
67: return null;
68: }
69:
70: /**
71: @see ResultSetStatisticsFactory#getResultSetStatistics
72: */
73: public ResultSetStatistics getResultSetStatistics(ResultSet rs) {
74: return null;
75: }
76:
77: /**
78: @see ResultSetStatisticsFactory#getResultSetStatistics
79: */
80: public ResultSetStatistics getResultSetStatistics(NoPutResultSet rs) {
81: return null;
82: }
83:
84: /**
85: @see ResultSetStatisticsFactory#getNoRowsResultSetStatistics
86: */
87: public ResultSetStatistics getNoRowsResultSetStatistics(ResultSet rs) {
88: return null;
89: }
90:
91: //
92: // class interface
93: //
94: public EmptyResultSetStatisticsFactory() {
95: }
96:
97: }
|