/platform/libcore/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/TestHelper_Connection1.java

https://github.com/lems111/Intercept-CM6-Kernel · Java · 179 lines · 120 code · 38 blank · 21 comment · 0 complexity · 7494eeefa0b3809bca89b6d6ea789aba 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.CallableStatement;
  19. import java.sql.Connection;
  20. import java.sql.DatabaseMetaData;
  21. import java.sql.PreparedStatement;
  22. import java.sql.SQLException;
  23. import java.sql.SQLWarning;
  24. import java.sql.Savepoint;
  25. import java.sql.Statement;
  26. import java.util.Map;
  27. /**
  28. * Helper class for the java.sql tests - a skeleton class which implements the
  29. * java.sql.Connection interface
  30. *
  31. */
  32. public class TestHelper_Connection1 implements Connection {
  33. public void clearWarnings() throws SQLException {
  34. }
  35. public void close() throws SQLException {
  36. }
  37. public void commit() throws SQLException {
  38. }
  39. public Statement createStatement() throws SQLException {
  40. return null;
  41. }
  42. public Statement createStatement(int resultSetType,
  43. int resultSetConcurrency, int resultSetHoldability)
  44. throws SQLException {
  45. return null;
  46. }
  47. public Statement createStatement(int resultSetType, int resultSetConcurrency)
  48. throws SQLException {
  49. return null;
  50. }
  51. public boolean getAutoCommit() throws SQLException {
  52. return false;
  53. }
  54. public String getCatalog() throws SQLException {
  55. return null;
  56. }
  57. public int getHoldability() throws SQLException {
  58. return 0;
  59. }
  60. public DatabaseMetaData getMetaData() throws SQLException {
  61. return null;
  62. }
  63. public int getTransactionIsolation() throws SQLException {
  64. return 0;
  65. }
  66. public Map<String, Class<?>> getTypeMap() throws SQLException {
  67. return null;
  68. }
  69. public SQLWarning getWarnings() throws SQLException {
  70. return null;
  71. }
  72. public boolean isClosed() throws SQLException {
  73. return false;
  74. }
  75. public boolean isReadOnly() throws SQLException {
  76. return false;
  77. }
  78. public String nativeSQL(String sql) throws SQLException {
  79. return null;
  80. }
  81. public CallableStatement prepareCall(String sql, int resultSetType,
  82. int resultSetConcurrency, int resultSetHoldability)
  83. throws SQLException {
  84. return null;
  85. }
  86. public CallableStatement prepareCall(String sql, int resultSetType,
  87. int resultSetConcurrency) throws SQLException {
  88. return null;
  89. }
  90. public CallableStatement prepareCall(String sql) throws SQLException {
  91. return null;
  92. }
  93. public PreparedStatement prepareStatement(String sql, int resultSetType,
  94. int resultSetConcurrency, int resultSetHoldability)
  95. throws SQLException {
  96. return null;
  97. }
  98. public PreparedStatement prepareStatement(String sql, int resultSetType,
  99. int resultSetConcurrency) throws SQLException {
  100. return null;
  101. }
  102. public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys)
  103. throws SQLException {
  104. return null;
  105. }
  106. public PreparedStatement prepareStatement(String sql, int[] columnIndexes)
  107. throws SQLException {
  108. return null;
  109. }
  110. public PreparedStatement prepareStatement(String sql, String[] columnNames)
  111. throws SQLException {
  112. return null;
  113. }
  114. public PreparedStatement prepareStatement(String sql) throws SQLException {
  115. return null;
  116. }
  117. public void releaseSavepoint(Savepoint savepoint) throws SQLException {
  118. }
  119. public void rollback() throws SQLException {
  120. }
  121. public void rollback(Savepoint savepoint) throws SQLException {
  122. }
  123. public void setAutoCommit(boolean autoCommit) throws SQLException {
  124. }
  125. public void setCatalog(String catalog) throws SQLException {
  126. }
  127. public void setHoldability(int holdability) throws SQLException {
  128. }
  129. public void setReadOnly(boolean readOnly) throws SQLException {
  130. }
  131. public Savepoint setSavepoint() throws SQLException {
  132. return null;
  133. }
  134. public Savepoint setSavepoint(String name) throws SQLException {
  135. return null;
  136. }
  137. public void setTransactionIsolation(int level) throws SQLException {
  138. }
  139. public void setTypeMap(Map<String, Class<?>> map) throws SQLException {
  140. }
  141. }