1 /* 2 3 Derby - Class org.apache.derbyTesting.unitTests.lang.EmptyResultSetStatisticsFactory 4 5 Licensed to the Apache Software Foundation (ASF) under one or more 6 contributor license agreements. See the NOTICE file distributed with 7 this work for additional information regarding copyright ownership. 8 The ASF licenses this file to You under the Apache License, Version 2.0 9 (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 29 import org.apache.derby.iapi.sql.Activation; 30 import org.apache.derby.iapi.sql.ResultSet; 31 import org.apache.derby.iapi.sql.PreparedStatement; 32 33 import org.apache.derby.iapi.sql.execute.NoPutResultSet; 34 import org.apache.derby.iapi.sql.execute.ResultSetFactory; 35 import org.apache.derby.iapi.sql.execute.ResultSetStatisticsFactory; 36 37 import org.apache.derby.iapi.sql.execute.RunTimeStatistics; 38 39 import org.apache.derby.impl.sql.execute.rts.ResultSetStatistics; 40 41 import java.util.Properties; 42 43 /** 44 * ResultSetStatisticsFactory provides a wrapper around all of 45 * objects associated with run time statistics. 46 * <p> 47 * This implementation of the protocol is for stubbing out 48 * the RunTimeStatistics feature at execution time.. 49 * 50 * @author jerry 51 */ 52 public class EmptyResultSetStatisticsFactory 53 implements ResultSetStatisticsFactory 54 { 55 // 56 // ExecutionFactory interface 57 // 58 // 59 // ResultSetStatisticsFactory interface 60 // 61 62 /** 63 @see ResultSetStatisticsFactory#getRunTimeStatistics 64 */ 65 public RunTimeStatistics getRunTimeStatistics( 66 Activation activation, 67 ResultSet rs, 68 NoPutResultSet[] subqueryTrackingArray) 69 throws StandardException 70 { 71 return null; 72 } 73 74 /** 75 @see ResultSetStatisticsFactory#getResultSetStatistics 76 */ 77 public ResultSetStatistics getResultSetStatistics(ResultSet rs) 78 { 79 return null; 80 } 81 82 /** 83 @see ResultSetStatisticsFactory#getResultSetStatistics 84 */ 85 public ResultSetStatistics getResultSetStatistics(NoPutResultSet rs) 86 { 87 return null; 88 } 89 90 /** 91 @see ResultSetStatisticsFactory#getNoRowsResultSetStatistics 92 */ 93 public ResultSetStatistics getNoRowsResultSetStatistics(ResultSet rs) 94 { 95 return null; 96 } 97 98 // 99 // class interface 100 // 101 public EmptyResultSetStatisticsFactory() 102 { 103 } 104 105 } 106