|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.sql.SQLException
java.sql.SQLWarning
com.metamatrix.jdbc.api.PartialResultsWarning
public class PartialResultsWarning
This warning class is sent when using partial results mode if one or more sources fails. In this case, results will be returned (with 0 rows sent from failing source). This warning can be obtained from the ResultSet to determine which sources failed and provided 0 rows and why they failed.
Constructor Summary | |
---|---|
PartialResultsWarning()
Construct partial results warning. |
|
PartialResultsWarning(java.lang.String reason)
Construct partial results warning. |
|
PartialResultsWarning(java.lang.String reason,
java.lang.String SQLstate)
Construct partial results warning. |
|
PartialResultsWarning(java.lang.String reason,
java.lang.String SQLstate,
int vendorCode)
Construct partial results warning. |
Method Summary | |
---|---|
void |
addConnectorFailure(java.lang.String name,
java.sql.SQLException exception)
Add a connector failure to the warning |
java.sql.SQLException |
getConnectorException(java.lang.String connectorName)
Obtain failure for a particular connector. |
java.util.Collection |
getFailedConnectors()
Obtain list of connectors that failed. |
Methods inherited from class java.sql.SQLWarning |
---|
getNextWarning, setNextWarning |
Methods inherited from class java.sql.SQLException |
---|
getErrorCode, getNextException, getSQLState, iterator, setNextException |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PartialResultsWarning(java.lang.String reason, java.lang.String SQLstate, int vendorCode)
reason
- Reason for the exceptionSQLstate
- SQL state codevendorCode
- Vendor codepublic PartialResultsWarning(java.lang.String reason, java.lang.String SQLstate)
reason
- Reason for the exceptionSQLstate
- SQL state codepublic PartialResultsWarning(java.lang.String reason)
reason
- Reason for the exceptionpublic PartialResultsWarning()
Method Detail |
---|
public void addConnectorFailure(java.lang.String name, java.sql.SQLException exception)
name
- Connector nameexception
- Connector exceptionpublic java.util.Collection getFailedConnectors()
public java.sql.SQLException getConnectorException(java.lang.String connectorName)
name
- Connector name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |