Top Description Fields Constructors Methods
org.postgresql.jdbc

pack-priv Class PSQLWarningWrapper

extends Object
Class Inheritance
Imports
java.sql.SQLWarning

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 Summary

Modifier and TypeField and Description
private final SQLWarning
private SQLWarning

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
addWarning(SQLWarning sqlWarning)

pack-priv SQLWarning
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

firstWarningback to summary
private final SQLWarning firstWarning
lastWarningback to summary
private SQLWarning lastWarning

Constructor Detail

PSQLWarningWrapperback to summary
pack-priv PSQLWarningWrapper(SQLWarning warning)

Method Detail

addWarningback to summary
pack-priv void addWarning(SQLWarning sqlWarning)
getFirstWarningback to summary
pack-priv SQLWarning getFirstWarning()