1:/* 2: * Room.java 3: * 4: * Created on April 3, 2006, 9:32 AM 5: * 6: * To change this template, choose Tools | Template Manager 7: * and open the template in the editor. 8: */ 9: 10:package hotelReservations.domain; 11: 12: 13:import org.apache.commons.lang.builder.EqualsBuilder; 14:import org.apache.commons.lang.builder.HashCodeBuilder; 15: 16:/** 17: * 18: * @author mklaene 19: */ 20:public class Room { 21: 22: /** Creates a new instance of Room */ 23: public Room() { 24: } 25: 26: /** 27: * Holds value of property floor. 28: */ 29: private Integer floor; 30: 31: /** 32: * Getter for property floor. 33: * @return Value of property floor. 34: */ 35: public Integer getFloor() { 36: 37: return this.floor; 38: } 39: 40: /** 41: * Setter for property floor. 42: * @param floor New value of property floor. 43: */ 44: public void setFloor(Integer floor) { 45: 46: this.floor = floor; 47: } 48: 49: /** 50: * Holds value of property roomId. 51: */ 52: private Long roomId; 53: 54: /** 55: * Getter for property roomId. 56: * @return Value of property roomId. 57: */ 58: public Long getRoomId() { 59: 60: return this.roomId; 61: } 62: 63: /** 64: * Setter for property roomId. 65: * @param roomId New value of property roomId. 66: */ 67: public void setRoomId(Long roomId) { 68: 69: this.roomId = roomId; 70: } 71: 72: /** 73: * Holds value of property roomNumber. 74: */ 75: private Integer roomNumber; 76: 77: /** 78: * Getter for property roomNumber. 79: * @return Value of property roomNumber. 80: */ 81: public Integer getRoomNumber() { 82: 83: return this.roomNumber; 84: } 85: 86: /** 87: * Setter for property roomNumber. 88: * @param roomNumber New value of property roomNumber. 89: */ 90: public void setRoomNumber(Integer roomNumber) { 91: 92: this.roomNumber = roomNumber; 93: } 94: 95: /** 96: * Holds value of property roomStatus. 97: */ 98: private Character reserveStatus; 99: 100: /** 101: * Getter for property reserveStatus. 102: * @return Value of property reserveStatus. 103: */ 104: public Character getReserveStatus() { 105: 106: return this.reserveStatus; 107: } 108: 109: /** 110: * Setter for property reserveStatus. 111: * @param reserveStatus New value of property reserveStatus. 112: */ 113: public void setReserveStatus(Character reserveStatus) { 114: 115: this.reserveStatus = reserveStatus; 116: } 117: 118: 119: /** 120: * Holds value of property roomType. 121: */ 122: private Character roomType; 123: 124: /** 125: * Setter for property roomType. 126: * @param roomType New value of property roomType. 127: */ 128: public void setRoomType(Character roomType) { 129: 130: this.roomType = roomType; 131: } 132: 133: 134: /** 135: * Getter for property roomType. 136: * @return Value of property roomType. 137: */ 138: public Character getRoomType() { 139: 140: return this.roomType; 141: } 142: 143: 144: /** 145: * Holds value of property roomType. 146: */ 147: private Boolean canSmoke; 148: 149: /** 150: * Setter for property canSmoke. 151: * @param canSmoke New value of property canSmoke. 152: */ 153: public void setCanSmoke(Boolean canSmoke) { 154: 155: this.canSmoke = canSmoke; 156: } 157: 158: /** 159: * Getter for property canSmoke. 160: * @return Value of property canSmoke. 161: */ 162: public Boolean getCanSmoke() { 163: 164: return this.canSmoke; 165: } 166: 167: 168: public boolean equals(Object o) { 169: return EqualsBuilder.reflectionEquals(this, o); 170: } 171: 172: public int hashCode() { 173: return HashCodeBuilder.reflectionHashCode(this); 174: } 175:}