Package net.sourceforge.squirrel_sql.plugins.refactoring.gui

Examples of net.sourceforge.squirrel_sql.plugins.refactoring.gui.AddModifySequenceDialog$i18n


  /**
   * Registers the listeners to the AddModifySequenceDialog, then shows it.
   */
  private void showCustomDialog()
  {
    customDialog = new AddModifySequenceDialog(AddModifySequenceDialog.ADD_MODE);
    customDialog.addExecuteListener(new ExecuteListener());
    customDialog.addEditSQLListener(new EditSQLListener(customDialog));
    customDialog.addShowSQLListener(new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE, customDialog));
    customDialog.setLocationRelativeTo(_session.getApplication().getMainFrame());
    customDialog.setVisible(true);
View Full Code Here


  }

  private AddModifySequenceDialog createCustomDialog() throws SQLException
  {
    ResultSet rs = null;
    AddModifySequenceDialog result = null;

    String simpleName = _info[0].getSimpleName();
    DatabaseObjectQualifier qualifier =
      new DatabaseObjectQualifier(_info[0].getCatalogName(), _info[0].getSchemaName());
    String sql = _dialect.getSequenceInformationSQL(simpleName, qualifier, _sqlPrefs);

    try
    {
      rs = executeQuery(sql, simpleName);
      if (rs.next())
      {
        // Here we use index inside of column names so that we don't have to alias the columns in the
        // dialect.  Different dialects call these sequence information columns by different names.  Just
        // make sure to preserve the order in the dialect.
        String last_value = rs.getString(1); // last_value
        String max_value = rs.getString(2); // max_value
        String min_value = rs.getString(3); // min_value
        String cache_value = rs.getString(4); // cache_value
        String increment_by = rs.getString(5); // increment_by
        int cycleInt = rs.getInt(6); // is_cycled
        boolean is_cyled = cycleInt == 1 ? true : false;

        result =
          new AddModifySequenceDialogAddModifySequenceDialog.MODIFY_MODE,
                              simpleName,
                              last_value,
                              increment_by,
                              min_value,
                              max_value,
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.plugins.refactoring.gui.AddModifySequenceDialog$i18n

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.