|
Lines 29-34
import javax.persistence.Version;
Link Here
|
| 29 |
|
29 |
|
| 30 |
import org.eclipse.jubula.tools.constants.StringConstants; |
30 |
import org.eclipse.jubula.tools.constants.StringConstants; |
| 31 |
import org.eclipse.jubula.tools.objects.ComponentIdentifier; |
31 |
import org.eclipse.jubula.tools.objects.ComponentIdentifier; |
|
|
32 |
import org.eclipse.jubula.tools.objects.IComponentIdentifier; |
| 32 |
import org.eclipse.persistence.annotations.BatchFetch; |
33 |
import org.eclipse.persistence.annotations.BatchFetch; |
| 33 |
import org.eclipse.persistence.annotations.BatchFetchType; |
34 |
import org.eclipse.persistence.annotations.BatchFetchType; |
| 34 |
|
35 |
|
|
Lines 38-47
import org.eclipse.persistence.annotations.BatchFetchType;
Link Here
|
| 38 |
*/ |
39 |
*/ |
| 39 |
@Entity |
40 |
@Entity |
| 40 |
@Table(name = "COMP_ID") |
41 |
@Table(name = "COMP_ID") |
| 41 |
class CompIdentifierPO extends ComponentIdentifier implements |
42 |
class CompIdentifierPO implements ICompIdentifierPO { |
| 42 |
ICompIdentifierPO { |
|
|
| 43 |
|
| 44 |
|
| 45 |
/** Persistence (JPA / EclipseLink) OID */ |
43 |
/** Persistence (JPA / EclipseLink) OID */ |
| 46 |
private transient Long m_id = null; |
44 |
private transient Long m_id = null; |
| 47 |
|
45 |
|
|
Lines 50-55
class CompIdentifierPO extends ComponentIdentifier implements
Link Here
|
| 50 |
|
48 |
|
| 51 |
/** The ID of the parent project */ |
49 |
/** The ID of the parent project */ |
| 52 |
private Long m_parentProjectId = null; |
50 |
private Long m_parentProjectId = null; |
|
|
51 |
|
| 52 |
/** |
| 53 |
* the sharable component identifier |
| 54 |
*/ |
| 55 |
private ComponentIdentifier m_componentIdentifier = |
| 56 |
new ComponentIdentifier(); |
| 53 |
|
57 |
|
| 54 |
/** |
58 |
/** |
| 55 |
* only for Persistence (JPA / EclipseLink) |
59 |
* only for Persistence (JPA / EclipseLink) |
|
Lines 69-82
class CompIdentifierPO extends ComponentIdentifier implements
Link Here
|
| 69 |
@JoinColumn(name = "FK_COMP_ID") |
73 |
@JoinColumn(name = "FK_COMP_ID") |
| 70 |
@BatchFetch(value = BatchFetchType.JOIN) |
74 |
@BatchFetch(value = BatchFetchType.JOIN) |
| 71 |
public List getNeighbours() { // NOPMD by al on 3/19/07 1:26 PM |
75 |
public List getNeighbours() { // NOPMD by al on 3/19/07 1:26 PM |
| 72 |
return super.getNeighbours(); |
76 |
return m_componentIdentifier.getNeighbours(); |
| 73 |
} |
77 |
} |
| 74 |
|
78 |
|
| 75 |
/** |
79 |
/** |
| 76 |
* @param neighbours The neighbours to set. |
80 |
* @param neighbours The neighbours to set. |
| 77 |
*/ |
81 |
*/ |
| 78 |
public void setNeighbours(List neighbours) { // NOPMD by al on 3/19/07 1:26 PM |
82 |
public void setNeighbours(List neighbours) { // NOPMD by al on 3/19/07 1:26 PM |
| 79 |
super.setNeighbours(neighbours); |
83 |
m_componentIdentifier.setNeighbours(neighbours); |
| 80 |
} |
84 |
} |
| 81 |
|
85 |
|
| 82 |
/** |
86 |
/** |
|
Lines 86-99
class CompIdentifierPO extends ComponentIdentifier implements
Link Here
|
| 86 |
@Basic |
90 |
@Basic |
| 87 |
@Column(name = "COMP_CLASS_NAME", length = 4000) |
91 |
@Column(name = "COMP_CLASS_NAME", length = 4000) |
| 88 |
public String getComponentClassName() { // NOPMD by al on 3/19/07 1:26 PM |
92 |
public String getComponentClassName() { // NOPMD by al on 3/19/07 1:26 PM |
| 89 |
return super.getComponentClassName(); |
93 |
return m_componentIdentifier.getComponentClassName(); |
| 90 |
} |
94 |
} |
| 91 |
|
95 |
|
| 92 |
/** |
96 |
/** |
| 93 |
* @param componentClassName The componentClassName to set. |
97 |
* @param componentClassName The componentClassName to set. |
| 94 |
*/ |
98 |
*/ |
| 95 |
public void setComponentClassName(String componentClassName) { // NOPMD by al on 3/19/07 1:26 PM |
99 |
public void setComponentClassName(String componentClassName) { // NOPMD by al on 3/19/07 1:26 PM |
| 96 |
super.setComponentClassName(componentClassName); |
100 |
m_componentIdentifier.setComponentClassName(componentClassName); |
| 97 |
} |
101 |
} |
| 98 |
|
102 |
|
| 99 |
/** |
103 |
/** |
|
Lines 103-116
class CompIdentifierPO extends ComponentIdentifier implements
Link Here
|
| 103 |
@Basic |
107 |
@Basic |
| 104 |
@Column(name = "SUPP_CLASS_NAME", length = 4000) |
108 |
@Column(name = "SUPP_CLASS_NAME", length = 4000) |
| 105 |
public String getSupportedClassName() { // NOPMD by al on 3/19/07 1:26 PM |
109 |
public String getSupportedClassName() { // NOPMD by al on 3/19/07 1:26 PM |
| 106 |
return super.getSupportedClassName(); |
110 |
return m_componentIdentifier.getSupportedClassName(); |
| 107 |
} |
111 |
} |
| 108 |
|
112 |
|
| 109 |
/** |
113 |
/** |
| 110 |
* @param supportedClassName The supportedClassName to set. |
114 |
* @param supportedClassName The supportedClassName to set. |
| 111 |
*/ |
115 |
*/ |
| 112 |
public void setSupportedClassName(String supportedClassName) { // NOPMD by al on 3/19/07 1:26 PM |
116 |
public void setSupportedClassName(String supportedClassName) { // NOPMD by al on 3/19/07 1:26 PM |
| 113 |
super.setSupportedClassName(supportedClassName); |
117 |
m_componentIdentifier.setSupportedClassName(supportedClassName); |
| 114 |
} |
118 |
} |
| 115 |
|
119 |
|
| 116 |
/** |
120 |
/** |
|
Lines 124-130
class CompIdentifierPO extends ComponentIdentifier implements
Link Here
|
| 124 |
@JoinColumn(name = "FK_COMP_ID") |
128 |
@JoinColumn(name = "FK_COMP_ID") |
| 125 |
@BatchFetch(value = BatchFetchType.JOIN) |
129 |
@BatchFetch(value = BatchFetchType.JOIN) |
| 126 |
public List<String> getHierarchyNames() { // NOPMD by al on 3/19/07 1:26 PM |
130 |
public List<String> getHierarchyNames() { // NOPMD by al on 3/19/07 1:26 PM |
| 127 |
return super.getHierarchyNames(); |
131 |
return m_componentIdentifier.getHierarchyNames(); |
| 128 |
} |
132 |
} |
| 129 |
|
133 |
|
| 130 |
/** |
134 |
/** |
|
Lines 132-138
class CompIdentifierPO extends ComponentIdentifier implements
Link Here
|
| 132 |
* The hierarchyNames to set. if null, the list will be cleared. |
136 |
* The hierarchyNames to set. if null, the list will be cleared. |
| 133 |
*/ |
137 |
*/ |
| 134 |
public void setHierarchyNames(List hierarchyNames) { // NOPMD by al on 3/19/07 1:26 PM |
138 |
public void setHierarchyNames(List hierarchyNames) { // NOPMD by al on 3/19/07 1:26 PM |
| 135 |
super.setHierarchyNames(hierarchyNames); |
139 |
m_componentIdentifier.setHierarchyNames(hierarchyNames); |
| 136 |
} |
140 |
} |
| 137 |
|
141 |
|
| 138 |
/** |
142 |
/** |
|
Lines 236-256
class CompIdentifierPO extends ComponentIdentifier implements
Link Here
|
| 236 |
return StringConstants.EMPTY; |
240 |
return StringConstants.EMPTY; |
| 237 |
} |
241 |
} |
| 238 |
|
242 |
|
| 239 |
/** |
243 |
/** {@inheritDoc} */ |
| 240 |
* |
|
|
| 241 |
* {@inheritDoc} |
| 242 |
*/ |
| 243 |
@Basic |
244 |
@Basic |
| 244 |
@Column(name = "ALTERNATIVE_DISPLAY_NAME", length = 4000) |
245 |
@Column(name = "ALTERNATIVE_DISPLAY_NAME", length = 4000) |
| 245 |
public String getAlternativeDisplayName() { |
246 |
public String getAlternativeDisplayName() { |
| 246 |
return super.getAlternativeDisplayName(); |
247 |
return m_componentIdentifier.getAlternativeDisplayName(); |
| 247 |
} |
248 |
} |
| 248 |
|
249 |
|
| 249 |
/** |
250 |
/** |
| 250 |
* {@inheritDoc} |
251 |
* {@inheritDoc} |
| 251 |
*/ |
252 |
*/ |
| 252 |
public void setAlternativeDisplayName(String alternativeDisplayName) { |
253 |
public void setAlternativeDisplayName(String alternativeDisplayName) { |
| 253 |
super.setAlternativeDisplayName(alternativeDisplayName); |
254 |
m_componentIdentifier.setAlternativeDisplayName(alternativeDisplayName); |
|
|
255 |
} |
| 256 |
|
| 257 |
/** {@inheritDoc} */ |
| 258 |
public String getComponentName() { |
| 259 |
return m_componentIdentifier.getComponentName(); |
| 260 |
} |
| 261 |
|
| 262 |
/** {@inheritDoc} */ |
| 263 |
public void addHierarchyName(String hierarchyNames) { |
| 264 |
m_componentIdentifier.addHierarchyName(hierarchyNames); |
| 265 |
} |
| 266 |
|
| 267 |
/** {@inheritDoc} */ |
| 268 |
public void clearHierarchyNames() { |
| 269 |
m_componentIdentifier.clearHierarchyNames(); |
| 270 |
} |
| 271 |
|
| 272 |
/** {@inheritDoc} */ |
| 273 |
public IComponentIdentifier makeClone() { |
| 274 |
return m_componentIdentifier.makeClone(); |
| 254 |
} |
275 |
} |
| 255 |
|
276 |
|
|
|
277 |
/** {@inheritDoc} */ |
| 278 |
public void addNeighbour(String neighbours) { |
| 279 |
m_componentIdentifier.addNeighbour(neighbours); |
| 280 |
} |
| 281 |
|
| 282 |
/** {@inheritDoc} */ |
| 283 |
public String generateLogicalName() { |
| 284 |
return m_componentIdentifier.generateLogicalName(); |
| 285 |
} |
| 286 |
|
| 287 |
/** {@inheritDoc} */ |
| 288 |
public String getComponentNameToDisplay() { |
| 289 |
return m_componentIdentifier.getComponentNameToDisplay(); |
| 290 |
} |
| 291 |
|
| 292 |
/** {@inheritDoc} */ |
| 293 |
public void setMatchPercentage(double matchPercentage) { |
| 294 |
m_componentIdentifier.setMatchPercentage(matchPercentage); |
| 295 |
} |
| 296 |
|
| 297 |
/** {@inheritDoc} */ |
| 298 |
public double getMatchPercentage() { |
| 299 |
return m_componentIdentifier.getMatchPercentage(); |
| 300 |
} |
| 301 |
|
| 302 |
/** {@inheritDoc} */ |
| 303 |
public void setNumberOfOtherMatchingComponents( |
| 304 |
int numberOfOtherMatchingComponents) { |
| 305 |
m_componentIdentifier.setNumberOfOtherMatchingComponents( |
| 306 |
numberOfOtherMatchingComponents); |
| 307 |
} |
| 308 |
|
| 309 |
/** {@inheritDoc} */ |
| 310 |
public int getNumberOfOtherMatchingComponents() { |
| 311 |
return m_componentIdentifier.getNumberOfOtherMatchingComponents(); |
| 312 |
} |
| 313 |
|
| 314 |
/** {@inheritDoc} */ |
| 315 |
public boolean isEqualOriginalFound() { |
| 316 |
return m_componentIdentifier.isEqualOriginalFound(); |
| 317 |
} |
| 318 |
|
| 319 |
/** {@inheritDoc} */ |
| 320 |
public void setEqualOriginalFound(boolean equalOriginalFound) { |
| 321 |
m_componentIdentifier.setEqualOriginalFound(equalOriginalFound); |
| 322 |
} |
| 256 |
} |
323 |
} |