public class NativeSQLQueryScalarReturn implements NativeSQLQueryReturn {
private Type type;
private String columnAlias;
public NativeSQLQueryScalarReturn(String alias, Type type) {
this.type = type;
this.columnAlias = alias;
}
public String getColumnAlias() {
return columnAlias;
}
public Type getType() {
return type;
public class ScalarReturn implements Return {
private final Type type;
private final String columnAlias;
public ScalarReturn(Type type, String columnAlias) {
this.type = type;
this.columnAlias = columnAlias;
}
public Type getType() {
return type;
}
public String getColumnAlias() {
return columnAlias;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/engine/query/sql/NativeSQLQueryScalarReturn.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/loader/custom/ScalarReturn.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class NativeSQLQueryScalarReturn implements NativeSQLQueryReturn {↵ | | 1 | public class ScalarReturn implements Return {↵
|
2 | private Type type;↵ | | 2 | private final Type type;↵
|
3 | private String columnAlias;↵ | | 3 | private final String columnAlias;↵
|
|
4 | public NativeSQLQueryScalarReturn(String alias, Type type) {↵ | | 4 | public ↵
|
5 | this.type = type;↵ | | |
|
6 | this.columnAlias = alias↵ | | 5 | ScalarReturn(Type type, String columnAlias) {↵
|
| | | 6 | this.type = type;↵
|
| | | 7 | this.columnAlias = columnAlias;↵
|
| | | 8 | }↵
|
|
| | | 9 | public Type getType() {↵
|
7 | ;↵ | | 10 | return type;↵
|
8 | }↵ | | 11 | }↵
|
|
9 | public String getColumnAlias() {↵ | | 12 | public String getColumnAlias() {↵
|
10 | return columnAlias;↵ | | 13 | return columnAlias;↵
|
11 | }↵ | | 14 |
|
|
12 | public Type getType() {↵ | | | |
13 | return type;↵ | | | |
14 | | | | |
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |