View Javadoc

1   /**
2    * Copyright 2005-2011 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.krad.test.document;
17  
18  import org.hibernate.annotations.Type;
19  import org.kuali.rice.core.api.util.type.KualiDecimal;
20  import org.kuali.rice.core.framework.persistence.jpa.type.HibernateKualiDecimalFieldType;
21  import org.kuali.rice.krad.document.SessionDocument;
22  import org.kuali.rice.krad.document.TransactionalDocumentBase;
23  
24  import javax.persistence.Column;
25  import javax.persistence.Entity;
26  import javax.persistence.Table;
27  import java.sql.Date;
28  import java.sql.Timestamp;
29  
30  /**
31   * This is a test transactional document for use with testing data dictionary searchable attributes on the doc search. 
32   * 
33   * @author Kuali Rice Team (rice.collab@kuali.org)
34   */
35  @Entity
36  @Table(name="ACCT_DD_ATTR_DOC")
37  @org.hibernate.annotations.TypeDef(
38  			name="rice_decimal",
39  			typeClass=HibernateKualiDecimalFieldType.class
40  	)
41  public class AccountWithDDAttributesDocument extends TransactionalDocumentBase implements SessionDocument {
42  	private static final long serialVersionUID = 174220131121010870L;
43  	
44  	@Column(name="ACCT_NUM")
45  	private Integer accountNumber;
46  	@Column(name="ACCT_OWNR")
47  	private String accountOwner;
48  	@Type(type="rice_decimal")
49  	@Column(name="ACCT_BAL")
50  	private KualiDecimal accountBalance;
51  	@Column(name="ACCT_OPN_DAT")
52  	private Date accountOpenDate;
53  	@Column(name="ACCT_UPDATE_DT_TM")
54  	private Timestamp accountUpdateDateTime;
55  	@Column(name="ACCT_STAT")
56  	private String accountState;
57  	@Type(type="yes_no")
58  	@Column(name="ACCT_AWAKE")
59  	private boolean accountAwake;
60  	
61  	public Integer getAccountNumber() {
62  		return this.accountNumber;
63  	}
64  
65  	public void setAccountNumber(Integer accountNumber) {
66  		this.accountNumber = accountNumber;
67  	}
68  
69  	public String getAccountOwner() {
70  		return this.accountOwner;
71  	}
72  
73  	public void setAccountOwner(String accountOwner) {
74  		this.accountOwner = accountOwner;
75  	}
76  
77  	public KualiDecimal getAccountBalance() {
78  		return this.accountBalance;
79  	}
80  
81  	public void setAccountBalance(KualiDecimal accountBalance) {
82  		this.accountBalance = accountBalance;
83  	}
84  
85  	public Date getAccountOpenDate() {
86  		return this.accountOpenDate;
87  	}
88  
89  	public void setAccountOpenDate(Date accountOpenDate) {
90  		this.accountOpenDate = accountOpenDate;
91  	}
92  
93  	public String getAccountState() {
94  		return this.accountState;
95  	}
96  
97  	public void setAccountState(String accountState) {
98  		this.accountState = accountState;
99  	}
100 
101 	public String getAccountStateMultiselect() {
102 		return this.accountState;
103 	}
104 	
105 	/**
106 	 * @return the accountUpdateDateTime
107 	 */
108 	public Timestamp getAccountUpdateDateTime() {
109 		return this.accountUpdateDateTime;
110 	}
111 
112 	/**
113 	 * @param accountUpdateDateTime the accountUpdateDateTime to set
114 	 */
115 	public void setAccountUpdateDateTime(Timestamp accountUpdateDateTime) {
116 		this.accountUpdateDateTime = accountUpdateDateTime;
117 	}
118 
119 	/**
120 	 * @return the accountAwake
121 	 */
122 	public boolean isAccountAwake() {
123 		return this.accountAwake;
124 	}
125 
126 	/**
127 	 * @param accountAwake the accountAwake to set
128 	 */
129 	public void setAccountAwake(boolean accountAwake) {
130 		this.accountAwake = accountAwake;
131 	}
132 	
133 }