CloneSet62


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
178230.990compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11981
E:/TSE/Projects-CloneDR/sql12/plugins/mssql/src/net/sourceforge/squirrel_sql/plugins/mssql/prefs/MSSQLPreferenceBean.java
21781
E:/TSE/Projects-CloneDR/sql12/plugins/sybase/src/net/sourceforge/squirrel_sql/plugins/SybaseASE/prefs/SybasePreferenceBean.java
Next
Last
Clone Instance
1
Line Count
198
Source Line
1
Source File
E:/TSE/Projects-CloneDR/sql12/plugins/mssql/src/net/sourceforge/squirrel_sql/plugins/mssql/prefs/MSSQLPreferenceBean.java

package net.sourceforge.squirrel_sql.plugins.mssql.prefs;

/*
 * Copyright (C) 2007 Rob Manning
 * manningr@users.sourceforge.net
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
import java.io.Serializable;
import net.sourceforge.squirrel_sql.fw.preferences.IQueryTokenizerPreferenceBean;

/**
 * A bean class to store preferences for the MS SQL-Server plugin.
 */
public class MSSQLPreferenceBean implements Cloneable, Serializable, IQueryTokenizerPreferenceBean {
  static final long serialVersionUID = -8870273703050156986L;

  static final String UNSUPPORTED = "Unsupported";

  /** Client Name. */
  private String _clientName;

  /** Client version. */
  private String _clientVersion;

  private String statementSeparator = "GO";

  private String procedureSeparator = "GO";

  private String lineComment = "--";

  private boolean removeMultiLineComments = false;

  private boolean installCustomQueryTokenizer = true;

  public MSSQLPreferenceBean() {
    super();
  }

  /**
   * Return a copy of this object.
   */
  public Object clone() {
    try {
      return super.clone();
    }
    catch (CloneNotSupportedException
           ex) {
      throw new InternalError(ex.getMessage()); // Impossible.
    }
  }

  /**
   * Retrieve the client to use. This is only used if <TT>useAnonymousClient</TT> is false.
   * 
   * @return Client name.
   */
  public String getClientName() {
    return _clientName;
  }

  /**
   * Set the client name.
   * 
   * @param value
   *           Client name
   */
  public void setClientName(String value) {
    _clientName = value;
  }

  /**
   * Retrieve the client version to use. This is only used if <TT>useAnonymousLogon</TT> is false.
   * 
   * @return Client version.
   */
  public String getClientVersion() {
    return _clientVersion;
  }

  /**
   * Set the client version.
   * 
   * @param value
   *           Client version
   */
  public void setClientVersion(String value) {
    _clientVersion = value;
  }

  /**
   * @param statementSeparator
   *           the statementSeparator to set
   */
  public void setStatementSeparator(String statementSeparator) {
    this.statementSeparator = statementSeparator;
  }

  /**
   * @return the statementSeparator
   */
  public String getStatementSeparator() {
    return statementSeparator;
  }

  /**
   * @param lineComment
   *           the lineComment to set
   */
  public void setLineComment(String lineComment) {
    this.lineComment = lineComment;
  }

  /**
   * @return the lineComment
   */
  public String getLineComment() {
    return lineComment;
  }

  /**
   * @param removeMultiLineComments
   *           the removeMultiLineComments to set
   */
  public void setRemoveMultiLineComments(boolean removeMultiLineComments) {
    this.removeMultiLineComments = removeMultiLineComments;
  }

  /**
   * @return the removeMultiLineComments
   */
  public boolean isRemoveMultiLineComments() {
    return removeMultiLineComments;
  }

  /**
   * @param installCustomQueryTokenizer
   *           the installCustomQueryTokenizer to set
   */
  public void setInstallCustomQueryTokenizer(boolean installCustomQueryTokenizer) {
    this.installCustomQueryTokenizer = installCustomQueryTokenizer;
  }

  /**
   * @return the installCustomQueryTokenizer
   */
  public boolean isInstallCustomQueryTokenizer() {
    return installCustomQueryTokenizer;
  }

  /**
   * @see net.sourceforge.squirrel_sql.fw.preferences.IQueryTokenizerPreferenceBean#getProcedureSeparator()
   */
  public String getProcedureSeparator() {
    return procedureSeparator;
  }

  /**
   * @see net.sourceforge.squirrel_sql.fw.preferences.IQueryTokenizerPreferenceBean#setProcedureSeparator(java.lang.String)
   */
  public void setProcedureSeparator(String procedureSeparator) {
    this.procedureSeparator = procedureSeparator;
  }
}




First
Previous
Clone Instance
2
Line Count
178
Source Line
1
Source File
E:/TSE/Projects-CloneDR/sql12/plugins/sybase/src/net/sourceforge/squirrel_sql/plugins/SybaseASE/prefs/SybasePreferenceBean.java

package net.sourceforge.squirrel_sql.plugins.SybaseASE.prefs;

/*
 * Copyright (C) 2007 Rob Manning
 * manningr@users.sourceforge.net
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
import java.io.Serializable;
import net.sourceforge.squirrel_sql.fw.preferences.IQueryTokenizerPreferenceBean;

/**
 * A bean class to store preferences for the Sybase plugin.
 */
public class SybasePreferenceBean implements Cloneable, Serializable, IQueryTokenizerPreferenceBean {
  static final long serialVersionUID = 3722068008392095286L;

  static final String UNSUPPORTED = "Unsupported";

  /** Client Name. */
  private String _clientName;

  /** Client version. */
  private String _clientVersion;

  private String statementSeparator = "GO";

  private String procedureSeparator = "GO";

  private String lineComment = "--";

  private boolean removeMultiLineComments = false;

  private boolean installCustomQueryTokenizer = true;

  public SybasePreferenceBean() {
    super();
  }

  /**
   * Return a copy of this object.
   */
  public Object clone() {
    try {
      return super.clone();
    }
    catch (CloneNotSupportedException
           ex) {
      throw new InternalError(ex.getMessage()); // Impossible.
    }
  }

  /**
   * Retrieve the client to use. This is only
   * used if <TT>useAnonymousClient</TT> is false.
   *
   * @return      Client name.
   */
  public String getClientName() {
    return _clientName;
  }

  /**
   * Set the client name.
   *
   * @param       value   Client name
   */
  public void setClientName(String value) {
    _clientName = value;
  }

  /**
   * Retrieve the client version to use. This is only
   * used if <TT>useAnonymousLogon</TT> is false.
   *
   * @return      Client version.
   */
  public String getClientVersion() {
    return _clientVersion;
  }

  /**
   * Set the client version.
   *
   * @param       value   Client version
   */
  public void setClientVersion(String value) {
    _clientVersion = value;
  }

  /**
   * @param statementSeparator the statementSeparator to set
   */
  public void setStatementSeparator(String statementSeparator) {
    this.statementSeparator = statementSeparator;
  }

  /**
   * @return the statementSeparator
   */
  public String getStatementSeparator() {
    return statementSeparator;
  }

  /**
   * @param lineComment the lineComment to set
   */
  public void setLineComment(String lineComment) {
    this.lineComment = lineComment;
  }

  /**
   * @return the lineComment
   */
  public String getLineComment() {
    return lineComment;
  }

  /**
   * @param removeMultiLineComments the removeMultiLineComments to set
   */
  public void setRemoveMultiLineComments(boolean removeMultiLineComments) {
    this.removeMultiLineComments = removeMultiLineComments;
  }

  /**
   * @return the removeMultiLineComments
   */
  public boolean isRemoveMultiLineComments() {
    return removeMultiLineComments;
  }

  /**
   * @param installCustomQueryTokenizer the installCustomQueryTokenizer to set
   */
  public void setInstallCustomQueryTokenizer(boolean installCustomQueryTokenizer) {
    this.installCustomQueryTokenizer = installCustomQueryTokenizer;
  }

  /**
   * @return the installCustomQueryTokenizer
   */
  public boolean isInstallCustomQueryTokenizer() {
    return installCustomQueryTokenizer;
  }

  /**
   * @see net.sourceforge.squirrel_sql.fw.preferences.IQueryTokenizerPreferenceBean#getProcedureSeparator()
   */
  public String getProcedureSeparator() {
    return procedureSeparator;
  }

  /**
   * @see net.sourceforge.squirrel_sql.fw.preferences.IQueryTokenizerPreferenceBean#setProcedureSeparator(java.lang.String)
   */
  public void setProcedureSeparator(String procedureSeparator) {
    this.procedureSeparator = procedureSeparator;
  }
}




Clone AbstractionParameter Count: 3Parameter Bindings

package net.sourceforge.squirrel_sql.plugins. [[#variable18c31300]].prefs;

/*
 * Copyright (C) 2007 Rob Manning
 * manningr@users.sourceforge.net
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
import java.io.Serializable;
import net.sourceforge.squirrel_sql.fw.preferences.IQueryTokenizerPreferenceBean;

/**
 * A bean class to store preferences for the Sybase plugin.
 */
/**
 * A bean class to store preferences for the MS SQL-Server plugin.
 */
public class [[#variable18c405e0]]implements Cloneable, Serializable, IQueryTokenizerPreferenceBean {
  static final long serialVersionUID = [[#variable1af17ca0]];

  static final String UNSUPPORTED = "Unsupported";

  /** Client Name. */
  private String _clientName;

  /** Client version. */
  private String _clientVersion;

  private String statementSeparator = "GO";

  private String procedureSeparator = "GO";

  private String lineComment = "--";

  private boolean removeMultiLineComments = false;

  private boolean installCustomQueryTokenizer = true;

  public [[#variable18c405e0]]() {
    super();
  }

  /**
           * Return a copy of this object.
           */
  public Object clone() {
    try {
      return super.clone();
    }
    catch (CloneNotSupportedException
           ex) {
      throw new InternalError(ex.getMessage()); // Impossible.
    }
  }

  /**
           * Retrieve the client to use. This is only
           * used if <TT>useAnonymousClient</TT> is false.
           *
           * @return      Client name.
           */
  /**
           * Retrieve the client to use. This is only used if <TT>useAnonymousClient</TT> is false.
           * 
           * @return Client name.
           */
  public String getClientName() {
    return _clientName;
  }

  /**
           * Set the client name.
           *
           * @param       value   Client name
           */
  /**
           * Set the client name.
           * 
           * @param value
           *           Client name
           */
  public void setClientName(String value) {
    _clientName = value;
  }

  /**
           * Retrieve the client version to use. This is only
           * used if <TT>useAnonymousLogon</TT> is false.
           *
           * @return      Client version.
           */
  /**
           * Retrieve the client version to use. This is only used if <TT>useAnonymousLogon</TT> is false.
           * 
           * @return Client version.
           */
  public String getClientVersion() {
    return _clientVersion;
  }

  /**
           * Set the client version.
           *
           * @param       value   Client version
           */
  /**
           * Set the client version.
           * 
           * @param value
           *           Client version
           */
  public void setClientVersion(String value) {
    _clientVersion = value;
  }

  /**
       * @param statementSeparator the statementSeparator to set
       */
  /**
           * @param statementSeparator
           *           the statementSeparator to set
           */
  public void setStatementSeparator(String statementSeparator) {
    this.statementSeparator = statementSeparator;
  }

  /**
       * @return the statementSeparator
       */
  /**
           * @return the statementSeparator
           */
  public String getStatementSeparator() {
    return statementSeparator;
  }

  /**
       * @param lineComment the lineComment to set
       */
  /**
           * @param lineComment
           *           the lineComment to set
           */
  public void setLineComment(String lineComment) {
    this.lineComment = lineComment;
  }

  /**
       * @return the lineComment
       */
  /**
           * @return the lineComment
           */
  public String getLineComment() {
    return lineComment;
  }

  /**
       * @param removeMultiLineComments the removeMultiLineComments to set
       */
  /**
           * @param removeMultiLineComments
           *           the removeMultiLineComments to set
           */
  public void setRemoveMultiLineComments(boolean removeMultiLineComments) {
    this.removeMultiLineComments = removeMultiLineComments;
  }

  /**
       * @return the removeMultiLineComments
       */
  /**
           * @return the removeMultiLineComments
           */
  public boolean isRemoveMultiLineComments() {
    return removeMultiLineComments;
  }

  /**
       * @param installCustomQueryTokenizer the installCustomQueryTokenizer to set
       */
  /**
           * @param installCustomQueryTokenizer
           *           the installCustomQueryTokenizer to set
           */
  public void setInstallCustomQueryTokenizer(boolean installCustomQueryTokenizer) {
    this.installCustomQueryTokenizer = installCustomQueryTokenizer;
  }

  /**
       * @return the installCustomQueryTokenizer
       */
  /**
           * @return the installCustomQueryTokenizer
           */
  public boolean isInstallCustomQueryTokenizer() {
    return installCustomQueryTokenizer;
  }

  /**
       * @see net.sourceforge.squirrel_sql.fw.preferences.IQueryTokenizerPreferenceBean#getProcedureSeparator()
       */
  /**
           * @see net.sourceforge.squirrel_sql.fw.preferences.IQueryTokenizerPreferenceBean#getProcedureSeparator()
           */
  public String getProcedureSeparator() {
    return procedureSeparator;
  }

  /**
       * @see net.sourceforge.squirrel_sql.fw.preferences.IQueryTokenizerPreferenceBean#setProcedureSeparator(java.lang.String)
       */
  /**
           * @see net.sourceforge.squirrel_sql.fw.preferences.IQueryTokenizerPreferenceBean#setProcedureSeparator(java.lang.String)
           */
  public void setProcedureSeparator(String procedureSeparator) {
    this.procedureSeparator = procedureSeparator;
  }
}


 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#18c31300]]
mssql 
12[[#18c31300]]
SybaseASE 
21[[#18c405e0]]
MSSQLPreferenceBean 
22[[#18c405e0]]
SybasePreferenceBean 
31[[#1af17ca0]]
-8870273703050156986L 
32[[#1af17ca0]]
3722068008392095286L