Package net.sourceforge.squirrel_sql.fw.datasetviewer

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


      // Dump catalogs.
      try
      {
        File tempFile = File.createTempFile(PREFIX, SUFFIX);
        IDataSetViewer dest = new DataSetViewerTextFileDestination(tempFile);
        dest.show(new ObjectArrayDataSet(md.getCatalogs()));
        files.add(tempFile);
        titles.add("Catalogs");
      }
      catch (Throwable th)
      {
        final String msg = "Error dumping catalogs";
        showErrorMessage(msg);
        showErrorMessage(th);
        s_log.error(msg, th);
      }
 
      // Dump schemas.
      try
      {
        File tempFile = File.createTempFile(PREFIX, SUFFIX);
        IDataSetViewer dest = new DataSetViewerTextFileDestination(tempFile);
        dest.show(new ObjectArrayDataSet(_session.getSchemaInfo().getSchemas()));
        files.add(tempFile);
        titles.add("Schemas");
      }
      catch (Throwable th)
      {
        final String msg = "Error dumping schemas";
        showErrorMessage(msg);
        showErrorMessage(th);
        s_log.error(msg, th);
      }
 
      // Dump data types.
      try
      {
        File tempFile = File.createTempFile(PREFIX, SUFFIX);
        IDataSetViewer dest = new DataSetViewerTextFileDestination(tempFile);
        dest.show(conn.getSQLMetaData().getTypesDataSet());
        files.add(tempFile);
        titles.add("Data Types");
      }
      catch (Throwable th)
      {
        final String msg = "Error dumping data types";
        showErrorMessage(msg);
        showErrorMessage(th);
        s_log.error(msg, th);
      }
 
      // Dump table types.
      try
      {
        File tempFile = File.createTempFile(PREFIX, SUFFIX);
        IDataSetViewer dest = new DataSetViewerTextFileDestination(tempFile);
        dest.show(new ObjectArrayDataSet(md.getTableTypes()));
        files.add(tempFile);
        titles.add("Table Types");
      }
      catch (Throwable th)
      {
View Full Code Here


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

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

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

  /**
   * Create the <TT>IDataSet</TT> to be displayed in this tab.
   */
  protected IDataSet createDataSet() throws DataSetException
  {
      return new ObjectArrayDataSet(getSession().getSchemaInfo().getSchemas());
  }
View Full Code Here

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

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

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

    final ISession session = getSession();
    try
    {
      final ISQLConnection conn = session.getSQLConnection();
      final String[] tableTypes = conn.getSQLMetaData().getTableTypes();
      return new ObjectArrayDataSet(tableTypes);
    }
    catch (SQLException ex)
    {
      throw new DataSetException(ex);
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.fw.datasetviewer.ObjectArrayDataSet

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.