1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.core.impl.parameter; |
17 | |
|
18 | |
|
19 | |
import javax.persistence.Column |
20 | |
import org.apache.commons.lang.builder.EqualsBuilder |
21 | |
import org.apache.commons.lang.builder.HashCodeBuilder |
22 | |
import org.apache.commons.lang.builder.ToStringBuilder |
23 | |
|
24 | |
public class ParameterId implements Serializable { |
25 | |
|
26 | |
private static final long serialVersionUID = 1L; |
27 | |
|
28 | |
@Column(name="NMSPC_CD") |
29 | |
def final String namespaceCode |
30 | |
@Column(name="PARM_DTL_TYP_CD") |
31 | |
def final String componentCode |
32 | |
@Column(name="PARM_NM") |
33 | |
def final String name |
34 | |
@Column(name="APPL_ID") |
35 | |
def final String applicationId |
36 | |
|
37 | |
|
38 | |
public ParameterId() { |
39 | 0 | namespaceCode = null |
40 | 0 | componentCode = null |
41 | 0 | name = null |
42 | 0 | applicationId = null |
43 | |
} |
44 | |
|
45 | |
public ParameterId(String namespaceCode, String componentCode, String name, String applicationId) { |
46 | 0 | this.namespaceCode = namespaceCode |
47 | 0 | this.componentCode = componentCode |
48 | 0 | this.name = name |
49 | 0 | this.applicationId = applicationId |
50 | |
} |
51 | |
|
52 | |
@Override |
53 | |
public int hashCode() { |
54 | 0 | return HashCodeBuilder.reflectionHashCode(this); |
55 | |
} |
56 | |
|
57 | |
@Override |
58 | |
public boolean equals(Object obj) { |
59 | 0 | return EqualsBuilder.reflectionEquals(obj, this); |
60 | |
} |
61 | |
|
62 | |
@Override |
63 | |
public String toString() { |
64 | 0 | return ToStringBuilder.reflectionToString(this); |
65 | |
} |
66 | |
} |
67 | |
|