You use these methods when a SQLWarning object has been created.
sqlwarning.getNextWarning()
Returns the next SQLWarning, or null if there is none.
sqlwarning.setNextWarning(SQLWarning w)
Adds a SQLWarning.