Package org.teiid.client

Examples of org.teiid.client.SourceWarning


     * @param reason String object which is the description of the warning.
     * @param ex Throwable object which needs to be wrapped.
     */
    static SQLWarning createWarning(Throwable ex) {
        if(ex instanceof SourceWarning) {
          SourceWarning exception = (SourceWarning)ex;
          if (exception.isPartialResultsError()) {
            PartialResultsWarning warning = new PartialResultsWarning(JDBCPlugin.Util.getString("WarningUtil.Failures_occurred")); //$NON-NLS-1$
            warning.addConnectorFailure(exception.getConnectorBindingName(), TeiidSQLException.create(exception));
            return warning;
          }
        }
        return new SQLWarning(ex);
    }
View Full Code Here


        Collection<RequestMetadata> actualReqs = rm.getRequestsForSession(SESSION_STRING);
        compareReqInfos(reqs, actualReqs);
    }
   
    private SourceWarning getSourceFailures(String model, String binding, String message) {
      return new SourceWarning(model, binding, new TeiidException(message), true);
    }
View Full Code Here

    explicitClose |= !arm.supportsImplicitClose();
        rowsProcessed += response.getResults().length;
        index = 0;
    if (response.getWarnings() != null) {
      for (Exception warning : response.getWarnings()) {
        SourceWarning sourceFailure = new SourceWarning(this.aqr.getModelName(), aqr.getConnectorName(), warning, true);
            workItem.addSourceFailureDetails(sourceFailure);
      }
    }
    if (response.getFinalRow() >= 0) {
        done = true;
View Full Code Here

TOP

Related Classes of org.teiid.client.SourceWarning

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.