Package org.teiid.core

Examples of org.teiid.core.TeiidProcessingException


        }, textLine.getDelimiter(), textLine.getQuote()));
      }
      w.flush();
      return fisf;
    } catch (IOException e) {
      throw new TeiidProcessingException(e);
    }
  }
View Full Code Here


        String in = (String)input;
        Writer w = result.getWriter();
        w.write(in);
      w.flush();
    } catch (IOException e) {
      throw new TeiidProcessingException(e);
    }
    }
View Full Code Here

      if (fs.bytesWritten()) {
        return new BlobType(new BlobImpl(result));
      }
      return new BlobType(new SerialBlob(Arrays.copyOf(fs.getBuffer(), fs.getCount())));
    } catch (IOException e) {
      throw new TeiidProcessingException(e);
    catch (SQLException e) {
      throw new TeiidProcessingException(e);
    }
    }
View Full Code Here

      if (txnAutoWrapMode != null) {
        txnAutoWrapMode = txnAutoWrapMode.toUpperCase();
        if (!(txnAutoWrapMode.equals(TXN_WRAP_OFF)
          || txnAutoWrapMode.equals(TXN_WRAP_ON)
          || txnAutoWrapMode.equals(TXN_WRAP_DETECT))) {
          throw new TeiidProcessingException(JDBCPlugin.Util.getString("RequestMessage.invalid_txnAutoWrap", txnAutoWrapMode)); //$NON-NLS-1$
        }
      }
        this.txnAutoWrapMode = txnAutoWrapMode;
    }
View Full Code Here

      result.getResultsReceiver().receiveResults(new Integer(5));
      return result;
    }

    public String exceptionMethod() throws TeiidProcessingException {
      throw new TeiidProcessingException();
    }
View Full Code Here

        }
        if (value instanceof String) {
          return new StreamSource(new StringReader((String)value));
        }
      } catch (SQLException e) {
      throw new TeiidProcessingException(e);
    }
      throw new AssertionError("Unknown type"); //$NON-NLS-1$
    }
View Full Code Here

          success = true;
          return new SQLXMLImpl(fsisf);
      } catch(IOException e) {
          throw new TeiidComponentException(e);
      } catch(TransformerException e) {
          throw new TeiidProcessingException(e);
      } finally {
        if (!success && lobBuffer != null) {
          lobBuffer.remove();
        }
      }
View Full Code Here

      factory = getOutputFactory();
      try {
        eventWriter = factory.createXMLEventWriter(writer);
      } catch (XMLStreamException e) {
        fs.remove();
        throw new TeiidProcessingException(e);
      }
      eventFactory = XMLEventFactory.newInstance();
    }
View Full Code Here

    public void addValue(Object object) throws TeiidProcessingException {
      try {
        convertValue(writer, eventWriter, eventFactory, object);
      } catch (IOException e) {
        fs.remove();
        throw new TeiidProcessingException(e);
      } catch (XMLStreamException e) {
        fs.remove();
        throw new TeiidProcessingException(e);
      } catch (TransformerException e) {
        fs.remove();
        throw new TeiidProcessingException(e);
      }
    }
View Full Code Here

      try {
        eventWriter.flush();
        writer.close();
      } catch (XMLStreamException e) {
        fs.remove();
        throw new TeiidProcessingException(e);
      } catch (IOException e) {
        fs.remove();
        throw new TeiidProcessingException(e);
      }
          XMLType result = new XMLType(new SQLXMLImpl(fsisf));
          result.setType(Type.CONTENT);
          return result;
    }
View Full Code Here

TOP

Related Classes of org.teiid.core.TeiidProcessingException

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.