/bonecp-jdk-compat/src/main/java/java/sql/CallableStatement.java

http://github.com/wwadge/bonecp · Java · 145 lines · 118 code · 5 blank · 22 comment · 0 complexity · c00b167814f8041f4ec847bddb7619d6 MD5 · raw file

  1. /**
  2. * Copyright 2010 Wallace Wadge
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. /**
  17. *
  18. */
  19. package java.sql;
  20. import java.sql.SQLException;
  21. import java.util.Map;
  22. /**
  23. * @author wwadge/eclipse
  24. *
  25. */
  26. public interface CallableStatement extends java.sql.PreparedStatement {
  27. void registerOutParameter(int arg0, int arg1) throws java.sql.SQLException;
  28. void registerOutParameter(int arg0, int arg1, int arg2) throws java.sql.SQLException;
  29. boolean wasNull() throws java.sql.SQLException;
  30. String getString(int arg0) throws java.sql.SQLException;
  31. boolean getBoolean(int arg0) throws java.sql.SQLException;
  32. byte getByte(int arg0) throws java.sql.SQLException;
  33. short getShort(int arg0) throws java.sql.SQLException;
  34. int getInt(int arg0) throws java.sql.SQLException;
  35. long getLong(int arg0) throws java.sql.SQLException;
  36. float getFloat(int arg0) throws java.sql.SQLException;
  37. double getDouble(int arg0) throws java.sql.SQLException;
  38. java.math.BigDecimal getBigDecimal(int arg0, int arg1) throws java.sql.SQLException;
  39. byte[] getBytes(int arg0) throws java.sql.SQLException;
  40. java.sql.Date getDate(int arg0) throws java.sql.SQLException;
  41. java.sql.Time getTime(int arg0) throws java.sql.SQLException;
  42. java.sql.Timestamp getTimestamp(int arg0) throws java.sql.SQLException;
  43. Object getObject(int arg0) throws java.sql.SQLException;
  44. Object getObject(int parameterIndex, Map<String, Class<?>> map) throws SQLException;
  45. java.math.BigDecimal getBigDecimal(int arg0) throws java.sql.SQLException;
  46. java.sql.Ref getRef(int arg0) throws java.sql.SQLException;
  47. java.sql.Blob getBlob(int arg0) throws java.sql.SQLException;
  48. java.sql.Clob getClob(int arg0) throws java.sql.SQLException;
  49. java.sql.Array getArray(int arg0) throws java.sql.SQLException;
  50. java.sql.Date getDate(int arg0, java.util.Calendar arg1) throws java.sql.SQLException;
  51. java.sql.Time getTime(int arg0, java.util.Calendar arg1) throws java.sql.SQLException;
  52. java.sql.Timestamp getTimestamp(int arg0, java.util.Calendar arg1) throws java.sql.SQLException;
  53. void registerOutParameter(int arg0, int arg1, String arg2) throws java.sql.SQLException;
  54. void registerOutParameter(String arg0, int arg1) throws java.sql.SQLException;
  55. void registerOutParameter(String arg0, int arg1, int arg2) throws java.sql.SQLException;
  56. void registerOutParameter(String arg0, int arg1, String arg2) throws java.sql.SQLException;
  57. java.net.URL getURL(int arg0) throws java.sql.SQLException;
  58. void setURL(String arg0, java.net.URL arg1) throws java.sql.SQLException;
  59. void setNull(String arg0, int arg1) throws java.sql.SQLException;
  60. void setBoolean(String arg0, boolean arg1) throws java.sql.SQLException;
  61. void setByte(String arg0, byte arg1) throws java.sql.SQLException;
  62. void setShort(String arg0, short arg1) throws java.sql.SQLException;
  63. void setInt(String arg0, int arg1) throws java.sql.SQLException;
  64. void setLong(String arg0, long arg1) throws java.sql.SQLException;
  65. void setFloat(String arg0, float arg1) throws java.sql.SQLException;
  66. void setDouble(String arg0, double arg1) throws java.sql.SQLException;
  67. void setBigDecimal(String arg0, java.math.BigDecimal arg1) throws java.sql.SQLException;
  68. void setString(String arg0, String arg1) throws java.sql.SQLException;
  69. void setBytes(String arg0, byte[] arg1) throws java.sql.SQLException;
  70. void setDate(String arg0, java.sql.Date arg1) throws java.sql.SQLException;
  71. void setTime(String arg0, java.sql.Time arg1) throws java.sql.SQLException;
  72. void setTimestamp(String arg0, java.sql.Timestamp arg1) throws java.sql.SQLException;
  73. void setAsciiStream(String arg0, java.io.InputStream arg1, int arg2) throws java.sql.SQLException;
  74. void setBinaryStream(String arg0, java.io.InputStream arg1, int arg2) throws java.sql.SQLException;
  75. void setObject(String arg0, Object arg1, int arg2, int arg3) throws java.sql.SQLException;
  76. void setObject(String arg0, Object arg1, int arg2) throws java.sql.SQLException;
  77. void setObject(String arg0, Object arg1) throws java.sql.SQLException;
  78. void setCharacterStream(String arg0, java.io.Reader arg1, int arg2) throws java.sql.SQLException;
  79. void setDate(String arg0, java.sql.Date arg1, java.util.Calendar arg2) throws java.sql.SQLException;
  80. void setTime(String arg0, java.sql.Time arg1, java.util.Calendar arg2) throws java.sql.SQLException;
  81. void setTimestamp(String arg0, java.sql.Timestamp arg1, java.util.Calendar arg2) throws java.sql.SQLException;
  82. void setNull(String arg0, int arg1, String arg2) throws java.sql.SQLException;
  83. String getString(String arg0) throws java.sql.SQLException;
  84. boolean getBoolean(String arg0) throws java.sql.SQLException;
  85. byte getByte(String arg0) throws java.sql.SQLException;
  86. short getShort(String arg0) throws java.sql.SQLException;
  87. int getInt(String arg0) throws java.sql.SQLException;
  88. long getLong(String arg0) throws java.sql.SQLException;
  89. float getFloat(String arg0) throws java.sql.SQLException;
  90. double getDouble(String arg0) throws java.sql.SQLException;
  91. byte[] getBytes(String arg0) throws java.sql.SQLException;
  92. java.sql.Date getDate(String arg0) throws java.sql.SQLException;
  93. java.sql.Time getTime(String arg0) throws java.sql.SQLException;
  94. java.sql.Timestamp getTimestamp(String arg0) throws java.sql.SQLException;
  95. Object getObject(String arg0) throws java.sql.SQLException;
  96. java.math.BigDecimal getBigDecimal(String arg0) throws java.sql.SQLException;
  97. Object getObject(String parameterName, Map<String, Class<?>> map) throws SQLException;
  98. java.sql.Ref getRef(String arg0) throws java.sql.SQLException;
  99. java.sql.Blob getBlob(String arg0) throws java.sql.SQLException;
  100. java.sql.Clob getClob(String arg0) throws java.sql.SQLException;
  101. java.sql.Array getArray(String arg0) throws java.sql.SQLException;
  102. java.sql.Date getDate(String arg0, java.util.Calendar arg1) throws java.sql.SQLException;
  103. java.sql.Time getTime(String arg0, java.util.Calendar arg1) throws java.sql.SQLException;
  104. java.sql.Timestamp getTimestamp(String arg0, java.util.Calendar arg1) throws java.sql.SQLException;
  105. java.net.URL getURL(String arg0) throws java.sql.SQLException;
  106. java.sql.RowId getRowId(int arg0) throws java.sql.SQLException;
  107. java.sql.RowId getRowId(String arg0) throws java.sql.SQLException;
  108. void setRowId(String arg0, java.sql.RowId arg1) throws java.sql.SQLException;
  109. void setNString(String arg0, String arg1) throws java.sql.SQLException;
  110. void setNCharacterStream(String arg0, java.io.Reader arg1, long arg2) throws java.sql.SQLException;
  111. void setNClob(String arg0, java.sql.NClob arg1) throws java.sql.SQLException;
  112. void setClob(String arg0, java.io.Reader arg1, long arg2) throws java.sql.SQLException;
  113. void setBlob(String arg0, java.io.InputStream arg1, long arg2) throws java.sql.SQLException;
  114. void setNClob(String arg0, java.io.Reader arg1, long arg2) throws java.sql.SQLException;
  115. java.sql.NClob getNClob(int arg0) throws java.sql.SQLException;
  116. java.sql.NClob getNClob(String arg0) throws java.sql.SQLException;
  117. void setSQLXML(String arg0, java.sql.SQLXML arg1) throws java.sql.SQLException;
  118. java.sql.SQLXML getSQLXML(int arg0) throws java.sql.SQLException;
  119. java.sql.SQLXML getSQLXML(String arg0) throws java.sql.SQLException;
  120. String getNString(int arg0) throws java.sql.SQLException;
  121. String getNString(String arg0) throws java.sql.SQLException;
  122. java.io.Reader getNCharacterStream(int arg0) throws java.sql.SQLException;
  123. java.io.Reader getNCharacterStream(String arg0) throws java.sql.SQLException;
  124. java.io.Reader getCharacterStream(int arg0) throws java.sql.SQLException;
  125. java.io.Reader getCharacterStream(String arg0) throws java.sql.SQLException;
  126. void setBlob(String arg0, java.sql.Blob arg1) throws java.sql.SQLException;
  127. void setClob(String arg0, java.sql.Clob arg1) throws java.sql.SQLException;
  128. void setAsciiStream(String arg0, java.io.InputStream arg1, long arg2) throws java.sql.SQLException;
  129. void setBinaryStream(String arg0, java.io.InputStream arg1, long arg2) throws java.sql.SQLException;
  130. void setCharacterStream(String arg0, java.io.Reader arg1, long arg2) throws java.sql.SQLException;
  131. void setAsciiStream(String arg0, java.io.InputStream arg1) throws java.sql.SQLException;
  132. void setBinaryStream(String arg0, java.io.InputStream arg1) throws java.sql.SQLException;
  133. void setCharacterStream(String arg0, java.io.Reader arg1) throws java.sql.SQLException;
  134. void setNCharacterStream(String arg0, java.io.Reader arg1) throws java.sql.SQLException;
  135. void setClob(String arg0, java.io.Reader arg1) throws java.sql.SQLException;
  136. void setBlob(String arg0, java.io.InputStream arg1) throws java.sql.SQLException;
  137. void setNClob(String arg0, java.io.Reader arg1) throws java.sql.SQLException;
  138. <T> T getObject(int parameterIndex, Class<T> type) throws SQLException;
  139. <T> T getObject(String parameterName, Class<T> type) throws SQLException;
  140. }