/*******************************************************************************
* Open Behavioral Health Information Technology Architecture (OBHITA.org)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of the <organization> nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
******************************************************************************/
package gov.samhsa.consent2share.service.dto;
/**
* The Class HistoryDto.
*/
public class HistoryDto implements Comparable<HistoryDto> {
/** The revisionid. */
private Long revisionid;
/** The timestamp. */
private String timestamp;
/** The changed by. */
private String changedBy;
/** The rec type. */
private String recType;
/** The type. */
private String type;
/**
* Gets the revisionid.
*
* @return the revisionid
*/
public long getRevisionid() {
return revisionid;
}
/**
* Sets the revisionid.
*
* @param revisionid the new revisionid
*/
public void setRevisionid(long revisionid) {
this.revisionid = revisionid;
}
/**
* Gets the timestamp.
*
* @return the timestamp
*/
public String getTimestamp() {
return timestamp;
}
/**
* Sets the timestamp.
*
* @param timestamp the new timestamp
*/
public void setTimestamp(String timestamp) {
this.timestamp = timestamp;
}
/**
* Gets the changed by.
*
* @return the changed by
*/
public String getChangedBy() {
return changedBy;
}
/**
* Sets the changed by.
*
* @param changedBy the new changed by
*/
public void setChangedBy(String changedBy) {
this.changedBy = changedBy;
}
/**
* Gets the rec type.
*
* @return the rec type
*/
public String getRecType() {
return recType;
}
/**
* Sets the rec type.
*
* @param result the new rec type
*/
public void setRecType(String result) {
this.recType = result;
}
/**
* Gets the type.
*
* @return the type
*/
public String getType() {
return type;
}
/**
* Sets the type.
*
* @param type the new type
*/
public void setType(String type) {
this.type = type;
}
/* (non-Javadoc)
* @see java.lang.Comparable#compareTo(java.lang.Object)
*/
@Override
public int compareTo(HistoryDto hd) {
int result = revisionid.compareTo(hd.getRevisionid());
return result;
}
}