RowSet.java 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. /* RowSet.java
  2. Copyright (C) 2002 Free Software Foundation, Inc.
  3. This file is part of GNU Classpath.
  4. GNU Classpath is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2, or (at your option)
  7. any later version.
  8. GNU Classpath is distributed in the hope that it will be useful, but
  9. WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GNU Classpath; see the file COPYING. If not, write to the
  14. Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  15. 02110-1301 USA.
  16. Linking this library statically or dynamically with other modules is
  17. making a combined work based on this library. Thus, the terms and
  18. conditions of the GNU General Public License cover the whole
  19. combination.
  20. As a special exception, the copyright holders of this library give you
  21. permission to link this library with independent modules to produce an
  22. executable, regardless of the license terms of these independent
  23. modules, and to copy and distribute the resulting executable under
  24. terms of your choice, provided that you also meet, for each linked
  25. independent module, the terms and conditions of the license of that
  26. module. An independent module is a module which is not derived from
  27. or based on this library. If you modify this library, you may extend
  28. this exception to your version of the library, but you are not
  29. obligated to do so. If you do not wish to do so, delete this
  30. exception statement from your version. */
  31. package javax.sql;
  32. import java.io.InputStream;
  33. import java.io.Reader;
  34. import java.math.BigDecimal;
  35. import java.sql.Array;
  36. import java.sql.Blob;
  37. import java.sql.Clob;
  38. import java.sql.Date;
  39. import java.sql.Ref;
  40. import java.sql.ResultSet;
  41. import java.sql.SQLException;
  42. import java.sql.Time;
  43. import java.sql.Timestamp;
  44. import java.util.Calendar;
  45. import java.util.Map;
  46. /**
  47. * @since 1.4
  48. */
  49. public interface RowSet extends ResultSet
  50. {
  51. String getUrl() throws SQLException;
  52. void setUrl(String url) throws SQLException;
  53. String getDataSourceName();
  54. void setDataSourceName(String name) throws SQLException;
  55. String getUsername();
  56. void setUsername(String name) throws SQLException;
  57. String getPassword();
  58. void setPassword(String password) throws SQLException;
  59. int getTransactionIsolation();
  60. void setTransactionIsolation(int level) throws SQLException;
  61. Map<String, Class<?>> getTypeMap() throws SQLException;
  62. void setTypeMap(Map<String, Class<?>> map) throws SQLException;
  63. String getCommand();
  64. void setCommand(String cmd) throws SQLException;
  65. boolean isReadOnly();
  66. void setReadOnly(boolean value) throws SQLException;
  67. int getMaxFieldSize() throws SQLException;
  68. void setMaxFieldSize(int max) throws SQLException;
  69. int getMaxRows() throws SQLException;
  70. void setMaxRows(int max) throws SQLException;
  71. boolean getEscapeProcessing() throws SQLException;
  72. void setEscapeProcessing(boolean enable) throws SQLException;
  73. int getQueryTimeout() throws SQLException;
  74. void setQueryTimeout(int seconds) throws SQLException;
  75. void setType(int type) throws SQLException;
  76. void setConcurrency(int concurrency) throws SQLException;
  77. void setNull(int parameterIndex, int sqlType) throws SQLException;
  78. void setNull(int paramIndex, int sqlType, String typeName) throws
  79. SQLException;
  80. void setBoolean(int parameterIndex, boolean x) throws SQLException;
  81. void setByte(int parameterIndex, byte x) throws SQLException;
  82. void setShort(int parameterIndex, short x) throws SQLException;
  83. void setInt(int parameterIndex, int x) throws SQLException;
  84. void setLong(int parameterIndex, long x) throws SQLException;
  85. void setFloat(int parameterIndex, float x) throws SQLException;
  86. void setDouble(int parameterIndex, double x) throws SQLException;
  87. void setBigDecimal(int parameterIndex, BigDecimal x) throws
  88. SQLException;
  89. void setString(int parameterIndex, String x) throws SQLException;
  90. void setBytes(int parameterIndex, byte[] x) throws SQLException;
  91. void setDate(int parameterIndex, Date x) throws SQLException;
  92. void setTime(int parameterIndex, Time x) throws SQLException;
  93. void setTimestamp(int parameterIndex, Timestamp x) throws
  94. SQLException;
  95. void setAsciiStream(int parameterIndex, InputStream x, int length)
  96. throws SQLException;
  97. void setBinaryStream(int parameterIndex, InputStream x, int length)
  98. throws SQLException;
  99. void setCharacterStream(int parameterIndex, Reader reader, int
  100. length) throws SQLException;
  101. void setObject(int parameterIndex, Object x, int targetSqlType, int
  102. scale) throws SQLException;
  103. void setObject(int parameterIndex, Object x, int targetSqlType)
  104. throws SQLException;
  105. void setObject(int parameterIndex, Object x) throws SQLException;
  106. void setRef(int i, Ref x) throws SQLException;
  107. void setBlob(int i, Blob x) throws SQLException;
  108. void setClob(int i, Clob x) throws SQLException;
  109. void setArray(int i, Array x) throws SQLException;
  110. void setDate(int parameterIndex, Date x, Calendar cal) throws
  111. SQLException;
  112. void setTime(int parameterIndex, Time x, Calendar cal) throws
  113. SQLException;
  114. void setTimestamp(int parameterIndex, Timestamp x, Calendar cal)
  115. throws SQLException;
  116. void clearParameters() throws SQLException;
  117. void execute() throws SQLException;
  118. void addRowSetListener(RowSetListener listener);
  119. void removeRowSetListener(RowSetListener listener);
  120. }