Package org.teiid.core

Examples of org.teiid.core.TeiidRuntimeException


                final File temp = new File(parentDirectoryPath,fileName);
                os = new FileOutputStream(temp);
                os.write(contents);
                return temp;
            } catch (Exception e) {
                throw new TeiidRuntimeException(e);
            } finally {
                if (os != null) {
                    try {
                        os.close();
                    } catch (IOException e1) {
View Full Code Here


      return null;
    }
    try {
      return new SerialBlob(bytes);
    } catch (SQLException e) {
      throw new TeiidRuntimeException(e);
    }
  }
View Full Code Here

      }
      else {
        try {
          this.delegate = new JBossCacheFactory(this.resultsetCacheName, cacheManager);
        } catch (Exception e) {
          throw new TeiidRuntimeException("Failed to obtain the clusted cache"); //$NON-NLS-1$
        }
      }
    }
    return delegate.get(location, config);
  }
View Full Code Here

          while (line != null) {
              result.add(line);
              line = reader.readLine();
          }
      } catch (IOException e) {
          throw new TeiidRuntimeException(e);
      }
      return (String[]) result.toArray(new String[result.size()]);
  }
View Full Code Here

  }

  @Override
  public void setConfig(IndividualCacheLoaderConfig config) {
    if (!(config instanceof TupleBatchCacheLoaderConfig)) {
      throw new TeiidRuntimeException("Wrong Configuration"); //$NON-NLS-1$
    }
    this.config = config;
    TupleBatchCacheLoaderConfig bmc = (TupleBatchCacheLoaderConfig)config;
    this.bufferMgr = bmc.getBufferService().getBufferManager();
    super.setConfig(config);
View Full Code Here

      }
     
      jc.setCacheConfiguration(config);
      return jc;
    }
    throw new TeiidRuntimeException("Cache system has been shutdown"); //$NON-NLS-1$
  }
View Full Code Here

        this.exception = t;
      }
    }

    if (this.exception == null) {
      this.exception = new TeiidRuntimeException(message);
      this.exception.setStackTrace(stackTrace);
    }   
  }
View Full Code Here

          return new XATransactionException(exception);
        }
        if (RuntimeException.class.isAssignableFrom(exception.getClass())) {
          return exception;
        }
        return new TeiidRuntimeException(exception);
  }
View Full Code Here

 
  public static TransformationMetadata getVDBMetadata(String vdbFile) {
    try {
      return getVDBMetadata(new File(vdbFile).toURI().toURL(), null);
    } catch (IOException e) {
      throw new TeiidRuntimeException(e);
    }
    }
View Full Code Here

      if (system == null) {
        system = loadMetadata(Thread.currentThread().getContextClassLoader().getResource(CoreConstants.SYSTEM_VDB)).getMetadataStore(null);
      }
      return system;
    } catch (Exception e) {
      throw new TeiidRuntimeException("System VDB not found");
    }
    }
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.