Changeset 4969 for openmrs/branches/data_synchronization_bidirectional/src/api/org/openmrs/ConceptStateConversion.java
- Timestamp:
- 07/17/08 15:20:10 (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openmrs/branches/data_synchronization_bidirectional
- Property svn:ignore changed from
build*
dist*
${env.CATALINA_HOME}
docs
.metadata
setup.inf
setup.rpt
to
build*
dist*
${env.CATALINA_HOME}
docs
.metadata
setup.inf
setup.rpt
*.iws
*.ipr
*.iml
- Property svn:ignore changed from
openmrs/branches/data_synchronization_bidirectional/src/api/org/openmrs/ConceptStateConversion.java
r4121 r4969 18 18 import org.openmrs.synchronization.Synchronizable; 19 19 20 /** 21 * ConceptStateConversion 22 */ 20 23 public class ConceptStateConversion implements Synchronizable { 21 24 22 private Log log = LogFactory.getLog(this.getClass()); 25 public static final long serialVersionUID = 3214511L; 26 protected final Log log = LogFactory.getLog(getClass()); 27 28 // ****************** 29 // Properties 30 // ****************** 23 31 24 32 private Integer conceptStateConversionId; … … 44 52 this.guid = guid; 45 53 } 54 // ****************** 55 // Constructors 56 // ****************** 46 57 58 /** Default Constructor */ 47 59 public ConceptStateConversion() { } 60 61 /** Constructor with id */ 62 public ConceptStateConversion(Integer conceptStateConversionId) { 63 setConceptStateConversionId(conceptStateConversionId); 64 } 65 66 // ****************** 67 // Instance methods 68 // ****************** 69 70 /** @see Object#equals(Object) */ 71 public boolean equals(Object obj) { 72 if (obj != null && obj instanceof ConceptStateConversion) { 73 ConceptStateConversion p = (ConceptStateConversion)obj; 74 if (this.getConceptStateConversionId() == null) { 75 return p.getConceptStateConversionId() == null; 76 } 77 return (this.getConceptStateConversionId().equals(p.getConceptStateConversionId())); 78 } 79 return false; 80 } 48 81 82 /** @see Object#toString() */ 49 83 public String toString() { 50 84 return("ConceptStateConversion: Concept[" + concept + "] results in State [" + programWorkflowState + "] for workflow [" + programWorkflow + "]"); 51 85 } 52 86 53 public boolean equals(Object o) { 54 if (o instanceof ConceptStateConversion) { 55 ConceptStateConversion other = (ConceptStateConversion) o; 56 return getConceptStateConversionId() != null && other.getConceptStateConversionId() != null && getConceptStateConversionId().equals(other.getConceptStateConversionId()); 57 } 58 return false; 59 } 60 87 // ****************** 88 // Property Access 89 // ****************** 90 61 91 /** 62 92 * @return Returns the concept. … … 114 144 this.programWorkflowState = programWorkflowState; 115 145 } 116 117 146 }