| |
|
| java.lang.Object com.internetcds.jdbc.tds.SQLWarningChain
SQLWarningChain | class SQLWarningChain (Code) | | Helper class to redruce duplicated code.
author: Stefan Bodewig stefan.bodewig@megabit.net version: $Id: SQLWarningChain.java,v 1.2 2007-10-19 13:21:40 sinisa Exp $ |
Method Summary | |
SQLException | addOrReturn(PacketMsgResult pack) Adds the SQLWarning wrapped in the packet if it's not an ErrorResult. | synchronized void | addWarning(SQLWarning warn) Adds a SQLWarning to the warning chain. | synchronized void | clearWarnings() After this call
See Also: #getWarnings getWarnings returns null
until
See Also: #addWarning addWarning has been called again. | synchronized SQLWarning | getWarnings() The first warning added with
See Also: #addWarning addWarning .
Subsequent warnings will be chained to this SQLWarning. |
SQLWarningChain | SQLWarningChain()(Code) | | |
addOrReturn | SQLException addOrReturn(PacketMsgResult pack)(Code) | | Adds the SQLWarning wrapped in the packet if it's not an ErrorResult.
Returns the wrapped SQLException otherwise.
|
addWarning | synchronized void addWarning(SQLWarning warn)(Code) | | Adds a SQLWarning to the warning chain.
|
clearWarnings | synchronized void clearWarnings()(Code) | | After this call
See Also: #getWarnings getWarnings returns null
until
See Also: #addWarning addWarning has been called again.
|
getWarnings | synchronized SQLWarning getWarnings()(Code) | | The first warning added with
See Also: #addWarning addWarning .
Subsequent warnings will be chained to this SQLWarning.
|
|
|
|