Examples of DatasetException


Examples of co.cask.cdap.api.dataset.DataSetException

      }
      String dsName = dataSetCreateSpec.getInstanceName();
      DatasetSpecification existingSpec = dsFramework.getDatasetSpec(dsName);
      if (existingSpec != null && !existingSpec.getType().equals(dataSetCreateSpec.getTypeName())) {
          // New app trying to deploy an dataset with same instanceName but different Type than that of existing.
          throw new DataSetException
            (String.format("Cannot Deploy Dataset : %s with Type : %s : Dataset with different Type Already Exists",
                           dsName, dataSetCreateSpec.getTypeName()));
        }
    }
View Full Code Here

Examples of com.cloudera.cdk.data.DatasetException

        KeyEntitySchemaParser<?, ?> schemaParser = schemaParserClass
            .getConstructor().newInstance();
        schemaParsers.putIfAbsent(schemaParserClassName, schemaParser);
        return schemaParser;
      } catch (Exception e) {
        throw new DatasetException(
            "Could not instantiate schema parser class: "
                + schemaParserClassName, e);
      }
    }
  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.datasetviewer.DataSetException

      final SQLDatabaseMetaData md = session.getSQLConnection().getSQLMetaData();
      return new ObjectArrayDataSet(md.getCatalogs());
    }
    catch (SQLException ex)
    {
      throw new DataSetException(ex);
    }
  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.datasetviewer.DataSetException

      final SQLDatabaseMetaData md = session.getSQLConnection().getSQLMetaData();
      return new ObjectArrayDataSet(md.getNumericFunctions());
    }
    catch (SQLException ex)
    {
      throw new DataSetException(ex);
    }
  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.datasetviewer.DataSetException

      final SQLDatabaseMetaData md = session.getSQLConnection().getSQLMetaData();
      return new ObjectArrayDataSet(md.getStringFunctions());
    }
    catch (SQLException ex)
    {
      throw new DataSetException(ex);
    }
  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.datasetviewer.DataSetException

        stmt.close();
      }
    }
    catch (SQLException ex)
    {
      throw new DataSetException(ex);
    }
  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.datasetviewer.DataSetException

         }

      }
      catch (SQLException ex)
      {
         throw new DataSetException(ex);
      } finally {
          disposeWaitDialog();
      }
   }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.datasetviewer.DataSetException

      final SQLDatabaseMetaData md = session.getSQLConnection().getSQLMetaData();
      return new ObjectArrayDataSet(md.getSystemFunctions());
    }
    catch (SQLException ex)
    {
      throw new DataSetException(ex);
    }
  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.datasetviewer.DataSetException

      final SQLDatabaseMetaData md = session.getSQLConnection().getSQLMetaData();
      return new ObjectArrayDataSet(md.getTimeDateFunctions());
    }
    catch (SQLException ex)
    {
      throw new DataSetException(ex);
    }
  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.datasetviewer.DataSetException

            DatabaseMetaData md = conn.getSQLMetaData().getJDBCMetaData();
      return new MetaDataDecoratorDataSet(md, getSession().getDriver().getDriverClassName(), getSession().getDriver().getJarFileNames());
    }
    catch (SQLException ex)
    {
      throw new DataSetException(ex);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.