Class PSQLWarningWrapper

java.lang.Object
org.postgresql.jdbc.PSQLWarningWrapper

class PSQLWarningWrapper extends Object
Wrapper class for SQLWarnings that provides an optimisation to add new warnings to the tail of the SQLWarning singly linked list, avoiding Θ(n) insertion time of calling #setNextWarning on the head. By encapsulating this into a single object it allows users(ie PgStatement) to atomically set and clear the warning chain.
  • Field Details

  • Constructor Details

    • PSQLWarningWrapper

      PSQLWarningWrapper(SQLWarning warning)
  • Method Details