public class PartialResultsWarning extends SQLWarning
Constructor and Description |
---|
PartialResultsWarning()
Construct partial results warning.
|
PartialResultsWarning(String reason)
Construct partial results warning.
|
PartialResultsWarning(String reason,
String SQLstate)
Construct partial results warning.
|
PartialResultsWarning(String reason,
String SQLstate,
int vendorCode)
Construct partial results warning.
|
Modifier and Type | Method and Description |
---|---|
void |
addConnectorFailure(String name,
SQLException exception)
Add a connector failure to the warning
|
SQLException |
getConnectorException(String connectorName)
Obtain failure for a particular connector.
|
Collection |
getFailedConnectors()
Obtain list of connectors that failed.
|
getNextWarning, setNextWarning
getErrorCode, getNextException, getSQLState, iterator, setNextException
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public PartialResultsWarning(String reason, String SQLstate, int vendorCode)
reason
- Reason for the exceptionSQLstate
- SQL state codevendorCode
- Vendor codepublic PartialResultsWarning(String reason, String SQLstate)
reason
- Reason for the exceptionSQLstate
- SQL state codepublic PartialResultsWarning(String reason)
reason
- Reason for the exceptionpublic PartialResultsWarning()
public void addConnectorFailure(String name, SQLException exception)
name
- Connector nameexception
- Connector exceptionpublic Collection getFailedConnectors()
public SQLException getConnectorException(String connectorName)
name
- Connector nameCopyright © 2016 JBoss by Red Hat. All rights reserved.