Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
07/17/08 15:20:10 (6 months ago)
Author:
catullus
Message:

sync-bidrectional: partly merge

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
  • openmrs/branches/data_synchronization_bidirectional/src/api/org/openmrs/ConceptStateConversion.java

    r4121 r4969  
    1818import org.openmrs.synchronization.Synchronizable; 
    1919 
     20/** 
     21 * ConceptStateConversion 
     22 */ 
    2023public class ConceptStateConversion implements Synchronizable { 
    2124         
    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        // ****************** 
    2331         
    2432        private Integer conceptStateConversionId; 
     
    4452      this.guid = guid; 
    4553  } 
     54                // ****************** 
     55        // Constructors 
     56        // ****************** 
    4657         
     58        /** Default Constructor */ 
    4759        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        } 
    4881 
     82        /** @see Object#toString() */ 
    4983        public String toString() { 
    5084                return("ConceptStateConversion: Concept[" + concept + "] results in State [" + programWorkflowState + "] for workflow [" + programWorkflow + "]"); 
    5185        } 
    5286         
    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         
    6191        /** 
    6292         * @return Returns the concept. 
     
    114144                this.programWorkflowState = programWorkflowState; 
    115145        } 
    116          
    117146}