/luni/src/test/java/org/apache/harmony/sql/tests/java/sql/TestHelper_Connection1.java

https://github.com/mkedwards/platform__libcore · Java · 243 lines · 169 code · 53 blank · 21 comment · 0 complexity · a7891a304cc5ef37e5e16076063d95da MD5 · raw file

  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one or more
  3. * contributor license agreements. See the NOTICE file distributed with
  4. * this work for additional information regarding copyright ownership.
  5. * The ASF licenses this file to You under the Apache License, Version 2.0
  6. * (the "License"); you may not use this file except in compliance with
  7. * the License. You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. package org.apache.harmony.sql.tests.java.sql;
  18. import java.sql.Array;
  19. import java.sql.Blob;
  20. import java.sql.CallableStatement;
  21. import java.sql.Clob;
  22. import java.sql.Connection;
  23. import java.sql.DatabaseMetaData;
  24. import java.sql.NClob;
  25. import java.sql.PreparedStatement;
  26. import java.sql.SQLClientInfoException;
  27. import java.sql.SQLException;
  28. import java.sql.SQLWarning;
  29. import java.sql.SQLXML;
  30. import java.sql.Savepoint;
  31. import java.sql.Statement;
  32. import java.sql.Struct;
  33. import java.util.Map;
  34. import java.util.Properties;
  35. /**
  36. * Helper class for the java.sql tests - a skeleton class which implements the
  37. * java.sql.Connection interface
  38. *
  39. */
  40. public class TestHelper_Connection1 implements Connection {
  41. public void clearWarnings() throws SQLException {
  42. }
  43. public void close() throws SQLException {
  44. }
  45. public void commit() throws SQLException {
  46. }
  47. public Statement createStatement() throws SQLException {
  48. return null;
  49. }
  50. public Statement createStatement(int resultSetType,
  51. int resultSetConcurrency, int resultSetHoldability)
  52. throws SQLException {
  53. return null;
  54. }
  55. public Statement createStatement(int resultSetType, int resultSetConcurrency)
  56. throws SQLException {
  57. return null;
  58. }
  59. public boolean getAutoCommit() throws SQLException {
  60. return false;
  61. }
  62. public String getCatalog() throws SQLException {
  63. return null;
  64. }
  65. public int getHoldability() throws SQLException {
  66. return 0;
  67. }
  68. public DatabaseMetaData getMetaData() throws SQLException {
  69. return null;
  70. }
  71. public int getTransactionIsolation() throws SQLException {
  72. return 0;
  73. }
  74. public Map<String, Class<?>> getTypeMap() throws SQLException {
  75. return null;
  76. }
  77. public SQLWarning getWarnings() throws SQLException {
  78. return null;
  79. }
  80. public boolean isClosed() throws SQLException {
  81. return false;
  82. }
  83. public boolean isReadOnly() throws SQLException {
  84. return false;
  85. }
  86. public String nativeSQL(String sql) throws SQLException {
  87. return null;
  88. }
  89. public CallableStatement prepareCall(String sql, int resultSetType,
  90. int resultSetConcurrency, int resultSetHoldability)
  91. throws SQLException {
  92. return null;
  93. }
  94. public CallableStatement prepareCall(String sql, int resultSetType,
  95. int resultSetConcurrency) throws SQLException {
  96. return null;
  97. }
  98. public CallableStatement prepareCall(String sql) throws SQLException {
  99. return null;
  100. }
  101. public PreparedStatement prepareStatement(String sql, int resultSetType,
  102. int resultSetConcurrency, int resultSetHoldability)
  103. throws SQLException {
  104. return null;
  105. }
  106. public PreparedStatement prepareStatement(String sql, int resultSetType,
  107. int resultSetConcurrency) throws SQLException {
  108. return null;
  109. }
  110. public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys)
  111. throws SQLException {
  112. return null;
  113. }
  114. public PreparedStatement prepareStatement(String sql, int[] columnIndexes)
  115. throws SQLException {
  116. return null;
  117. }
  118. public PreparedStatement prepareStatement(String sql, String[] columnNames)
  119. throws SQLException {
  120. return null;
  121. }
  122. public PreparedStatement prepareStatement(String sql) throws SQLException {
  123. return null;
  124. }
  125. public void releaseSavepoint(Savepoint savepoint) throws SQLException {
  126. }
  127. public void rollback() throws SQLException {
  128. }
  129. public void rollback(Savepoint savepoint) throws SQLException {
  130. }
  131. public void setAutoCommit(boolean autoCommit) throws SQLException {
  132. }
  133. public void setCatalog(String catalog) throws SQLException {
  134. }
  135. public void setHoldability(int holdability) throws SQLException {
  136. }
  137. public void setReadOnly(boolean readOnly) throws SQLException {
  138. }
  139. public Savepoint setSavepoint() throws SQLException {
  140. return null;
  141. }
  142. public Savepoint setSavepoint(String name) throws SQLException {
  143. return null;
  144. }
  145. public void setTransactionIsolation(int level) throws SQLException {
  146. }
  147. public void setTypeMap(Map<String, Class<?>> map) throws SQLException {
  148. }
  149. public boolean isWrapperFor(Class<?> iface) throws SQLException {
  150. return false;
  151. }
  152. public <T> T unwrap(Class<T> iface) throws SQLException {
  153. return null;
  154. }
  155. public Array createArrayOf(String typeName, Object[] elements)
  156. throws SQLException {
  157. return null;
  158. }
  159. public Blob createBlob() throws SQLException {
  160. return null;
  161. }
  162. public Clob createClob() throws SQLException {
  163. return null;
  164. }
  165. public NClob createNClob() throws SQLException {
  166. return null;
  167. }
  168. public SQLXML createSQLXML() throws SQLException {
  169. return null;
  170. }
  171. public Struct createStruct(String typeName, Object[] attributes)
  172. throws SQLException {
  173. return null;
  174. }
  175. public String getClientInfo(String name) throws SQLException {
  176. return null;
  177. }
  178. public Properties getClientInfo() throws SQLException {
  179. return null;
  180. }
  181. public boolean isValid(int timeout) throws SQLException {
  182. return false;
  183. }
  184. public void setClientInfo(String name, String value)
  185. throws SQLClientInfoException {
  186. }
  187. public void setClientInfo(Properties properties)
  188. throws SQLClientInfoException {
  189. }
  190. }