[ Web Proxy ]
URL:
Viewing: https://docs.oracle.com/en/java/javase/24/docs/api/java.sql/java/sql/Statement.html#close() [Back]  [Original]

Statement (Java SE 24 & JDK 24)
Contents 
Hide sidebar ❮❯ Show sidebar
  1. Description
  2. Field Summary
  3. Method Summary
  4. Field Details
    1. CLOSE_CURRENT_RESULT
    2. KEEP_CURRENT_RESULT
    3. CLOSE_ALL_RESULTS
    4. SUCCESS_NO_INFO
    5. EXECUTE_FAILED
    6. RETURN_GENERATED_KEYS
    7. NO_GENERATED_KEYS
  5. Method Details
    1. executeQuery(String)
    2. executeUpdate(String)
    3. close()
    4. getMaxFieldSize()
    5. setMaxFieldSize(int)
    6. getMaxRows()
    7. setMaxRows(int)
    8. setEscapeProcessing(boolean)
    9. getQueryTimeout()
    10. setQueryTimeout(int)
    11. cancel()
    12. getWarnings()
    13. clearWarnings()
    14. setCursorName(String)
    15. execute(String)
    16. getResultSet()
    17. getUpdateCount()
    18. getMoreResults()
    19. setFetchDirection(int)
    20. getFetchDirection()
    21. setFetchSize(int)
    22. getFetchSize()
    23. getResultSetConcurrency()
    24. getResultSetType()
    25. addBatch(String)
    26. clearBatch()
    27. executeBatch()
    28. getConnection()
    29. getMoreResults(int)
    30. getGeneratedKeys()
    31. executeUpdate(String, int)
    32. executeUpdate(String, int[])
    33. executeUpdate(String, String[])
    34. execute(String, int)
    35. execute(String, int[])
    36. execute(String, String[])
    37. getResultSetHoldability()
    38. isClosed()
    39. setPoolable(boolean)
    40. isPoolable()
    41. closeOnCompletion()
    42. isCloseOnCompletion()
    43. getLargeUpdateCount()
    44. setLargeMaxRows(long)
    45. getLargeMaxRows()
    46. executeLargeBatch()
    47. executeLargeUpdate(String)
    48. executeLargeUpdate(String, int)
    49. executeLargeUpdate(String, int[])
    50. executeLargeUpdate(String, String[])
    51. enquoteLiteral(String)
    52. enquoteIdentifier(String, boolean)
    53. isSimpleIdentifier(String)
    54. enquoteNCharLiteral(String)

Interface Statement

All Superinterfaces:
AutoCloseable, Wrapper
All Known Subinterfaces:
CallableStatement, PreparedStatement

public interface Statement extends Wrapper, AutoCloseable

The object used for executing a static SQL statement and returning the results it produces.

By default, only one ResultSet object per Statement object can be open at the same time. Therefore, if the reading of one ResultSet object is interleaved with the reading of another, each must have been generated by different Statement objects. All execution methods in the Statement interface implicitly close a current ResultSet object of the statement if an open one exists.

Since:
1.1
See Also:


Web Proxy Viewer  |  New URL  |  Original Page