Package org.teiid.core

Examples of org.teiid.core.TeiidRuntimeException


      try {
        return new ExpressionSymbol(expression.getName(), ResolverUtil
            .convertExpression(expression.getExpression(),DataTypeManager.getDataTypeName(expression.getType()), metadata));
      } catch (QueryResolverException e) {
        //should not happen, so throw as a runtime
        throw new TeiidRuntimeException(e);
      }
    }
    return expression;
  }
View Full Code Here


  @Override
  protected void interrupted(InterruptedException e) {
    try {
      this.requestCancel();
    } catch (TeiidComponentException e1) {
      throw new TeiidRuntimeException(e1);
    }
    super.interrupted(e);
  }
View Full Code Here

        if (symbolName == null){
          return null;
        }
      return elementNode.getSourceNode().getMappedSymbol(new ElementSymbol(symbolName));
        } catch (TeiidComponentException err) {
            throw new TeiidRuntimeException(err);
        }
    }
View Full Code Here

  
            symbol.setGroupSymbol(groupSymbol);
            symbol.setType(DataTypeManager.getDataTypeClass(metadata.getElementType(symbol.getMetadataID())));
            return symbol;
        } catch (QueryMetadataException e) {
            throw new TeiidRuntimeException(e);
        } catch (TeiidComponentException e) {
            throw new TeiidRuntimeException(e);
        }
    }
View Full Code Here

            QueryUtil.markBindingsAsNonExternal(inputSetCriteria, bindings);
           
            baseQuery.setCriteria(inputSetCriteria);
            rsInfo.setCriteriaRaised(true);
        } catch (Exception e) {
            throw new TeiidRuntimeException(e);
        }
    }
View Full Code Here

   
    public Object clone() {
        try {
            return super.clone();
        } catch (CloneNotSupportedException err) {
            throw new TeiidRuntimeException(err);
        }
    }
View Full Code Here

    static Command helpParse(String sql) {
        // parse
        try {
            return QueryParser.getQueryParser().parseCommand(sql);
        } catch(TeiidException e) {
            throw new TeiidRuntimeException(e);
        }
    }
View Full Code Here

    testCreateThrowable(new TeiidException("A test MM Exception"), //$NON-NLS-1$
        SQLStates.DEFAULT);
    testCreateThrowable(new TeiidProcessingException(
        "A test Generic MM Query Processing Exception"), //$NON-NLS-1$
        SQLStates.USAGE_ERROR);
    testCreateThrowable(new TeiidRuntimeException(
        "A test MM Runtime Exception"), SQLStates.DEFAULT); //$NON-NLS-1$
    testCreateThrowable(new TeiidSQLException(
        "A test Generic MM SQL Exception"), SQLStates.DEFAULT); //$NON-NLS-1$
    testCreateThrowable(
        new NoRouteToHostException(
View Full Code Here

  }
   
    public void testCreateThrowable3() {
        TeiidSQLException e = testCreateThrowable(
                            new TeiidException(
                                    new TeiidRuntimeException(
                                            new SocketTimeoutException(
                                                    "A test MM Invalid Session Exception"), //$NON-NLS-1$
                                            "Test MetaMatrixRuntimeException with a InvalidSessionException in it"), //$NON-NLS-1$
                                    "Test MM Core Exception with an MM Runtime Exception in it and an InvalidSessionException nested within"), //$NON-NLS-1$
                            SQLStates.CONNECTION_EXCEPTION_STALE_CONNECTION);
View Full Code Here

    }

  private KeyRecord getPrimaryKey(String uuid) {
    KeyRecord key = this.primaryKeyCache.get(uuid);
    if (key == null) {
            throw new TeiidRuntimeException(uuid+" PrimaryKey "+TransformationMetadata.NOT_EXISTS_MESSAGE); //$NON-NLS-1$
      }
    return key;
  }
View Full Code Here

TOP

Related Classes of org.teiid.core.TeiidRuntimeException

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.