View Javadoc

1   /*
2    * Copyright 2007-2009 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.kim.bo.entity.impl;
17  
18  import java.util.LinkedHashMap;
19  
20  import javax.persistence.Column;
21  import javax.persistence.Entity;
22  import javax.persistence.Id;
23  import javax.persistence.Table;
24  
25  import org.kuali.rice.kim.bo.entity.KimEntityVisa;
26  
27  /**
28   * This is a description of what this class does - jimt don't forget to fill this in. 
29   * 
30   * @author Kuali Rice Team (kuali-rice@googlegroups.com)
31   *
32   */
33  @Entity
34  @Table(name = "KRIM_ENTITY_VISA_T")
35  public class KimEntityVisaImpl extends KimEntityDataBase implements KimEntityVisa {
36  	
37  	private static final long serialVersionUID = 3067809653175495621L;
38  
39  	@Id
40  	@Column(name = "ID")
41  	private String id;
42  
43  	@Column(name = "ENTITY_ID")
44  	private String entityId;
45  	
46  	@Column(name = "VISA_TYPE_KEY")
47  	private String visaTypeKey;
48  	
49  	@Column(name = "VISA_ENTRY")
50  	private String visaEntry;
51  	
52  	@Column(name = "VISA_ID")
53  	private String visaId;
54  	
55  	/**
56  	 * @see org.kuali.rice.kim.bo.entity.KimEntityVisa#getId()
57  	 */
58  	public String getId() {
59  		return id;
60  	}
61  
62  	/**
63  	 * @see org.kuali.rice.kim.bo.entity.KimEntityVisa#getEntityId()
64  	 */
65  	public String getEntityId() {
66  		return entityId;
67  	}
68  
69  	/**
70  	 * @see org.kuali.rice.kim.bo.entity.KimEntityVisa#getVisaEntry()
71  	 */
72  	public String getVisaEntry() {
73  		return visaEntry;
74  	}
75  
76  	/**
77  	 * @see org.kuali.rice.kim.bo.entity.KimEntityVisa#getVisaId()
78  	 */
79  	public String getVisaId() {
80  		return visaId;
81  	}
82  
83  	/**
84  	 * @see org.kuali.rice.kim.bo.entity.KimEntityVisa#getVisaTypeKey()
85  	 */
86  	public String getVisaTypeKey() {
87  		return visaTypeKey;
88  	}
89  
90  	/**
91  	 * @param id the id to set
92  	 */
93  	public void setId(String id) {
94  		this.id = id;
95  	}
96  
97  	/**
98  	 * @param entityId the entityId to set
99  	 */
100 	public void setEntityId(String entityId) {
101 		this.entityId = entityId;
102 	}
103 
104 	/**
105 	 * @param visaTypeKey the visaTypeKey to set
106 	 */
107 	public void setVisaTypeKey(String visaTypeKey) {
108 		this.visaTypeKey = visaTypeKey;
109 	}
110 
111 	/**
112 	 * @param visaEntry the visaEntry to set
113 	 */
114 	public void setVisaEntry(String visaEntry) {
115 		this.visaEntry = visaEntry;
116 	}
117 
118 	/**
119 	 * @param visaId the visaId to set
120 	 */
121 	public void setVisaId(String visaId) {
122 		this.visaId = visaId;
123 	}
124 
125 	/**
126 	 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
127 	 */
128 	@Override
129 	protected LinkedHashMap toStringMapper() {
130 		LinkedHashMap<String, String> m = new LinkedHashMap<String, String>();
131 		m.put("id", id);
132 		m.put("entityId", entityId);
133 		m.put("visaTypeKey", visaTypeKey);
134 		m.put("visaEntry", visaEntry);
135 		m.put("visaId", visaId);
136 		return m;
137 	}
138 }