Package net.sourceforge.squirrel_sql.fw.dialects

Examples of net.sourceforge.squirrel_sql.fw.dialects.DatabaseObjectQualifier


   * @see net.sourceforge.squirrel_sql.plugins.refactoring.commands.AbstractRefactoringCommand#generateSQLStatements()
   */
  @Override
  protected String[] generateSQLStatements() throws UserCancelledOperationException
  {
    DatabaseObjectQualifier qualifier =
      new DatabaseObjectQualifier(_info[0].getCatalogName(), _info[0].getSchemaName());

    List<String> columnNames = customDialog.getUniqueColumns();
    ArrayList<TableColumnInfo> columns = new ArrayList<TableColumnInfo>();
    for (String columnName : columnNames) {
      columns.add(columnMap.get(columnName));
View Full Code Here


  @Override
  protected String[] generateSQLStatements() throws Exception
  {
    TableColumnInfo info = customDialog.getColumnInfo();
    String[] result = null;
    DatabaseObjectQualifier qualifier =
      new DatabaseObjectQualifier(info.getCatalogName(), info.getSchemaName());
   
    try
    {
      result =  _dialect.getAddColumnSQL(info, qualifier, _sqlPrefs);
    } catch (HibernateException e1)
View Full Code Here

    {
      for (IDatabaseObjectInfo dbo : _info)
      {
        result.add(_dialect.getDropViewSQL(dbo.getSimpleName(),
          customDialog.isCascadeSelected(),
          new DatabaseObjectQualifier(dbo.getCatalogName(), dbo.getSchemaName()),
          _sqlPrefs)
          + "\n");
      }
    } catch (UnsupportedOperationException e2)
    {
View Full Code Here

   * @see net.sourceforge.squirrel_sql.plugins.refactoring.commands.AbstractRefactoringCommand#generateSQLStatements()
   */
  @Override
  protected String[] generateSQLStatements() throws Exception
  {
    DatabaseObjectQualifier qualifier =
      new DatabaseObjectQualifier(_info[0].getCatalogName(), _info[0].getSchemaName());

    String[] result =
      _dialect.getAddForeignKeyConstraintSQL(_info[0].getSimpleName(),
        customDialog.getReferencedTable(),
        customDialog.getConstraintName(),
View Full Code Here

   * @see net.sourceforge.squirrel_sql.plugins.refactoring.commands.AbstractRefactoringCommand#generateSQLStatements()
   */
  @Override
  protected String[] generateSQLStatements() throws Exception
  {
    DatabaseObjectQualifier qualifier =
      new DatabaseObjectQualifier(_info[0].getCatalogName(), _info[0].getSchemaName());

    String result =
      _dialect.getCreateIndexSQL(customDialog.getIndexName(),
        _info[0].getSimpleName(),
        customDialog.getAccessMethod(),
View Full Code Here

   * @see net.sourceforge.squirrel_sql.plugins.refactoring.commands.AbstractRefactoringCommand#generateSQLStatements()
   */
  @Override
  protected String[] generateSQLStatements() throws UserCancelledOperationException
  {
    DatabaseObjectQualifier qualifier =
      new DatabaseObjectQualifier(_info[0].getCatalogName(), _info[0].getSchemaName());

    String result =
      _dialect.getCreateViewSQL(customDialog.getViewName(),
        customDialog.getViewDefinition(),
        customDialog.getCheckOption(),
View Full Code Here

   * @see net.sourceforge.squirrel_sql.plugins.refactoring.commands.AbstractRefactoringCommand#generateSQLStatements()
   */
  @Override
  protected String[] generateSQLStatements() throws UserCancelledOperationException
  {
    DatabaseObjectQualifier qualifier =
      new DatabaseObjectQualifier(_info[0].getCatalogName(), _info[0].getSchemaName());

    String result =
      _dialect.getCreateSequenceSQL(customDialog.getSequenceName(),
        customDialog.getIncrement(),
        customDialog.getMinimum(),
View Full Code Here

  protected String[] generateSQLStatements() throws UserCancelledOperationException
  {
    String[] result = null;
    try
    {
      DatabaseObjectQualifier qualifier =
        new DatabaseObjectQualifier(_info[0].getCatalogName(), _info[0].getSchemaName());
     
      String viewName = _info[0].getSimpleName();
      String newViewName = customDialog.getNewSimpleName();
      if (_dialect.supportsRenameView()) {
        result =
View Full Code Here

    TableColumnInfo to = customDialog.getColumnInfo();
    String dbName = customDialog.getSelectedDBName();
    _dialect = DialectFactory.getDialect(dbName);

    DatabaseObjectQualifier qualifier =
      new DatabaseObjectQualifier(_info[0].getCatalogName(), _info[0].getSchemaName());
   
    try
    {
      result = DBUtil.getAlterSQLForColumnChange(columnToModify, to, _dialect, qualifier, _sqlPrefs);
    } catch (HibernateException e1)
View Full Code Here

    ISQLDatabaseMetaData md = _session.getMetaData();

    String catalog = _info[0].getCatalogName();
    String schema = _info[0].getSchemaName();
    DatabaseObjectQualifier qualifier = new DatabaseObjectQualifier(catalog, schema);
    String destinationTable = _info[0].getSimpleName();
    String sourceTable = customDialog.getReferencedTable();
    TableColumnInfo[] mergedTableColumnInfos = _allTables.get(sourceTable);
    if (s_log.isDebugEnabled())
    {
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.fw.dialects.DatabaseObjectQualifier

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.