View Javadoc

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