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;
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 fragments detected by clone detection tool
File path: /sql12/plugins/mssql/src/net/sourceforge/squirrel_sql/plugins/mssql/prefs/MSSQLPreferenceBean.java File path: /sql12/plugins/sybase/src/net/sourceforge/squirrel_sql/plugins/SybaseASE/prefs/SybasePreferenceBean.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class MSSQLPreferenceBean implements Cloneable, Serializable,
1
public class SybasePreferenceBean implements Cloneable, 
2
                                             Serializable,
2
 IQueryTokenizerPreferenceBean
3
                                             IQueryTokenizerPreferenceBean
3
{
4
 {
5
    
4
	static final long serialVersionUID = -8870273703050156986L;
6
	static final long serialVersionUID = 3722068008392095286L;
5
	static final String UNSUPPORTED = "Unsupported";
7
    static final String UNSUPPORTED = "Unsupported";
6
	/** Client Name. */
8
    /** Client Name. */
7
	private String _clientName;
9
	private String _clientName;
8
	/** Client version. */
10
	/** Client version. */
9
	private String _clientVersion;
11
	private String _clientVersion;
10
	
12
    
11
private String statementSeparator = "GO";
13
    private String statementSeparator = "GO";
12
	
14
    
13
private String procedureSeparator = "GO";
15
    private String procedureSeparator = "GO";
14
	
16
    
15
private String lineComment = "--";
17
    private String lineComment = "--";
16
	
18
    
17
private boolean removeMultiLineComments = false;
19
    private boolean removeMultiLineComments = false;
18
	
20
    
19
private boolean installCustomQueryTokenizer = true;
21
    private boolean installCustomQueryTokenizer = true;
22
    
23
    
20
	public MSSQLPreferenceBean()
24
	public SybasePreferenceBean()
21
	{
25
 {
22
		super();
26
		super();
23
	}
27
	}
24
	/**
28
	/**
25
	 * Return a copy of this object.
29
	 * Return a copy of this object.
26
	 */
30
	 */
27
	public Object clone()
31
	public Object clone()
28
	{
32
 {
29
		try
33
		try
30
		{
34
 {
31
			return super.clone();
35
			return super.clone();
32
		}
36
		}
33
		catch (CloneNotSupportedException ex)
37
 catch (CloneNotSupportedException ex)
34
		{
38
 {
35
			throw new InternalError(ex.getMessage()); // Impossible.
39
			throw new InternalError(ex.getMessage()); // Impossible.
36
		}
40
		}
37
	}
41
	}
38
	/**
42
	/**
39
	 * Retrieve the client to use. This is only
43
	 * Retrieve the client to use. This is only
40
 used if <TT>useAnonymousClient</TT> is false.
44
	 * used if <TT>useAnonymousClient</TT> is false.
41
	 * 
45
	 *
42
	 * @return Client name.
46
	 * @return	Client name.
43
	 */
47
	 */
44
	public String getClientName()
48
	public String getClientName()
45
	{
49
 {
46
		return _clientName;
50
		return _clientName;
47
	}
51
	}
48
	/**
52
	/**
49
	 * Set the client name.
53
	 * Set the client name.
50
	 * 
54
	 *
51
	 * @param value
55
	 * @param	value
52
	 *           Client name
56
	Client name
53
	 */
57
	 */
54
	public void setClientName(String value)
58
	public void setClientName(String value)
55
	{
59
 {
56
		_clientName = value;
60
		_clientName = value;
57
	}
61
	}
58
	/**
62
	/**
59
	 * Retrieve the client version to use. This is only
63
	 * Retrieve the client version to use. This is only
60
 used if <TT>useAnonymousLogon</TT> is false.
64
	 * used if <TT>useAnonymousLogon</TT> is false.
61
	 * 
65
	 *
62
	 * @return Client version.
66
	 * @return	Client version.
63
	 */
67
	 */
64
	public String getClientVersion()
68
	public String getClientVersion()
65
	{
69
 {
66
		return _clientVersion;
70
		return _clientVersion;
67
	}
71
	}
68
	/**
72
	/**
69
	 * Set the client version.
73
	 * Set the client version.
70
	 * 
74
	 *
71
	 * @param value
75
	 * @param	value
72
	 *           Client version
76
	Client version
73
	 */
77
	 */
74
	public void setClientVersion(String value)
78
	public void setClientVersion(String value)
75
	{
79
 {
76
		_clientVersion = value;
80
		_clientVersion = value;
77
	}
81
	}
78
	/**
79
	
82
    /**
80
 * @param statementSeparator
83
     * @param statementSeparator
81
	 *           the statementSeparator to set
84
 the statementSeparator to set
82
	 */
83
	
85
     */
84
public void setStatementSeparator(String statementSeparator)
86
    public void setStatementSeparator(String statementSeparator)
85
	{
86
		
87
 {
87
this.statementSeparator = statementSeparator;
88
        this.statementSeparator = statementSeparator;
88
	}
89
	/**
90
	
89
    }
90
    /**
91
 * @return the statementSeparator
91
     * @return the statementSeparator
92
	 */
93
	
92
     */
94
public String getStatementSeparator()
93
    public String getStatementSeparator()
95
	{
96
		
94
 {
97
return statementSeparator;
95
        return statementSeparator;
98
	}
99
	/**
100
	
96
    }
97
    /**
101
 * @param lineComment
98
     * @param lineComment
102
	 *           the lineComment to set
99
 the lineComment to set
103
	 */
104
	
100
     */
105
public void setLineComment(String lineComment)
101
    public void setLineComment(String lineComment)
106
	{
107
		
102
 {
108
this.lineComment = lineComment;
103
        this.lineComment = lineComment;
109
	}
110
	/**
111
	
104
    }
105
    /**
112
 * @return the lineComment
106
     * @return the lineComment
113
	 */
114
	
107
     */
115
public String getLineComment()
108
    public String getLineComment()
116
	{
117
		
109
 {
118
return lineComment;
110
        return lineComment;
119
	}
120
	/**
121
	
111
    }
112
    /**
122
 * @param removeMultiLineComments
113
     * @param removeMultiLineComments
123
	 *           the removeMultiLineComments to set
114
 the removeMultiLineComments to set
124
	 */
125
	
115
     */
126
public void setRemoveMultiLineComments(boolean removeMultiLineComments)
116
    public void setRemoveMultiLineComments(boolean removeMultiLineComments)
127
	{
128
		
117
 {
129
this.removeMultiLineComments = removeMultiLineComments;
118
        this.removeMultiLineComments = removeMultiLineComments;
130
	}
131
	/**
132
	
119
    }
120
    /**
133
 * @return the removeMultiLineComments
121
     * @return the removeMultiLineComments
134
	 */
135
	
122
     */
136
public boolean isRemoveMultiLineComments()
123
    public boolean isRemoveMultiLineComments()
137
	{
138
		
124
 {
139
return removeMultiLineComments;
125
        return removeMultiLineComments;
140
	}
141
	/**
142
	
126
    }
127
    /**
143
 * @param installCustomQueryTokenizer
128
     * @param installCustomQueryTokenizer
144
	 *           the installCustomQueryTokenizer to set
129
 the installCustomQueryTokenizer to set
145
	 */
146
	
130
     */
147
public void setInstallCustomQueryTokenizer(boolean installCustomQueryTokenizer)
131
    public void setInstallCustomQueryTokenizer(boolean installCustomQueryTokenizer)
148
	{
149
		
132
 {
150
this.installCustomQueryTokenizer = installCustomQueryTokenizer;
133
        this.installCustomQueryTokenizer = installCustomQueryTokenizer;
151
	}
152
	/**
153
	
134
    }
135
    /**
154
 * @return the installCustomQueryTokenizer
136
     * @return the installCustomQueryTokenizer
155
	 */
156
	
137
     */
157
public boolean isInstallCustomQueryTokenizer()
138
    public boolean isInstallCustomQueryTokenizer()
158
	{
159
		
139
 {
160
return installCustomQueryTokenizer;
140
        return installCustomQueryTokenizer;
161
	}
162
	/**
163
	
141
    }
142
    /**
164
 * @see net.sourceforge.squirrel_sql.fw.preferences.IQueryTokenizerPreferenceBean#getProcedureSeparator()
143
     * @see net.sourceforge.squirrel_sql.fw.preferences.IQueryTokenizerPreferenceBean#getProcedureSeparator()
165
	 */
166
	
144
     */
167
public String getProcedureSeparator()
145
    public String getProcedureSeparator()
168
	{
169
		
146
 {
170
return procedureSeparator;
147
        return procedureSeparator;
171
	}
172
	/**
173
	
148
    }
149
    /**
174
 * @see net.sourceforge.squirrel_sql.fw.preferences.IQueryTokenizerPreferenceBean#setProcedureSeparator(java.lang.String)
150
     * @see net.sourceforge.squirrel_sql.fw.preferences.IQueryTokenizerPreferenceBean#setProcedureSeparator(java.lang.String)
175
	 */
176
	
151
     */
177
public void setProcedureSeparator(String procedureSeparator)
152
    public void setProcedureSeparator(String procedureSeparator)
178
	{
179
		
153
 {
180
this.procedureSeparator = procedureSeparator;
154
        this.procedureSeparator = procedureSeparator;
181
	
155
    
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0